diff --git a/charts/clickstack/Chart.yaml b/charts/clickstack/Chart.yaml index d6e0797..fac1ba6 100644 --- a/charts/clickstack/Chart.yaml +++ b/charts/clickstack/Chart.yaml @@ -15,5 +15,5 @@ annotations: - name: Upstream Project url: https://github.com/hyperdxio/hyperdx type: application -version: 1.0.1 +version: 1.0.2 appVersion: 2.8.0 diff --git a/charts/clickstack/templates/hyperdx-deployment.yaml b/charts/clickstack/templates/hyperdx-deployment.yaml index caafd3d..8e2e365 100644 --- a/charts/clickstack/templates/hyperdx-deployment.yaml +++ b/charts/clickstack/templates/hyperdx-deployment.yaml @@ -114,7 +114,10 @@ spec: {{- else }} {{- if .Values.hyperdx.defaultConnections }} - name: DEFAULT_CONNECTIONS - value: {{ tpl .Values.hyperdx.defaultConnections . | quote }} + valueFrom: + secretKeyRef: + name: {{ include "clickstack.fullname" . }}-app-secrets + key: defaultConnections {{- end }} {{- if .Values.hyperdx.defaultSources }} - name: DEFAULT_SOURCES diff --git a/charts/clickstack/templates/otel-collector-deployment.yaml b/charts/clickstack/templates/otel-collector-deployment.yaml index 95b066f..c4fcf0c 100644 --- a/charts/clickstack/templates/otel-collector-deployment.yaml +++ b/charts/clickstack/templates/otel-collector-deployment.yaml @@ -99,7 +99,10 @@ spec: - name: CLICKHOUSE_USER value: {{ .Values.otel.clickhouseUser | default .Values.clickhouse.config.users.otelUserName }} - name: CLICKHOUSE_PASSWORD - value: {{ .Values.otel.clickhousePassword | default .Values.clickhouse.config.users.otelUserPassword }} + valueFrom: + secretKeyRef: + name: {{ include "clickstack.fullname" . }}-clickhouse-secrets + key: otelUserPassword {{- if .Values.otel.customConfig }} - name: CUSTOM_OTELCOL_CONFIG_FILE value: /etc/otelcol-contrib/custom.config.yaml diff --git a/charts/clickstack/templates/secrets.yaml b/charts/clickstack/templates/secrets.yaml index 6550b59..494dbe6 100644 --- a/charts/clickstack/templates/secrets.yaml +++ b/charts/clickstack/templates/secrets.yaml @@ -7,6 +7,7 @@ metadata: type: Opaque data: api-key: {{ .Values.hyperdx.apiKey | b64enc }} + defaultConnections: {{ .Values.hyperdx.defaultConnections | toString | b64enc }} {{- if .Values.clickhouse.enabled }} --- apiVersion: v1 @@ -19,4 +20,4 @@ type: Opaque data: appUserPassword: {{ .Values.clickhouse.config.users.appUserPassword | toString | b64enc }} otelUserPassword: {{ .Values.clickhouse.config.users.otelUserPassword | toString | b64enc }} -{{- end }} \ No newline at end of file +{{- end }}