From bc03af3af1bea2bc2c3964bbaf3f9d3df1c68962 Mon Sep 17 00:00:00 2001 From: Tobias Giese Date: Thu, 31 Oct 2024 15:08:08 +0100 Subject: [PATCH] Also update CRDs for the nic-configuration-operator Signed-off-by: Tobias Giese --- Dockerfile | 3 ++- deployment/network-operator/templates/upgrade-crd-hook.yaml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4891132a..6f5ae0c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,7 +60,8 @@ COPY deployment/network-operator/ ./network-operator-chart/ RUN mkdir crds && \ cp -r network-operator-chart/crds /workspace/crds/network-operator/ && \ cp -r network-operator-chart/charts/sriov-network-operator/crds /workspace/crds/sriov-network-operator/ && \ - cp -r network-operator-chart/charts/node-feature-discovery/crds /workspace/crds/node-feature-discovery/ + cp -r network-operator-chart/charts/node-feature-discovery/crds /workspace/crds/node-feature-discovery/ && \ + cp -r network-operator-chart/charts/nic-configuration-operator-chart/crds /workspace/crds/nic-configuration-operator/ # Build ARG ARCH diff --git a/deployment/network-operator/templates/upgrade-crd-hook.yaml b/deployment/network-operator/templates/upgrade-crd-hook.yaml index 17e86f2c..c12cf13e 100644 --- a/deployment/network-operator/templates/upgrade-crd-hook.yaml +++ b/deployment/network-operator/templates/upgrade-crd-hook.yaml @@ -90,5 +90,8 @@ spec: {{- if .Values.nfd.enabled }} - --crds-dir=/crds/node-feature-discovery {{- end }} + {{- if .Values.nicConfigurationOperator.enabled }} + - --crds-dir=/crds/nic-configuration-operator + {{- end }} restartPolicy: OnFailure {{- end }}