File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,9 @@ IMG_NAME ?= baremetal-operator
9191IMG_TAG ?= latest
9292IMG ?= $(IMG_NAME ) :$(IMG_TAG )
9393
94+ # Which configuration to use when deploying (from the config directory)
95+ DEPLOY_CONFIG ?= default
96+
9497# # --------------------------------------
9598# # Test Targets
9699# # --------------------------------------
@@ -193,7 +196,7 @@ uninstall: $(KUSTOMIZE) manifests ## Uninstall CRDs from a cluster
193196.PHONY : deploy
194197deploy : $(KUSTOMIZE ) manifests # # Deploy controller in the configured Kubernetes cluster in ~/.kube/config
195198 make set-manifest-image-bmo MANIFEST_IMG=$(IMG_NAME ) MANIFEST_TAG=$(IMG_TAG )
196- $< build config/default | kubectl apply -f -
199+ $< build config/$( DEPLOY_CONFIG ) | kubectl apply -f -
197200
198201$(CONTROLLER_GEN ) : hack/tools/go.mod
199202 cd hack/tools; go build -o $(abspath $@ ) sigs.k8s.io/controller-tools/cmd/controller-gen
Original file line number Diff line number Diff line change 1+ IRONIC_NAME = ironic
Original file line number Diff line number Diff line change 1+ apiVersion : kustomize.config.k8s.io/v1beta1
2+ kind : Kustomization
3+ namespace : baremetal-operator-system
4+ resources :
5+ - ../base
6+
7+ generatorOptions :
8+ disableNameSuffixHash : true
9+
10+ configMapGenerator :
11+ - name : ironic
12+ behavior : create
13+ envs :
14+ - ironic.env
You can’t perform that action at this time.
0 commit comments