diff --git a/helm/charts/crossplane-provider-cloudfoundry/Chart.yaml b/helm/charts/crossplane-provider-cloudfoundry/Chart.yaml index 63a4b44..4d92724 100644 --- a/helm/charts/crossplane-provider-cloudfoundry/Chart.yaml +++ b/helm/charts/crossplane-provider-cloudfoundry/Chart.yaml @@ -7,4 +7,4 @@ sources: - https://github.com/openmcp-project/blueprint-building-blocks - https://github.com/SAP/crossplane-provider-cloudfoundry type: application -version: 0.1.2 +version: 0.1.3 diff --git a/helm/charts/crossplane-provider-cloudfoundry/README.md b/helm/charts/crossplane-provider-cloudfoundry/README.md index 93a2feb..b2e89d8 100644 --- a/helm/charts/crossplane-provider-cloudfoundry/README.md +++ b/helm/charts/crossplane-provider-cloudfoundry/README.md @@ -2,7 +2,7 @@ # crossplane-provider-cloudfoundry -![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.3.0](https://img.shields.io/badge/AppVersion-0.3.0-informational?style=flat-square) +![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.3.0](https://img.shields.io/badge/AppVersion-0.3.0-informational?style=flat-square) A Helm Chart to template crossplane manifests to manage BTP Cloud Foundry resources on BTP. diff --git a/helm/charts/crossplane-provider-cloudfoundry/templates/secrets/generic-secret.yaml b/helm/charts/crossplane-provider-cloudfoundry/templates/secrets/generic-secret.yaml index d645ccd..41c77e2 100644 --- a/helm/charts/crossplane-provider-cloudfoundry/templates/secrets/generic-secret.yaml +++ b/helm/charts/crossplane-provider-cloudfoundry/templates/secrets/generic-secret.yaml @@ -1,24 +1,24 @@ -{{- range $item := .Values.secrets}} - {{- if and ($item) (ne $item.name "")}} +{{- range $item := .Values.secrets }} + {{- if and ($item) (ne $item.name "") }} --- apiVersion: v1 kind: Secret type: Opaque metadata: - name: {{required "A valid value is required! (.Values.secrets[].name)" $item.name | lower | quote}} - namespace: {{required "A valid value is required! (.Values.secrets[].namespace)" $item.namespace | lower | quote}} + name: {{ required "A valid value is required! (.Values.secrets[].name)" $item.name | lower | quote }} + namespace: {{ required "A valid value is required! (.Values.secrets[].namespace)" $item.namespace | lower | quote }} labels: - openmcp.cloud/blueprint-building-block: "{{ $.Chart.Name }}" - openmcp.cloud/blueprint-building-block-version: "{{ $.Chart.Version }}" - {{- if $item.stringData}} + openmcp.cloud/blueprint-building-block: {{ $.Chart.Name | quote }} + openmcp.cloud/blueprint-building-block-version: {{ $.Chart.Version | quote }} +{{- if $item.stringData }} stringData: - {{- range $key, $value := $item.stringData }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} - {{- if $item.data}} +{{- range $key, $value := $item.stringData }} + {{ $key }}: {{ $value | quote }} +{{- end }} +{{- end }} +{{- if $item.data }} data: - {{- toYaml $item.data | nindent 4 }} - {{- end }} +{{- toYaml $item.data | nindent 2 }} +{{- end }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }}