Skip to content

Commit 2a28b9e

Browse files
authored
Merge pull request #466 from validatedpatterns/main
sync: main to rhdp-deploy
2 parents 7e1160a + 2f93c06 commit 2a28b9e

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

common/Makefile

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ ifneq ($(origin TARGET_SITE), undefined)
44
TARGET_SITE_OPT=--set main.clusterGroupName=$(TARGET_SITE)
55
endif
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
179
EXTRA_HELM_OPTS ?=
@@ -46,7 +38,19 @@ endif
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
4840
TOKEN_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

5155
ifeq ($(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

0 commit comments

Comments
 (0)