From 8ed8217e9ab9a8f07677701202ef5fb80595e88a Mon Sep 17 00:00:00 2001 From: Shingo Omura Date: Wed, 18 Jun 2025 21:07:32 +0900 Subject: [PATCH] Moved device attribute constants from api to deviceattribute package Signed-off-by: Shingo Omura --- .../constants.go} | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) rename staging/src/k8s.io/dynamic-resource-allocation/{api/standard_attributes.go => deviceattribute/constants.go} (84%) diff --git a/staging/src/k8s.io/dynamic-resource-allocation/api/standard_attributes.go b/staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/constants.go similarity index 84% rename from staging/src/k8s.io/dynamic-resource-allocation/api/standard_attributes.go rename to staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/constants.go index b209bc7cdf2..bff6b146b94 100644 --- a/staging/src/k8s.io/dynamic-resource-allocation/api/standard_attributes.go +++ b/staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/constants.go @@ -14,7 +14,11 @@ See the License for the specific language governing permissions and limitations under the License. */ -package api +package deviceattribute + +import ( + resourceapi "k8s.io/dynamic-resource-allocation/api" +) const ( // StandardDeviceAttributePrefix is the prefix used for standard device attributes. @@ -25,5 +29,5 @@ const ( // 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 = StandardDeviceAttributePrefix + "pcieRoot" + StandardDeviceAttributePCIeRoot resourceapi.QualifiedName = StandardDeviceAttributePrefix + "pcieRoot" )