File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ help: ## Display this help.
9999.PHONY : manifests
100100manifests : controller-gen # # Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
101101 $(CONTROLLER_GEN ) rbac:roleName=manager-role crd:maxDescLen=120 webhook paths=" ./..." output:crd:artifacts:config=config/crd/bases
102+ # Keep Helm chart CRD in sync (wrapped behind Values.crds.install)
103+ $(MAKE ) chart-sync-crd
102104
103105.PHONY : generate
104106generate : controller-gen # # Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
@@ -367,3 +369,24 @@ catalog-push: ## Push a catalog image.
367369.PHONY : related-image-fs
368370related-image-fs : envsubst
369371 FS_IMG=$(FS_IMG ) CJ_IMG=$(CJ_IMG ) $(ENVSUBST ) < config/default/related_image_fs_patch.tmpl > config/default/related_image_fs_patch.yaml
372+
373+ # #@ Helm chart (operator)
374+
375+ .PHONY : chart-verify-crd
376+ chart-verify-crd : # # Verify Helm chart CRD matches generated CRD (ignoring Helm gate)
377+ @diff -u \
378+ <( grep -v ' ^{{-' ../charts/feast-operator/templates/crd.yaml | sed ' /^---$$/d;/^[[:space:]]*$$/d' ) \
379+ <( sed ' /^---$$/d;/^[[:space:]]*$$/d' config/crd/bases/feast.dev_featurestores.yaml)
380+
381+ .PHONY : chart-sync-crd
382+ chart-sync-crd : # # Sync generated CRD into Helm chart (wrapped in Values.crds.install)
383+ @{ \
384+ echo " {{- if .Values.crds.install }}" ; \
385+ echo ; \
386+ cat config/crd/bases/feast.dev_featurestores.yaml; \
387+ echo ; \
388+ echo " {{- end }}" ; \
389+ } > ../charts/feast-operator/templates/crd.yaml
390+
391+ .PHONY : chart-verify
392+ chart-verify : chart-verify-crd # # Aggregate chart checks (extend as needed)
You can’t perform that action at this time.
0 commit comments