File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- LICENSE=$2
43NS=$1
54
6- if [ -z $LICENSE ]; then
7- echo " No enterprise license set"
8- exit 0
9- fi
10-
115if [ -z $NS ]; then
126 echo " Specify a namespace argument"
137 exit 1
148fi
159
10+ if [ -z $2 ]; then
11+ echo " No enterprise license set"
12+ exit 0
13+ fi
14+
15+ LICENSE=$( echo -n " $2 " | base64 -w 0)
16+
1617kubectl apply -f - << EOF
1718apiVersion: v1
1819data:
Original file line number Diff line number Diff line change @@ -250,7 +250,9 @@ func newDeployment(name string) *api.ArangoDeployment {
250250 },
251251 Spec : api.DeploymentSpec {
252252 ImagePullPolicy : util .NewPullPolicy (v1 .PullAlways ),
253- LicenseKey : util .NewString (TestEnterpriseLicenseKeySecretName ),
253+ License : api.LicenseSpec {
254+ SecretName : util .NewString (TestEnterpriseLicenseKeySecretName ),
255+ },
254256 },
255257 }
256258
You can’t perform that action at this time.
0 commit comments