From e5bd5632d7fb056cf29eab8b6744158f299f0322 Mon Sep 17 00:00:00 2001 From: Oksana Baranova Date: Tue, 10 Dec 2024 14:02:01 +0200 Subject: [PATCH 1/8] add gpu nfd rule --- charts/intel-gpu-resource-driver/Chart.yaml | 8 + charts/intel-gpu-resource-driver/README.md | 2 + .../templates/nfd.yaml | 229 ++++++++++++++++++ charts/intel-gpu-resource-driver/values.yaml | 22 +- 4 files changed, 259 insertions(+), 2 deletions(-) create mode 100644 charts/intel-gpu-resource-driver/templates/nfd.yaml diff --git a/charts/intel-gpu-resource-driver/Chart.yaml b/charts/intel-gpu-resource-driver/Chart.yaml index 9bd90bb..63e489e 100644 --- a/charts/intel-gpu-resource-driver/Chart.yaml +++ b/charts/intel-gpu-resource-driver/Chart.yaml @@ -5,3 +5,11 @@ description: A Helm chart for a Dynamic Resource Allocation (DRA) Intel GPU Reso type: application version: 0.6.0 appVersion: "v0.6.0" +home: https://github.com/intel/helm-charts + +dependencies: + - name: node-feature-discovery + alias: nfd + version: "0.16.6" + condition: nfd.enabled + repository: https://kubernetes-sigs.github.io/node-feature-discovery/charts diff --git a/charts/intel-gpu-resource-driver/README.md b/charts/intel-gpu-resource-driver/README.md index f27419b..d200631 100644 --- a/charts/intel-gpu-resource-driver/README.md +++ b/charts/intel-gpu-resource-driver/README.md @@ -16,7 +16,9 @@ helm repo update You can execute `helm search repo intel` command to see pulled charts [optional]. ## Install Helm Chart +When installing, update the dependencies: ``` +helm dependency update helm install intel-gpu-resource-driver intel/intel-gpu-resource-driver ``` ## Upgrade Chart diff --git a/charts/intel-gpu-resource-driver/templates/nfd.yaml b/charts/intel-gpu-resource-driver/templates/nfd.yaml new file mode 100644 index 0000000..4adcdc1 --- /dev/null +++ b/charts/intel-gpu-resource-driver/templates/nfd.yaml @@ -0,0 +1,229 @@ +apiVersion: nfd.k8s-sigs.io/v1alpha1 +kind: NodeFeatureRule +metadata: + name: intel-gpu-device-rule +spec: + rules: + - name: "intel.gpu" + labels: + "feature.node.kubernetes.io/gpu": "true" + matchFeatures: + - feature: pci.device + matchExpressions: + vendor: {op: In, value: ["8086"]} + class: {op: In, value: ["0300", "0380"]} + matchAny: + - matchFeatures: + - feature: kernel.loadedmodule + matchExpressions: + i915: {op: Exists} + - matchFeatures: + - feature: kernel.enabledmodule + matchExpressions: + i915: {op: Exists} + - matchFeatures: + - feature: kernel.loadedmodule + matchExpressions: + xe: {op: Exists} + - matchFeatures: + - feature: kernel.enabledmodule + matchExpressions: + xe: {op: Exists} +--- +apiVersion: nfd.k8s-sigs.io/v1alpha1 +kind: NodeFeatureRule +metadata: + name: intel-gpu-platform-labeling +spec: + rules: + - extendedResources: + gpu.intel.com/millicores: "@local.label.gpu.intel.com/millicores" + gpu.intel.com/memory.max: "@local.label.gpu.intel.com/memory.max" + gpu.intel.com/tiles: "@local.label.gpu.intel.com/tiles" + matchFeatures: + - feature: local.label + matchExpressions: + gpu.intel.com/millicores: {op: Exists} + gpu.intel.com/memory.max: {op: Exists} + gpu.intel.com/tiles: {op: Exists} + name: intel.gpu.fractionalresources + # generic rule for older and upcoming devices + - labelsTemplate: | + {{"{{"}} range .pci.device {{"}}"}}gpu.intel.com/device-id.{{"{{"}} .class {{"}}"}}-{{"{{"}} .device {{"}}"}}.present=true + {{"{{"}} end {{"}}"}} + matchFeatures: + - feature: pci.device + matchExpressions: + class: + op: In + value: + - "0300" + - "0380" + vendor: + op: In + value: + - "8086" + name: intel.gpu.generic.deviceid + - labelsTemplate: gpu.intel.com/device-id.0300-{{"{{"}} (index .pci.device 0).device {{"}}"}}.count={{"{{"}} len .pci.device {{"}}"}} + matchFeatures: + - feature: pci.device + matchExpressions: + class: + op: In + value: + - "0300" + vendor: + op: In + value: + - "8086" + name: intel.gpu.generic.count.300 + - labelsTemplate: gpu.intel.com/device-id.0380-{{"{{"}} (index .pci.device 0).device {{"}}"}}.count={{"{{"}} len .pci.device {{"}}"}} + matchFeatures: + - feature: pci.device + matchExpressions: + class: + op: In + value: + - "0380" + vendor: + op: In + value: + - "8086" + name: intel.gpu.generic.count.380 + - labels: + gpu.intel.com/product: "Max_1100" + labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" + matchFeatures: + - feature: pci.device + matchExpressions: + class: + op: In + value: + - "0380" + vendor: + op: In + value: + - "8086" + device: + op: In + value: + - "0bda" + name: intel.gpu.max.1100 + - labels: + gpu.intel.com/product: "Max_1550" + labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" + matchFeatures: + - feature: pci.device + matchExpressions: + class: + op: In + value: + - "0380" + vendor: + op: In + value: + - "8086" + device: + op: In + value: + - "0bd5" + name: intel.gpu.max.1550 + - labels: + gpu.intel.com/family: "Max_Series" + matchFeatures: + - feature: pci.device + matchExpressions: + class: + op: In + value: + - "0380" + vendor: + op: In + value: + - "8086" + device: + op: In + value: + - "0bda" + - "0bd5" + - "0bd9" + - "0bdb" + - "0bd7" + - "0bd6" + - "0bd0" + name: intel.gpu.max.series + - labels: + gpu.intel.com/family: "Flex_Series" + gpu.intel.com/product: "Flex_170" + labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" + matchFeatures: + - feature: pci.device + matchExpressions: + class: + op: In + value: + - "0380" + vendor: + op: In + value: + - "8086" + device: + op: In + value: + - "56c0" + name: intel.gpu.flex.170 + - labels: + gpu.intel.com/family: "Flex_Series" + gpu.intel.com/product: "Flex_140" + labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" + matchFeatures: + - feature: pci.device + matchExpressions: + class: + op: In + value: + - "0380" + vendor: + op: In + value: + - "8086" + device: + op: In + value: + - "56c1" + name: intel.gpu.flex.140 + - labels: + gpu.intel.com/family: "A_Series" + matchFeatures: + - feature: pci.device + matchExpressions: + class: + op: In + value: + - "0300" + vendor: + op: In + value: + - "8086" + device: + op: In + value: + - "56a6" + - "56a5" + - "56a1" + - "56a0" + - "5694" + - "5693" + - "5692" + - "5691" + - "5690" + - "56b3" + - "56b2" + - "56a4" + - "56a3" + - "5697" + - "5696" + - "5695" + - "56b1" + - "56b0" + name: intel.gpu.a.series diff --git a/charts/intel-gpu-resource-driver/values.yaml b/charts/intel-gpu-resource-driver/values.yaml index a3ee0eb..740164c 100644 --- a/charts/intel-gpu-resource-driver/values.yaml +++ b/charts/intel-gpu-resource-driver/values.yaml @@ -19,6 +19,24 @@ serviceAccount: kubeletPlugin: podAnnotations: {} - tolerations: [] - nodeSelector: {} + nodeSelector: + feature.node.kubernetes.io/gpu: "true" + tolerations: + - key: node-role.kubernetes.io/master + operator: Exists + effect: NoSchedule + - key: node-role.kubernetes.io/control-plane + operator: Exists + effect: NoSchedule + # Refer to the official documentation for Node Feature Discovery (NFD) + # regarding node tainting: + # https://nfd.sigs.k8s.io/usage/customization-guide#node-tainting + - key: "node.kubernetes.io/gpu" + operator: "Exists" + effect: "NoSchedule" affinity: {} + +nfd: + enabled: false # change to true to install NFD to the cluster + nameOverride: intel-gpu-nfd + enableNodeFeatureApi: true From 8f4775615a2b78bd04fd5aa9c7b05ed996906780 Mon Sep 17 00:00:00 2001 From: Oksana Baranova Date: Tue, 10 Dec 2024 14:40:10 +0200 Subject: [PATCH 2/8] add prefix --- charts/intel-gpu-resource-driver/templates/nfd.yaml | 2 +- charts/intel-gpu-resource-driver/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/intel-gpu-resource-driver/templates/nfd.yaml b/charts/intel-gpu-resource-driver/templates/nfd.yaml index 4adcdc1..209d70d 100644 --- a/charts/intel-gpu-resource-driver/templates/nfd.yaml +++ b/charts/intel-gpu-resource-driver/templates/nfd.yaml @@ -6,7 +6,7 @@ spec: rules: - name: "intel.gpu" labels: - "feature.node.kubernetes.io/gpu": "true" + "intel.feature.node.kubernetes.io/gpu": "true" matchFeatures: - feature: pci.device matchExpressions: diff --git a/charts/intel-gpu-resource-driver/values.yaml b/charts/intel-gpu-resource-driver/values.yaml index 740164c..680dc48 100644 --- a/charts/intel-gpu-resource-driver/values.yaml +++ b/charts/intel-gpu-resource-driver/values.yaml @@ -20,7 +20,7 @@ serviceAccount: kubeletPlugin: podAnnotations: {} nodeSelector: - feature.node.kubernetes.io/gpu: "true" + intel.feature.node.kubernetes.io/gpu: "true" tolerations: - key: node-role.kubernetes.io/master operator: Exists From edd3993df7efd6aa7eecb500a726aba882b35cab Mon Sep 17 00:00:00 2001 From: Oksana Baranova Date: Mon, 16 Dec 2024 13:39:56 +0200 Subject: [PATCH 3/8] add code review changes --- .../templates/nfd.yaml | 36 +++++-------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/charts/intel-gpu-resource-driver/templates/nfd.yaml b/charts/intel-gpu-resource-driver/templates/nfd.yaml index 209d70d..baa5ae1 100644 --- a/charts/intel-gpu-resource-driver/templates/nfd.yaml +++ b/charts/intel-gpu-resource-driver/templates/nfd.yaml @@ -6,7 +6,7 @@ spec: rules: - name: "intel.gpu" labels: - "intel.feature.node.kubernetes.io/gpu": "true" + intel.feature.node.kubernetes.io/gpu: "true" matchFeatures: - feature: pci.device matchExpressions: @@ -21,14 +21,6 @@ spec: - feature: kernel.enabledmodule matchExpressions: i915: {op: Exists} - - matchFeatures: - - feature: kernel.loadedmodule - matchExpressions: - xe: {op: Exists} - - matchFeatures: - - feature: kernel.enabledmodule - matchExpressions: - xe: {op: Exists} --- apiVersion: nfd.k8s-sigs.io/v1alpha1 kind: NodeFeatureRule @@ -36,17 +28,15 @@ metadata: name: intel-gpu-platform-labeling spec: rules: - - extendedResources: - gpu.intel.com/millicores: "@local.label.gpu.intel.com/millicores" - gpu.intel.com/memory.max: "@local.label.gpu.intel.com/memory.max" - gpu.intel.com/tiles: "@local.label.gpu.intel.com/tiles" - matchFeatures: + - matchFeatures: - feature: local.label matchExpressions: gpu.intel.com/millicores: {op: Exists} gpu.intel.com/memory.max: {op: Exists} gpu.intel.com/tiles: {op: Exists} name: intel.gpu.fractionalresources + labels: + intel.feature.node.kubernetes.io/gpu: "true" # generic rule for older and upcoming devices - labelsTemplate: | {{"{{"}} range .pci.device {{"}}"}}gpu.intel.com/device-id.{{"{{"}} .class {{"}}"}}-{{"{{"}} .device {{"}}"}}.present=true @@ -90,9 +80,7 @@ spec: value: - "8086" name: intel.gpu.generic.count.380 - - labels: - gpu.intel.com/product: "Max_1100" - labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" + - labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" matchFeatures: - feature: pci.device matchExpressions: @@ -109,9 +97,7 @@ spec: value: - "0bda" name: intel.gpu.max.1100 - - labels: - gpu.intel.com/product: "Max_1550" - labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" + - labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" matchFeatures: - feature: pci.device matchExpressions: @@ -152,10 +138,7 @@ spec: - "0bd6" - "0bd0" name: intel.gpu.max.series - - labels: - gpu.intel.com/family: "Flex_Series" - gpu.intel.com/product: "Flex_170" - labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" + - labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" matchFeatures: - feature: pci.device matchExpressions: @@ -172,10 +155,7 @@ spec: value: - "56c0" name: intel.gpu.flex.170 - - labels: - gpu.intel.com/family: "Flex_Series" - gpu.intel.com/product: "Flex_140" - labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" + - labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" matchFeatures: - feature: pci.device matchExpressions: From 2bd33b8dfa5f9f8fb1df9a4034798cda938e3f6a Mon Sep 17 00:00:00 2001 From: Oksana Baranova Date: Tue, 17 Dec 2024 11:49:55 +0200 Subject: [PATCH 4/8] changes --- .../templates/nfd.yaml | 68 ------------------- 1 file changed, 68 deletions(-) diff --git a/charts/intel-gpu-resource-driver/templates/nfd.yaml b/charts/intel-gpu-resource-driver/templates/nfd.yaml index baa5ae1..1aaa764 100644 --- a/charts/intel-gpu-resource-driver/templates/nfd.yaml +++ b/charts/intel-gpu-resource-driver/templates/nfd.yaml @@ -80,40 +80,6 @@ spec: value: - "8086" name: intel.gpu.generic.count.380 - - labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" - matchFeatures: - - feature: pci.device - matchExpressions: - class: - op: In - value: - - "0380" - vendor: - op: In - value: - - "8086" - device: - op: In - value: - - "0bda" - name: intel.gpu.max.1100 - - labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" - matchFeatures: - - feature: pci.device - matchExpressions: - class: - op: In - value: - - "0380" - vendor: - op: In - value: - - "8086" - device: - op: In - value: - - "0bd5" - name: intel.gpu.max.1550 - labels: gpu.intel.com/family: "Max_Series" matchFeatures: @@ -138,40 +104,6 @@ spec: - "0bd6" - "0bd0" name: intel.gpu.max.series - - labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" - matchFeatures: - - feature: pci.device - matchExpressions: - class: - op: In - value: - - "0380" - vendor: - op: In - value: - - "8086" - device: - op: In - value: - - "56c0" - name: intel.gpu.flex.170 - - labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" - matchFeatures: - - feature: pci.device - matchExpressions: - class: - op: In - value: - - "0380" - vendor: - op: In - value: - - "8086" - device: - op: In - value: - - "56c1" - name: intel.gpu.flex.140 - labels: gpu.intel.com/family: "A_Series" matchFeatures: From abc96afda7faf1152e2f66d8332ab0bf28ea6603 Mon Sep 17 00:00:00 2001 From: Oksana Baranova Date: Wed, 25 Dec 2024 14:46:21 +0200 Subject: [PATCH 5/8] fix: remove conflicting GPU device count rules and standardize family label --- .../templates/nfd.yaml | 177 +++++++----------- 1 file changed, 65 insertions(+), 112 deletions(-) diff --git a/charts/intel-gpu-resource-driver/templates/nfd.yaml b/charts/intel-gpu-resource-driver/templates/nfd.yaml index 1aaa764..759d68c 100644 --- a/charts/intel-gpu-resource-driver/templates/nfd.yaml +++ b/charts/intel-gpu-resource-driver/templates/nfd.yaml @@ -6,7 +6,7 @@ spec: rules: - name: "intel.gpu" labels: - intel.feature.node.kubernetes.io/gpu: "true" + "intel.feature.node.kubernetes.io/gpu": "true" matchFeatures: - feature: pci.device matchExpressions: @@ -28,114 +28,67 @@ metadata: name: intel-gpu-platform-labeling spec: rules: - - matchFeatures: - - feature: local.label - matchExpressions: - gpu.intel.com/millicores: {op: Exists} - gpu.intel.com/memory.max: {op: Exists} - gpu.intel.com/tiles: {op: Exists} - name: intel.gpu.fractionalresources - labels: - intel.feature.node.kubernetes.io/gpu: "true" - # generic rule for older and upcoming devices - - labelsTemplate: | - {{"{{"}} range .pci.device {{"}}"}}gpu.intel.com/device-id.{{"{{"}} .class {{"}}"}}-{{"{{"}} .device {{"}}"}}.present=true - {{"{{"}} end {{"}}"}} - matchFeatures: - - feature: pci.device - matchExpressions: - class: - op: In - value: - - "0300" - - "0380" - vendor: - op: In - value: - - "8086" - name: intel.gpu.generic.deviceid - - labelsTemplate: gpu.intel.com/device-id.0300-{{"{{"}} (index .pci.device 0).device {{"}}"}}.count={{"{{"}} len .pci.device {{"}}"}} - matchFeatures: - - feature: pci.device - matchExpressions: - class: - op: In - value: - - "0300" - vendor: - op: In - value: - - "8086" - name: intel.gpu.generic.count.300 - - labelsTemplate: gpu.intel.com/device-id.0380-{{"{{"}} (index .pci.device 0).device {{"}}"}}.count={{"{{"}} len .pci.device {{"}}"}} - matchFeatures: - - feature: pci.device - matchExpressions: - class: - op: In - value: - - "0380" - vendor: - op: In - value: - - "8086" - name: intel.gpu.generic.count.380 - - labels: - gpu.intel.com/family: "Max_Series" - matchFeatures: - - feature: pci.device - matchExpressions: - class: - op: In - value: - - "0380" - vendor: - op: In - value: - - "8086" - device: - op: In - value: - - "0bda" - - "0bd5" - - "0bd9" - - "0bdb" - - "0bd7" - - "0bd6" - - "0bd0" - name: intel.gpu.max.series - - labels: - gpu.intel.com/family: "A_Series" - matchFeatures: - - feature: pci.device - matchExpressions: - class: - op: In - value: - - "0300" - vendor: - op: In - value: - - "8086" - device: - op: In - value: - - "56a6" - - "56a5" - - "56a1" - - "56a0" - - "5694" - - "5693" - - "5692" - - "5691" - - "5690" - - "56b3" - - "56b2" - - "56a4" - - "56a3" - - "5697" - - "5696" - - "5695" - - "56b1" - - "56b0" - name: intel.gpu.a.series + # A_Series (Alchemist) + - labels: + gpu.intel.com/family: "A_Series" + matchFeatures: + - feature: pci.device + matchExpressions: + class: {op: In, value: ["0300"]} + vendor: {op: In, value: ["8086"]} + device: + op: In + value: + - "56a6" + - "56a5" + - "56a1" + - "56a0" + - "5694" + - "5693" + - "5692" + - "5691" + - "5690" + - "56b3" + - "56b2" + - "56a4" + - "56a3" + - "5697" + - "5696" + - "5695" + - "56b1" + - "56b0" + name: intel.gpu.a.series + # Max_Series + - labels: + gpu.intel.com/family: "Max_Series" + matchFeatures: + - feature: pci.device + matchExpressions: + class: {op: In, value: ["0380"]} + vendor: {op: In, value: ["8086"]} + device: + op: In + value: + - "0bda" + - "0bd5" + - "0bd9" + - "0bdb" + - "0bd7" + - "0bd6" + - "0bd0" + name: intel.gpu.max.series + # Flex_Series + - labels: + gpu.intel.com/family: "Flex_Series" + matchFeatures: + - feature: pci.device + matchExpressions: + class: {op: In, value: ["0300", "0380"]} + vendor: {op: In, value: ["8086"]} + device: + op: In + value: + - "0f00" + - "0f01" + - "0f02" + name: intel.gpu.flex.series From 478b0bcd7830bef7c142e824ca4a1d54804d0cfa Mon Sep 17 00:00:00 2001 From: Oksana Baranova Date: Tue, 31 Dec 2024 17:04:27 +0200 Subject: [PATCH 6/8] nodeSelector handling --- charts/intel-gpu-resource-driver/templates/nfd.yaml | 2 ++ .../intel-gpu-resource-driver/templates/resource-driver.yaml | 5 +++++ charts/intel-gpu-resource-driver/values.yaml | 5 +++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/charts/intel-gpu-resource-driver/templates/nfd.yaml b/charts/intel-gpu-resource-driver/templates/nfd.yaml index 759d68c..b6ae2a1 100644 --- a/charts/intel-gpu-resource-driver/templates/nfd.yaml +++ b/charts/intel-gpu-resource-driver/templates/nfd.yaml @@ -1,3 +1,4 @@ +{{- if .Values.nfd.enabled }} apiVersion: nfd.k8s-sigs.io/v1alpha1 kind: NodeFeatureRule metadata: @@ -92,3 +93,4 @@ spec: - "0f01" - "0f02" name: intel.gpu.flex.series +{{- end }} \ No newline at end of file diff --git a/charts/intel-gpu-resource-driver/templates/resource-driver.yaml b/charts/intel-gpu-resource-driver/templates/resource-driver.yaml index 2fbba87..400c471 100644 --- a/charts/intel-gpu-resource-driver/templates/resource-driver.yaml +++ b/charts/intel-gpu-resource-driver/templates/resource-driver.yaml @@ -73,10 +73,15 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.nfd.enabled }} + nodeSelector: + intel.feature.node.kubernetes.io/gpu: "true" + {{- else }} {{- with .Values.kubeletPlugin.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} + {{- end }} {{- with .Values.kubeletPlugin.affinity }} affinity: {{- toYaml . | nindent 8 }} diff --git a/charts/intel-gpu-resource-driver/values.yaml b/charts/intel-gpu-resource-driver/values.yaml index 680dc48..8c19b37 100644 --- a/charts/intel-gpu-resource-driver/values.yaml +++ b/charts/intel-gpu-resource-driver/values.yaml @@ -19,8 +19,9 @@ serviceAccount: kubeletPlugin: podAnnotations: {} - nodeSelector: - intel.feature.node.kubernetes.io/gpu: "true" + nodeSelector: {} + # label used when nfd.enabled is true + #intel.feature.node.kubernetes.io/gpu: "true" tolerations: - key: node-role.kubernetes.io/master operator: Exists From 627add7923213e085062e2c2064ae8d55588fbc9 Mon Sep 17 00:00:00 2001 From: Oksana Baranova Date: Thu, 2 Jan 2025 12:45:57 +0200 Subject: [PATCH 7/8] update version --- charts/intel-gpu-resource-driver/templates/device-class.yaml | 2 +- .../templates/validating-admission-policy.yaml | 2 +- charts/intel-gpu-resource-driver/values.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/intel-gpu-resource-driver/templates/device-class.yaml b/charts/intel-gpu-resource-driver/templates/device-class.yaml index cb28849..93a0881 100644 --- a/charts/intel-gpu-resource-driver/templates/device-class.yaml +++ b/charts/intel-gpu-resource-driver/templates/device-class.yaml @@ -1,4 +1,4 @@ -apiVersion: resource.k8s.io/v1alpha3 +apiVersion: resource.k8s.io/v1beta1 kind: DeviceClass metadata: name: gpu.intel.com diff --git a/charts/intel-gpu-resource-driver/templates/validating-admission-policy.yaml b/charts/intel-gpu-resource-driver/templates/validating-admission-policy.yaml index dfa1256..503aeb5 100644 --- a/charts/intel-gpu-resource-driver/templates/validating-admission-policy.yaml +++ b/charts/intel-gpu-resource-driver/templates/validating-admission-policy.yaml @@ -7,7 +7,7 @@ spec: matchConstraints: resourceRules: - apiGroups: ["resource.k8s.io"] - apiVersions: ["v1alpha3"] + apiVersions: ["v1beta1"] operations: ["CREATE", "UPDATE", "DELETE"] resources: ["resourceslices"] matchConditions: diff --git a/charts/intel-gpu-resource-driver/values.yaml b/charts/intel-gpu-resource-driver/values.yaml index 8c19b37..4345000 100644 --- a/charts/intel-gpu-resource-driver/values.yaml +++ b/charts/intel-gpu-resource-driver/values.yaml @@ -9,7 +9,7 @@ image: repository: intel name: intel-gpu-resource-driver pullPolicy: IfNotPresent - tag: "v0.6.0" + tag: "v0.7.0" serviceAccount: create: true From cea4c286058045b352936eb0bb6ff1fdd511c9f4 Mon Sep 17 00:00:00 2001 From: Oksana Baranova Date: Fri, 3 Jan 2025 13:56:16 +0200 Subject: [PATCH 8/8] minor update --- charts/intel-gpu-resource-driver/Chart.yaml | 4 ++-- charts/intel-gpu-resource-driver/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/intel-gpu-resource-driver/Chart.yaml b/charts/intel-gpu-resource-driver/Chart.yaml index 63e489e..dc665a1 100644 --- a/charts/intel-gpu-resource-driver/Chart.yaml +++ b/charts/intel-gpu-resource-driver/Chart.yaml @@ -3,8 +3,8 @@ name: intel-gpu-resource-driver description: A Helm chart for a Dynamic Resource Allocation (DRA) Intel GPU Resource Driver type: application -version: 0.6.0 -appVersion: "v0.6.0" +version: 0.7.0 +appVersion: "v0.7.0" home: https://github.com/intel/helm-charts dependencies: diff --git a/charts/intel-gpu-resource-driver/README.md b/charts/intel-gpu-resource-driver/README.md index d200631..8b55522 100644 --- a/charts/intel-gpu-resource-driver/README.md +++ b/charts/intel-gpu-resource-driver/README.md @@ -45,7 +45,7 @@ You may also run `helm show values` on this chart's dependencies for additional | image.repository | string | `intel` | | image.name | string | `"intel-gpu-resource-driver"` | | image.pullPolicy | string | `"IfNotPresent"` | -| image.tag | string | `"v0.6.0"` | +| image.tag | string | `"v0.7.0"` | > [!Note] > When upgrading, CRDs from previous version need to be removed manually because Helm supports neither upgrading nor deleting CRDs, see: https://github.com/helm/community/blob/main/hips/hip-0011.md