Skip to content

Commit

Permalink
Merge pull request #64 from razo7/bundle-validate
Browse files Browse the repository at this point in the history
Extend Bundle Validation with Three more Validators
  • Loading branch information
openshift-merge-robot authored Jan 31, 2023
2 parents 6530579 + db96b85 commit d8ee367
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,16 @@ bundle: manifests operator-sdk kustomize ## Generate bundle manifests and metada
$(OPERATOR_SDK) generate kustomize manifests -q
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS)
$(MAKE) bundle-reset-date
$(OPERATOR_SDK) bundle validate ./bundle
$(MAKE) bundle-reset-date bundle-validate

.PHONY: bundle-k8s
bundle-k8s: bundle # Generate bundle manifests and metadata for Kubernetes, then validate generated files.
$(KUSTOMIZE) build config/manifests-k8s | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS)
$(OPERATOR_SDK) bundle validate ./bundle
$(MAKE) bundle-validate

.PHONY: bundle-validate
bundle-validate: operator-sdk ## Validate the bundle directory with additional validators (suite=operatorframework), such as Kubernetes deprecated APIs (https://kubernetes.io/docs/reference/using-api/deprecation-guide/) based on bundle.CSV.Spec.MinKubeVersion
$(OPERATOR_SDK) bundle validate ./bundle --select-optional suite=operatorframework

.PHONY: bundle-build
bundle-build: bundle-update ## Build the bundle image.
Expand Down

0 comments on commit d8ee367

Please sign in to comment.