File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
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 ?=
4638# Set the secret name *and* its namespace when deploying from private repositories
4739# The format of said secret is documented here: https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#repositories
4840TOKEN_SECRET ?=
49- TOKEN_NAMESPACE ?=
41+ TOKEN_NAMESPACE ?= openshift-operators
42+
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+
5054
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
You can’t perform that action at this time.
0 commit comments