diff --git a/kubernetes/apps/nvidia-device-plugin/kustomization.yaml b/kubernetes/apps/nvidia-device-plugin/kustomization.yaml new file mode 100644 index 00000000..bc691c5b --- /dev/null +++ b/kubernetes/apps/nvidia-device-plugin/kustomization.yaml @@ -0,0 +1,9 @@ +--- +# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + # Pre Flux-Kustomizations + - ./namespace.yaml + # Flux-Kustomizations + - ./nvidia-device-plugin/ks.yaml diff --git a/kubernetes/apps/nvidia-device-plugin/namespace.yaml b/kubernetes/apps/nvidia-device-plugin/namespace.yaml new file mode 100644 index 00000000..f7ddb2a7 --- /dev/null +++ b/kubernetes/apps/nvidia-device-plugin/namespace.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: nvidia-device-plugin + labels: + kustomize.toolkit.fluxcd.io/prune: disabled diff --git a/kubernetes/apps/system/nvidia-device-plugin/app/config/config.yaml b/kubernetes/apps/nvidia-device-plugin/nvidia-device-plugin/app/config/config.yaml similarity index 100% rename from kubernetes/apps/system/nvidia-device-plugin/app/config/config.yaml rename to kubernetes/apps/nvidia-device-plugin/nvidia-device-plugin/app/config/config.yaml diff --git a/kubernetes/apps/system/nvidia-device-plugin/app/helmrelease.yaml b/kubernetes/apps/nvidia-device-plugin/nvidia-device-plugin/app/helmrelease.yaml similarity index 100% rename from kubernetes/apps/system/nvidia-device-plugin/app/helmrelease.yaml rename to kubernetes/apps/nvidia-device-plugin/nvidia-device-plugin/app/helmrelease.yaml diff --git a/kubernetes/apps/system/nvidia-device-plugin/app/kustomization.yaml b/kubernetes/apps/nvidia-device-plugin/nvidia-device-plugin/app/kustomization.yaml similarity index 100% rename from kubernetes/apps/system/nvidia-device-plugin/app/kustomization.yaml rename to kubernetes/apps/nvidia-device-plugin/nvidia-device-plugin/app/kustomization.yaml diff --git a/kubernetes/apps/system/nvidia-device-plugin/ks.yaml b/kubernetes/apps/nvidia-device-plugin/nvidia-device-plugin/ks.yaml similarity index 86% rename from kubernetes/apps/system/nvidia-device-plugin/ks.yaml rename to kubernetes/apps/nvidia-device-plugin/nvidia-device-plugin/ks.yaml index 6ba6e4ad..9add6db9 100644 --- a/kubernetes/apps/system/nvidia-device-plugin/ks.yaml +++ b/kubernetes/apps/nvidia-device-plugin/nvidia-device-plugin/ks.yaml @@ -10,7 +10,7 @@ metadata: spec: targetNamespace: nvidia-device-plugin interval: 10m - path: "./kubernetes/apps/system/nvidia-device-plugin/app" + path: "./kubernetes/apps/nvidia-device-plugin/nvidia-device-plugin/app" prune: true sourceRef: kind: GitRepository diff --git a/kubernetes/apps/system/kustomization.yaml b/kubernetes/apps/system/kustomization.yaml index dfa7ce7b..bbfd6492 100644 --- a/kubernetes/apps/system/kustomization.yaml +++ b/kubernetes/apps/system/kustomization.yaml @@ -7,6 +7,5 @@ resources: - ./namespace.yaml # Flux-Kustomizations - ./node-feature-discovery/ks.yaml - - ./nvidia-device-plugin/ks.yaml - ./reloader/ks.yaml - ./snapshot-controller/ks.yaml