File tree 6 files changed +11
-2
lines changed
deploy/charts/netris-operator
6 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 24
24
secretKeyRef :
25
25
name : netris-creds
26
26
key : password
27
+ - name : CONTROLLER_INSECURE
28
+ value : " false"
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ type controller struct {
14
14
Host string `yaml:"host" envconfig:"CONTROLLER_HOST"`
15
15
Login string `yaml:"login" envconfig:"CONTROLLER_LOGIN"`
16
16
Password string `yaml:"password" envconfig:"CONTROLLER_PASSWORD"`
17
+ Insecure bool `yaml:"insecure" envconfig:"CONTROLLER_INSECURE"`
17
18
}
18
19
19
20
var Root * config
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ func init() {
38
38
if err != nil {
39
39
log .Panicf ("newHTTPCredentials error %v" , err )
40
40
}
41
+ Cred .InsecureVerify (configloader .Root .Controller .Insecure )
41
42
err = Cred .LoginUser ()
42
43
if err != nil {
43
44
log .Printf ("LoginUser error %v" , err )
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 0.1.0
18
+ version : 0.1.1
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
22
22
# follow Semantic Versioning. They should reflect the version the application is using.
23
- appVersion : v0.0.1
23
+ appVersion : v0.0.2
24
24
home : https://github.com/netrisai/netris-operator
25
25
icon : https://www.netris.ai/wp-content/uploads/2020/05/logo-600.png # [todo] Change url to permalink
26
26
keywords :
Original file line number Diff line number Diff line change @@ -102,5 +102,9 @@ Create netris-opeator controller envs
102
102
secretKeyRef:
103
103
name: { { .Values.controllerCreds.password.secretName } }
104
104
key: { { .Values.controllerCreds.password.key } }
105
+ { {- end } }
106
+ { {- if or (eq (lower (toString .Values.controller.insecure )) " true" ) (eq (lower (toString .Values.controller.insecure )) " false" ) } }
107
+ - name: CONTROLLER_INSECURE
108
+ value: { { .Values.controller.insecure | quote } }
105
109
{ {- end -} }
106
110
{ {- end -} }
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ controller: {}
18
18
# host: http://example.com
19
19
# login: login
20
20
# password: pass
21
+ # insecure: false
21
22
22
23
controllerCreds :
23
24
host :
You can’t perform that action at this time.
0 commit comments