Skip to content

Commit 2d2bb38

Browse files
authored
Merge pull request #61 from superstreamlabs/0.4.2
add version 0.4.2
2 parents 0a95bd0 + 25b5007 commit 2d2bb38

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

charts/superstream/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type: application
2525
# This is the chart version. This version number should be incremented each time you make changes
2626
# to the chart and its templates, including the app version.
2727
# Versions are expected to follow Semantic Versioning (https://semver.org/)
28-
version: 0.4.1
28+
version: 0.4.2
2929
# This is the version number of the application being deployed. This version number should be
3030
# incremented each time you make changes to the application. Versions are not expected to
3131
# follow Semantic Versioning. They should reflect the version the application is using.

charts/superstream/charts/telegraf/templates/configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ data:
4747
"https://superstream-monitoring.mgmt.memphis-gcp.dev"
4848
]
4949
[outputs.influxdb_v2.http_headers]
50-
Authorization = {{ .Values.global.activationToken | quote }}
50+
Authorization = "<< $TOKEN >>"
5151
[[outputs.influxdb_v2]]
5252
bucket = "metrics"
5353
content_encoding = "gzip"
@@ -60,7 +60,7 @@ data:
6060
"https://superstream-monitoring.mgmt.memphis-gcp.dev"
6161
]
6262
[outputs.influxdb_v2.http_headers]
63-
Authorization = {{ .Values.global.activationToken | quote }}
63+
Authorization = "<< $TOKEN >>"
6464
[[inputs.syslog]]
6565
server = "udp://:6514"
6666
[inputs.syslog.tags]

charts/superstream/charts/telegraf/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ fullnameOverride: telegraf
2121
env:
2222
- name: HOSTNAME
2323
value: "telegraf-polling-service"
24+
- name: TOKEN
25+
valueFrom:
26+
secretKeyRef:
27+
name: superstream-creds
28+
key: ACTIVATION_TOKEN
2429
# An older "volumeMounts" key was previously added which will likely
2530
# NOT WORK as you expect. Please use this newer configuration.
2631

charts/superstream/templates/_helpers.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
5555
{{- end }}
5656

5757
{{- define "superstream.secret" -}}
58+
{{- if not .Values.superstreamEngine.secret.useExisting -}}
5859
{{- $secret := lookup "v1" "Secret" .Release.Namespace .Values.superstreamEngine.secret.name -}}
5960
{{- if $secret -}}
6061
{{ toYaml $secret.data }}
@@ -63,6 +64,7 @@ ENCRYPTION_SECRET_KEY: {{ randAlphaNum 32 | b64enc | quote }}
6364
ACTIVATION_TOKEN: {{ .Values.global.activationToken | toString | b64enc | quote }}
6465
{{- end -}}
6566
{{- end -}}
67+
{{- end -}}
6668

6769
{{/*
6870
Create the name of the service account to use

charts/superstream/templates/secret-data-plane.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if not .Values.superstreamEngine.secret.existingSecret -}}
1+
{{- if not .Values.superstreamEngine.secret.useExisting -}}
22
apiVersion: v1
33
kind: Secret
44
metadata:

charts/superstream/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ superstreamEngine:
6262
name: superstream-creds
6363
encryptionSecretKey: ""
6464
activationToken: ""
65+
useExisting: false
6566
podAnnotations:
6667
prometheus.io/path: "/monitoring/metrics"
6768
prometheus.io/scrape: 'true'

0 commit comments

Comments
 (0)