Skip to content

Commit 43a5071

Browse files
authored
Allow deployment with ESO > v0.17.0 (#276)
* Allow deployment with ESO > v1.0.0 * Update external-secret.yaml * Bump version
1 parent 4c908b6 commit 43a5071

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

charts/ext-postgres-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ description: |
88
99
type: application
1010

11-
version: 2.3.0
11+
version: 3.0.0
1212
appVersion: "2.4.0"

charts/ext-postgres-operator/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ helm upgrade --install -n operators ext-postgres-operator ext-postgres-operator/
1313

1414
## Compatibility
1515

16+
**NOTE:** Helm chart version `>= 3.0.0` requires External Secret Operator version `>= 0.17.0`. Ensure that you are using the correct versions to avoid compatibility issues.
17+
1618
**NOTE:** Helm chart version `>= 2.0.0` is only compatible with the Postgres Operator version `2.0.0`. Ensure that you are using the correct versions to avoid compatibility issues.

charts/ext-postgres-operator/templates/external-secret.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{{- if and (.Capabilities.APIVersions.Has "external-secrets.io/v1beta1") (.Values.externalSecret) }}
2-
apiVersion: external-secrets.io/v1beta1
1+
{{- if and (.Capabilities.APIVersions.Has "external-secrets.io/v1") (.Values.externalSecret) }}
2+
apiVersion: external-secrets.io/v1
33
kind: ExternalSecret
44
metadata:
55
name: {{ include "chart.fullname" . }}-external-secret
@@ -26,10 +26,16 @@ spec:
2626
data:
2727
- secretKey: username
2828
remoteRef:
29+
conversionStrategy: Default
30+
decodingStrategy: None
2931
key: {{ .Values.externalSecret.remoteKey | quote }}
32+
metadataPolicy: None
3033
property: username
3134
- secretKey: password
3235
remoteRef:
36+
conversionStrategy: Default
37+
decodingStrategy: None
3338
key: {{ .Values.externalSecret.remoteKey | quote }}
39+
metadataPolicy: None
3440
property: password
3541
{{- end }}

0 commit comments

Comments
 (0)