Skip to content

Commit 369ab05

Browse files
authored
fix metaflow discovery secret (#279)
1 parent 65d93df commit 369ab05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

charts/library-chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v2
22
name: library-chart
3-
version: 2.0.0
3+
version: 2.0.1
44
type: library

charts/library-chart/templates/_secret_metaflow_discovery.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
{{/* Template to generate a Secret for Metaflow */}}
1313
{{- define "library-chart.secretMetaflow" -}}
1414
{{- $namespace := .Release.Namespace -}}
15+
{{- if (.Values.discovery).metaflow }}
1516
apiVersion: v1
1617
kind: Secret
1718
metadata:
@@ -24,7 +25,6 @@ stringData:
2425
"METAFLOW_DEFAULT_METADATA": "service",
2526
"METAFLOW_KUBERNETES_SERVICE_ACCOUNT": "default",
2627
"METAFLOW_S3_ENDPOINT_URL": "https://{{ eq .Values.s3.endpoint "s3.amazonaws.com" | ternary (printf "s3.%s.amazonaws.com" .Values.s3.defaultRegion) .Values.s3.endpoint }}",
27-
{{- if (.Values.discovery).metaflow }}
2828
{{- with $secretData := first (include "library-chart.getOnyxiaDiscoverySecrets" (list $namespace "metaflow") | fromJsonArray) }}
2929
{{- $host := $secretData.host | default "" | b64dec }}
3030
{{- $s3Bucket := $secretData.s3Bucket | default "" | b64dec }}

0 commit comments

Comments
 (0)