Skip to content

Commit

Permalink
Merge pull request #16 from port-labs/PORT-3931-k-8-s-exporter-suppor…
Browse files Browse the repository at this point in the history
…t-map-configuration-and-not-just-text-blob

Port 3931 k 8 s exporter support map configuration and not just text blob
  • Loading branch information
talsabagport authored Jun 5, 2023
2 parents 7c17942 + b9fdea4 commit a22c26d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/port-k8s-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: port-k8s-exporter
description: A Helm chart for Port Kubernetes Exporter
type: application
version: 0.1.14
version: 0.1.15
appVersion: "0.1.10"
home: https://getport.io/
sources:
Expand Down
8 changes: 6 additions & 2 deletions charts/port-k8s-exporter/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
data:
config.yaml:
{{- required "config.yaml is required" .Values.configMap.config | toYaml | nindent 4 }}
config.yaml: |
{{- if kindIs "string" .Values.configMap.config -}}
{{- required "config.yaml is required" .Values.configMap.config | fromYaml | toYaml | nindent 4 }}
{{ else }}
{{- required "config.yaml is required" .Values.configMap.config | toYaml | nindent 4 }}
{{ end }}
state_key: {{ $config }}

0 comments on commit a22c26d

Please sign in to comment.