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 }}