File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,14 @@ ifneq ($(origin TARGET_SITE), undefined)
4
4
TARGET_SITE_OPT =--set main.clusterGroupName=$(TARGET_SITE )
5
5
endif
6
6
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
+
7
15
# This variable can be set in order to pass additional helm arguments from the
8
16
# the command line. I.e. we can set things without having to tweak values files
9
17
EXTRA_HELM_OPTS ?=
@@ -71,7 +79,7 @@ preview-%:
71
79
@common/scripts/preview.sh $(CLUSTERGROUP ) $* $(TARGET_REPO ) $(TARGET_BRANCH )
72
80
73
81
.PHONY : operator-deploy
74
- operator-deploy operator-upgrade : validate-prereq validate-origin validate-cluster # # runs helm install
82
+ operator-deploy operator-upgrade : validate-prereq $( VALIDATE_ORIGIN ) validate-cluster # # runs helm install
75
83
@common/scripts/deploy-pattern.sh $(NAME ) $(PATTERN_INSTALL_CHART ) $(HELM_OPTS )
76
84
77
85
.PHONY : uninstall
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ podman run -it --rm --pull=newer \
96
96
-e KUBECONFIG \
97
97
-e PATTERN_INSTALL_CHART \
98
98
-e PATTERN_DISCONNECTED_HOME \
99
+ -e DISABLE_VALIDATE_ORIGIN \
99
100
-e K8S_AUTH_HOST \
100
101
-e K8S_AUTH_VERIFY_SSL \
101
102
-e K8S_AUTH_SSL_CA_CERT \
You can’t perform that action at this time.
0 commit comments