Skip to content

Commit

Permalink
HMS-3414 build: update ephemeral cluster
Browse files Browse the repository at this point in the history
Update the ephemeral cluster and provide more flexibility to specify the
cluster to use by using the CLUSTER variable.

Signed-off-by: Alejandro Visiedo <[email protected]>
  • Loading branch information
avisiedo committed Jan 17, 2024
1 parent 87086d5 commit 78f2999
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/mk/ephemeral.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ ifeq (,$(APP_NAME))
$(error APP_NAME is empty; did you miss to set APP_NAME=my-app at your scripts/mk/variables.mk)
endif

CLUSTER ?= crc-eph.r9lp.p1.openshiftapps.com

APP_COMPONENT ?= frontend

# Set the default duration for the namespace reservation and extension
Expand Down Expand Up @@ -51,7 +53,7 @@ ephemeral-login: .old-ephemeral-login ## Help in login to the ephemeral cluster

.PHONY: .old-ephemeral-login
.old-ephemeral-login:
xdg-open "https://oauth-openshift.apps.c-rh-c-eph.8p0c.p1.openshiftapps.com/oauth/token/request"
xdg-open "https://oauth-openshift.apps.$(CLUSTER)/oauth/token/request"
@echo "- Login with github"
@echo "- Do click on 'Display Token'"
@echo "- Copy 'Log in with this token' command"
Expand Down
2 changes: 2 additions & 0 deletions scripts/mk/private.example.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ POOL ?= default
# NOTE This could be necessary when too many deployments are made.
# export GITLAB_TOKEN :=

# Cluster to use for development purpose
CLUSTER ?= crc-eph.r9lp.p1.openshiftapps.com

0 comments on commit 78f2999

Please sign in to comment.