diff --git a/helm/amd-gpu/README.md b/helm/amd-gpu/README.md index 7c8523a7350451439e1be9f3b96d0c16028d2ad7..0db7fca36e66cfc1bff46db8b480673c02c759f6 100644 --- a/helm/amd-gpu/README.md +++ b/helm/amd-gpu/README.md @@ -24,7 +24,6 @@ Kubernetes: `>= 1.18.0` | labeller.enabled | bool | `false` | | | lbl.image.repository | string | `"docker.io/rocm/k8s-device-plugin"` | | | lbl.image.tag | string | `"labeller-latest"` | | -| namespace | string | `"kube-system"` | | | nfd.enabled | bool | `false` | | | node_selector_enabled | bool | `false` | | | node_selector."feature.node.kubernetes.io/pci-0300_1002.present" | string | `"true"` | | diff --git a/helm/amd-gpu/templates/NOTES.txt b/helm/amd-gpu/templates/NOTES.txt index 9a3bf4ba7a5de69a597f6f30c0b25c38ed5658ac..9249ef4017538aa9b0ca929acb2b0f4e5aa7feb3 100644 --- a/helm/amd-gpu/templates/NOTES.txt +++ b/helm/amd-gpu/templates/NOTES.txt @@ -1,4 +1,4 @@ -{{ .Chart.Name }}-device-plugin-daemonset deployed in namespace '{{ .Values.namespace }}' +{{ .Chart.Name }}-device-plugin-daemonset deployed in namespace '{{ .Release.Namespace }}' {{- if .Values.labeller.enabled }} -{{ .Chart.Name }}-labeller-daemonset deployed in namespace '{{ .Values.namespace }}' +{{ .Chart.Name }}-labeller-daemonset deployed in namespace '{{ .Release.Namespace }}' {{- end }} diff --git a/helm/amd-gpu/templates/deviceplugin-daemonset.yaml b/helm/amd-gpu/templates/deviceplugin-daemonset.yaml index bf6a181deb313b4b766ebae51a01f3c505f5612c..d36ddb4af1dc2b8a275f609df8c2f9772e2b580c 100644 --- a/helm/amd-gpu/templates/deviceplugin-daemonset.yaml +++ b/helm/amd-gpu/templates/deviceplugin-daemonset.yaml @@ -2,7 +2,6 @@ apiVersion: apps/v1 kind: DaemonSet metadata: name: {{ .Chart.Name }}-device-plugin-daemonset - namespace: {{ .Values.namespace }} spec: selector: matchLabels: diff --git a/helm/amd-gpu/templates/labeller.yaml b/helm/amd-gpu/templates/labeller.yaml index 6e0a2a76e265bb66c2fdb66a71cf7cb5fb83f507..8a31b95762c8029655538bec72ee6f19d0600576 100644 --- a/helm/amd-gpu/templates/labeller.yaml +++ b/helm/amd-gpu/templates/labeller.yaml @@ -12,7 +12,6 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: crb-{{ .Chart.Name }}-labeller - namespace: default roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole @@ -20,16 +19,12 @@ roleRef: subjects: - kind: ServiceAccount name: default - namespace: default -- kind: ServiceAccount - name: default - namespace: {{ .Values.namespace }} + namespace: {{ .Release.Namespace }} --- apiVersion: apps/v1 kind: DaemonSet metadata: name: {{ .Chart.Name }}-labeller-daemonset - namespace: {{ .Values.namespace }} spec: selector: matchLabels: diff --git a/helm/amd-gpu/values.yaml b/helm/amd-gpu/values.yaml index 56cc0dc58778c7767260329badefc73a9393af01..84370066893fa8925bb0d2eb262d43b507b35c51 100644 --- a/helm/amd-gpu/values.yaml +++ b/helm/amd-gpu/values.yaml @@ -4,8 +4,6 @@ nfd: labeller: enabled: false -namespace: kube-system - dp: image: repository: docker.io/rocm/k8s-device-plugin