Skip to content

Commit 514f2f8

Browse files
authored
Fix ExternalSecret labels (#4237)
Labels inside `spec.target.template` are ignored by the API causing the Application to stay out of sync. Labels inside `metadata` should be copied to the resulting Secret. Signed-off-by: Alex Misstear <[email protected]>
1 parent 8bb8a2d commit 514f2f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/cluster-as-a-service/staging/external-secrets.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ kind: ExternalSecret
33
metadata:
44
name: cluster-as-a-service-hypershift-credentials
55
namespace: clusters
6+
labels:
7+
hypershift.openshift.io/safe-to-delete-with-cluster: "false"
68
spec:
79
dataFrom:
810
- extract:
@@ -18,8 +20,6 @@ spec:
1820
deletionPolicy: Delete
1921
name: hypershift
2022
template:
21-
labels:
22-
hypershift.openshift.io/safe-to-delete-with-cluster: "false"
2323
data:
2424
aws_access_key_id: "{{ .aws_access_key_id }}"
2525
aws_secret_access_key: "{{ .aws_secret_access_key }}"

0 commit comments

Comments
 (0)