diff --git a/staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/attribute.go b/staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/attribute.go index b922c1412cd..e30221980ff 100644 --- a/staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/attribute.go +++ b/staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/attribute.go @@ -20,6 +20,18 @@ import ( resourceapi "k8s.io/dynamic-resource-allocation/api" ) +const ( + // StandardDeviceAttributePrefix is the prefix used for standard device attributes. + StandardDeviceAttributePrefix = "resource.kubernetes.io/" + + // StandardDeviceAttributePCIeRoot is a standard device attribute name + // which describe PCIe Root Complex of the PCIe device. + // The value is a string value in the format `pci:`, + // referring to a PCIe (Peripheral Component Interconnect Express) Root Complex. + // This attribute can be used to identify devices that share the same PCIe Root Complex. + StandardDeviceAttributePCIeRoot resourceapi.QualifiedName = StandardDeviceAttributePrefix + "pcieRoot" +) + // DeviceAttribute represents a device attribute name and its value type DeviceAttribute struct { // Name is the qualified name of the device attribute. diff --git a/staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/constants.go b/staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/constants.go deleted file mode 100644 index bff6b146b94..00000000000 --- a/staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/constants.go +++ /dev/null @@ -1,33 +0,0 @@ -/* -Copyright 2025 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package deviceattribute - -import ( - resourceapi "k8s.io/dynamic-resource-allocation/api" -) - -const ( - // StandardDeviceAttributePrefix is the prefix used for standard device attributes. - StandardDeviceAttributePrefix = "resource.kubernetes.io/" - - // StandardDeviceAttributePCIeRoot is a standard device attribute name - // which describe PCIe Root Complex of the PCIe device. - // The value is a string value in the format `pci:`, - // referring to a PCIe (Peripheral Component Interconnect Express) Root Complex. - // This attribute can be used to identify devices that share the same PCIe Root Complex. - StandardDeviceAttributePCIeRoot resourceapi.QualifiedName = StandardDeviceAttributePrefix + "pcieRoot" -)