From abb3be7804c22bab24b3719d6a9314c4afce921c Mon Sep 17 00:00:00 2001 From: Emterry Date: Thu, 30 May 2024 14:47:53 +0100 Subject: [PATCH] linter fix --- .../nvidia-cluster-role-binding.yml | 1 + .../src/kubernetes/nvidia-cluster-role.yml | 1 + .../src/kubernetes/nvidia-device-plugin.yml | 114 +++++++++--------- .../src/kubernetes/nvidia-service-account.yml | 1 + 4 files changed, 60 insertions(+), 57 deletions(-) diff --git a/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-cluster-role-binding.yml b/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-cluster-role-binding.yml index 568c7e8b3f..50f4513568 100644 --- a/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-cluster-role-binding.yml +++ b/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-cluster-role-binding.yml @@ -1,3 +1,4 @@ +--- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-cluster-role.yml b/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-cluster-role.yml index 0da53b18df..17c895bf45 100644 --- a/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-cluster-role.yml +++ b/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-cluster-role.yml @@ -1,3 +1,4 @@ +--- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-device-plugin.yml b/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-device-plugin.yml index ae2ad7f3ad..edd96fce7a 100644 --- a/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-device-plugin.yml +++ b/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-device-plugin.yml @@ -47,68 +47,68 @@ spec: shareProcessNamespace: true serviceAccountName: nvidia-device-plugin-daemonset-service-account initContainers: - - image: nvcr.io/nvidia/k8s-device-plugin:v0.15.0 - name: nvidia-device-plugin-init - command: ["config-manager"] - env: - - name: ONESHOT - value: "true" - - name: KUBECONFIG - value: "" - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: "spec.nodeName" - - name: NODE_LABEL - value: "nvidia.com/device-plugin.config" - - name: CONFIG_FILE_SRCDIR - value: "/available-configs" - - name: CONFIG_FILE_DST - value: "/config/config.yaml" - - name: DEFAULT_CONFIG - value: "" - - name: FALLBACK_STRATEGIES - value: named,single - - name: SEND_SIGNAL - value: "false" - - name: SIGNAL - value: "" - - name: PROCESS_TO_SIGNAL - value: "" - volumeMounts: - - name: available-configs - mountPath: /available-configs - - name: config - mountPath: /config + - image: nvcr.io/nvidia/k8s-device-plugin:v0.15.0 + name: nvidia-device-plugin-init + command: ["config-manager"] + env: + - name: ONESHOT + value: "true" + - name: KUBECONFIG + value: "" + - name: NODE_NAME + valueFrom: + fieldRef: + fieldPath: "spec.nodeName" + - name: NODE_LABEL + value: "nvidia.com/device-plugin.config" + - name: CONFIG_FILE_SRCDIR + value: "/available-configs" + - name: CONFIG_FILE_DST + value: "/config/config.yaml" + - name: DEFAULT_CONFIG + value: "" + - name: FALLBACK_STRATEGIES + value: named,single + - name: SEND_SIGNAL + value: "false" + - name: SIGNAL + value: "" + - name: PROCESS_TO_SIGNAL + value: "" + volumeMounts: + - name: available-configs + mountPath: /available-configs + - name: config + mountPath: /config containers: - image: nvcr.io/nvidia/k8s-device-plugin:v0.15.0 name: nvidia-device-plugin-sidecar command: ["config-manager"] env: - - name: ONESHOT - value: "false" - - name: KUBECONFIG - value: "" - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: "spec.nodeName" - - name: NODE_LABEL - value: "nvidia.com/device-plugin.config" - - name: CONFIG_FILE_SRCDIR - value: "/available-configs" - - name: CONFIG_FILE_DST - value: "/config/config.yaml" - - name: DEFAULT_CONFIG - value: "" - - name: FALLBACK_STRATEGIES - value: named,single - - name: SEND_SIGNAL - value: "true" - - name: SIGNAL - value: "1" # SIGHUP - - name: PROCESS_TO_SIGNAL - value: "nvidia-device-plugin" + - name: ONESHOT + value: "false" + - name: KUBECONFIG + value: "" + - name: NODE_NAME + valueFrom: + fieldRef: + fieldPath: "spec.nodeName" + - name: NODE_LABEL + value: "nvidia.com/device-plugin.config" + - name: CONFIG_FILE_SRCDIR + value: "/available-configs" + - name: CONFIG_FILE_DST + value: "/config/config.yaml" + - name: DEFAULT_CONFIG + value: "" + - name: FALLBACK_STRATEGIES + value: named,single + - name: SEND_SIGNAL + value: "true" + - name: SIGNAL + value: "1" # SIGHUP + - name: PROCESS_TO_SIGNAL + value: "nvidia-device-plugin" volumeMounts: - name: available-configs mountPath: /available-configs diff --git a/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-service-account.yml b/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-service-account.yml index 4c112f6bbb..8ad61ac98c 100644 --- a/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-service-account.yml +++ b/terraform/aws/analytical-platform-development/cluster/src/kubernetes/nvidia-service-account.yml @@ -1,3 +1,4 @@ +--- apiVersion: v1 kind: ServiceAccount metadata: