File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,6 @@ ifneq ($(origin TARGET_SITE), undefined)
44 TARGET_SITE_OPT =--set main.clusterGroupName=$(TARGET_SITE )
55endif
66
7- # Set this to true if you want to skip any origin validation
8- DISABLE_VALIDATE_ORIGIN ?= false
9- ifeq ($(DISABLE_VALIDATE_ORIGIN ) ,true)
10- VALIDATE_ORIGIN :=
11- else
12- VALIDATE_ORIGIN := validate-origin
13- endif
14-
157# This variable can be set in order to pass additional helm arguments from the
168# the command line. I.e. we can set things without having to tweak values files
179EXTRA_HELM_OPTS ?=
4840TOKEN_SECRET ?=
4941TOKEN_NAMESPACE ?= openshift-operators
5042
43+ # Set this to true if you want to skip any origin validation
44+ # if TOKEN_SECRET is set to something then we skip the validation as well
45+ DISABLE_VALIDATE_ORIGIN ?= false
46+ ifeq ($(DISABLE_VALIDATE_ORIGIN ) ,true)
47+ VALIDATE_ORIGIN :=
48+ else ifneq ($(TOKEN_SECRET),)
49+ VALIDATE_ORIGIN :=
50+ else
51+ VALIDATE_ORIGIN := validate-origin
52+ endif
53+
54+
5155ifeq ($(TOKEN_SECRET ) ,)
5256 # SSH agents are not created for public repos (repos with no secret token) by the patterns operator so we convert to HTTPS
5357 TARGET_REPO := $(shell echo "$(TARGET_REPO_RAW ) " | sed 's/^git@\(.* \) :\(.*\)/https:\/\/\1\/\2/')
You can’t perform that action at this time.
0 commit comments