diff --git a/deployment/helm/node-feature-discovery/manifests/nodefeaturerule-crd.yaml b/deployment/helm/node-feature-discovery/crds/nodefeaturerule-crd.yaml similarity index 100% rename from deployment/helm/node-feature-discovery/manifests/nodefeaturerule-crd.yaml rename to deployment/helm/node-feature-discovery/crds/nodefeaturerule-crd.yaml diff --git a/deployment/helm/node-feature-discovery/templates/nodefeaturerule-crd.yaml b/deployment/helm/node-feature-discovery/templates/nodefeaturerule-crd.yaml index f5d30850a5..c02c633d89 100644 --- a/deployment/helm/node-feature-discovery/templates/nodefeaturerule-crd.yaml +++ b/deployment/helm/node-feature-discovery/templates/nodefeaturerule-crd.yaml @@ -1,3 +1,3 @@ {{- if .Values.nodeFeatureRule.createCRD }} -{{ .Files.Get "manifests/nodefeaturerule-crd.yaml" }} +{{ .Files.Get "crds/nodefeaturerule-crd.yaml" }} {{- end}} diff --git a/hack/generate.sh b/hack/generate.sh index e89e01f9c1..9b3b5ca222 100755 --- a/hack/generate.sh +++ b/hack/generate.sh @@ -12,7 +12,8 @@ rm -rf vendor/ controller-gen object crd output:crd:stdout paths=./pkg/apis/... > deployment/base/nfd-crds/nodefeaturerule-crd.yaml -cp deployment/base/nfd-crds/nodefeaturerule-crd.yaml deployment/helm/node-feature-discovery/manifests/ +mkdir -p deployment/helm/node-feature-discovery/crds +cp deployment/base/nfd-crds/nodefeaturerule-crd.yaml deployment/helm/node-feature-discovery/crds/ rm -rf sigs.k8s.io