Skip to content

Commit 390c4f3

Browse files
committed
Add a configuration for deploying BMO with IrSO integration
Signed-off-by: Dmitry Tantsur <[email protected]>
1 parent 0dc4788 commit 390c4f3

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ IMG_NAME ?= baremetal-operator
9191
IMG_TAG ?= latest
9292
IMG ?= $(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
194197
deploy: $(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

config/use-irso/ironic.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
IRONIC_NAME=ironic

config/use-irso/kustomization.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

0 commit comments

Comments
 (0)