File tree Expand file tree Collapse file tree 6 files changed +44
-6
lines changed Expand file tree Collapse file tree 6 files changed +44
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ 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 : 1.1.1
18
+ version : 1.1.2
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
Original file line number Diff line number Diff line change 49
49
- name : CLUSTER_NAME
50
50
value : {{ .Values.clusterName }}
51
51
- name : NATS_TOKEN
52
+ {{- if .Values.nats.auth.token }}
52
53
value : {{ .Values.nats.auth.token }}
54
+ {{- else if .Values.nats.auth.secret }}
55
+ valueFrom :
56
+ secretKeyRef :
57
+ name : {{ .Values.nats.auth.secret.name }}
58
+ key : {{ .Values.nats.auth.secret.key }}
59
+ {{- end }}
53
60
- name : NATS_ADDRESS
54
61
value : {{ .Values.nats.host }}
55
62
- name : SCHEDULING_INTERVAL
82
89
- name : CLUSTER_NAME
83
90
value : {{ .Values.clusterName }}
84
91
- name : NATS_TOKEN
92
+ {{- if .Values.nats.auth.token }}
85
93
value : {{ .Values.nats.auth.token }}
94
+ {{- else if .Values.nats.auth.secret }}
95
+ valueFrom :
96
+ secretKeyRef :
97
+ name : {{ .Values.nats.auth.secret.name }}
98
+ key : {{ .Values.nats.auth.secret.key }}
99
+ {{- end }}
86
100
- name : NATS_ADDRESS
87
101
value : {{ .Values.nats.host }}
88
102
resources :
@@ -100,7 +114,14 @@ spec:
100
114
- name : CLUSTER_NAME
101
115
value : {{ .Values.clusterName }}
102
116
- name : NATS_TOKEN
117
+ {{- if .Values.nats.auth.token }}
103
118
value : {{ .Values.nats.auth.token }}
119
+ {{- else if .Values.nats.auth.secret }}
120
+ valueFrom :
121
+ secretKeyRef :
122
+ name : {{ .Values.nats.auth.secret.name }}
123
+ key : {{ .Values.nats.auth.secret.key }}
124
+ {{- end }}
104
125
- name : NATS_ADDRESS
105
126
value : {{ .Values.nats.host }}
106
127
resources :
Original file line number Diff line number Diff line change @@ -156,4 +156,9 @@ clusterName: "kubviz"
156
156
nats :
157
157
host : kubviz-client-nats
158
158
auth :
159
- token : " UfmrJOYwYCCsgQvxvcfJ3BdI6c8WBbnD"
159
+ # Use token if you want to provide the token via Helm Values
160
+ token : " "
161
+ # Use a secret reference if you want to get a token from a secret
162
+ secret :
163
+ name : " "
164
+ key : " "
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ 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 : 1.1.1
18
+ version : 1.1.2
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
@@ -25,7 +25,7 @@ appVersion: "v1.0.0"
25
25
dependencies :
26
26
- name : nats
27
27
condition : nats.enabled
28
- version : 0.13.4
28
+ version : 0.13.5
29
29
repository : https://intelops.github.io/kubviz/
30
30
- name : clickhouse
31
31
condition : clickhouse.enabled
Original file line number Diff line number Diff line change 63
63
# port: http
64
64
env :
65
65
- name : NATS_TOKEN
66
+ {{- if and .Values.nats.enabled .Values.nats.auth.enabled .Values.nats.auth.token }}
66
67
value : {{ .Values.nats.auth.token }}
68
+ {{- else if and .Values.nats.enabled .Values.nats.auth.enabled .Values.nats.auth.secret }}
69
+ valueFrom :
70
+ secretKeyRef :
71
+ name : {{ .Values.nats.auth.secret.name }}
72
+ key : {{ .Values.nats.auth.secret.key }}
73
+ {{- end }}
67
74
- name : NATS_ADDRESS
68
75
value : {{ include "client.fullname" . }}-nats
69
76
- name : DB_ADDRESS
83
90
{{- with .Values.tolerations }}
84
91
tolerations :
85
92
{{- toYaml . | nindent 8 }}
86
- {{- end }}
93
+ {{- end }}
Original file line number Diff line number Diff line change 83
83
# Authentication setup
84
84
auth :
85
85
enabled : true
86
- token : " UfmrJOYwYCCsgQvxvcfJ3BdI6c8WBbnD"
86
+ # Use token if you want to provide the token via Helm Values
87
+ token : " "
88
+ # Use a secret reference if you want to get a token from a secret
89
+ secret :
90
+ name : " "
91
+ key : " "
87
92
nats :
88
93
jetstream :
89
94
enabled : true
You can’t perform that action at this time.
0 commit comments