Skip to content

Commit

Permalink
feat: deploy in ephemeral
Browse files Browse the repository at this point in the history
Update ephemeral-namespace-create to add a pull-secret and link the
pull-secret to the service account used for the frontend pod.

Signed-off-by: Alejandro Visiedo <[email protected]>
  • Loading branch information
avisiedo committed Nov 13, 2023
1 parent 6583617 commit a6f811c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/mk/ephemeral.mk
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ $(GO_OUTPUT/get-token.py):
curl -Ls -o "$(GO_OUTPUT/get-token.py)" "https://gitlab.cee.redhat.com/klape/get-token/-/raw/main/get-token.py"

# NOTE Changes to config/bonfire.yaml could impact to this rule
# make ephemeral-deploy EPHEMERAL_NO_BUILD=y CONTAINER_IMAGE_BASE=quay.io/cloudservices/idmsvc-frontend CONTAINER_IMAGE_TAG=7b4abc3
.PHONY: ephemeral-deploy
ephemeral-deploy: ## Deploy application using 'config/bonfire.yaml' file
[ "$(EPHEMERAL_NO_BUILD)" == "y" ] || $(MAKE) ephemeral-build-deploy
Expand Down Expand Up @@ -122,6 +123,8 @@ ephemeral-process: ## Process application from the current namespace
.PHONY: ephemeral-namespace-create
ephemeral-namespace-create: ## Create a namespace (requires ephemeral environment)
oc project "$(shell source .venv/bin/activate && bonfire namespace reserve --force --pool "$(POOL)" 2>/dev/null)"
oc create -f "$(PROJECT_DIR)/secrets/ephemeral/cloudservice-pullsecret.yaml"
oc secrets link default cloudservice-pullsecret --for=pull

.PHONY: ephemeral-namespace-delete
ephemeral-namespace-delete: ## Delete current namespace (requires ephemeral environment)
Expand Down

0 comments on commit a6f811c

Please sign in to comment.