Skip to content

Commit 1c1d32c

Browse files
committed
fix: add esos
Signed-off-by: Chris Butler <chris.butler@redhat.com>
1 parent 2805836 commit 1c1d32c

3 files changed

Lines changed: 59 additions & 5 deletions

File tree

charts/hub/trustee/templates/push-secret.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ spec:
2020
remoteRef:
2121
remoteKey: "pushsecrets/kbs-tls-self-signed" # Remote reference (where the secret is going to be pushed)
2222
property: key
23-
# - match:
24-
# secretKey: tls.crt # Source Kubernetes secret key to be pushed
25-
# remoteRef:
26-
# remoteKey: "hub/kbs-tls-self-signed"
27-
# property: certificate # Remote reference (where the secret is going to be pushed
23+
- match:
24+
secretKey: tls.crt # Source Kubernetes secret key to be pushed
25+
remoteRef:
26+
remoteKey: "pushsecrets/kbs-tls-self-signed"
27+
property: certificate # Remote reference (where the secret is going to be pushed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
apiVersion: "external-secrets.io/v1beta1"
3+
kind: ExternalSecret
4+
metadata:
5+
annotations:
6+
argocd.argoproj.io/sync-wave: "1"
7+
name: tls-cert-eso
8+
namespace: trustee-operator-system
9+
spec:
10+
refreshInterval: 15s
11+
secretStoreRef:
12+
name: {{ .Values.secretStore.name }}
13+
kind: {{ .Values.secretStore.kind }}
14+
target:
15+
name: kbs-https-certificate
16+
template:
17+
type: Opaque
18+
data:
19+
tls.crt: >-
20+
{{ printf "{{ .data.TLSCERT | toString }} }}" }}
21+
data:
22+
- secretKey: TLSCERT
23+
remoteRef:
24+
key: 'secret/data/pushsecrets/kbs-tls-self-signed'
25+
property: certificate
26+
27+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
apiVersion: "external-secrets.io/v1beta1"
3+
kind: ExternalSecret
4+
metadata:
5+
annotations:
6+
argocd.argoproj.io/sync-wave: "1"
7+
name: tls-key-eso
8+
namespace: trustee-operator-system
9+
spec:
10+
refreshInterval: 15s
11+
secretStoreRef:
12+
name: {{ .Values.secretStore.name }}
13+
kind: {{ .Values.secretStore.kind }}
14+
target:
15+
name: kbs-https-key
16+
template:
17+
type: Opaque
18+
data:
19+
tls.key: >-
20+
{{ printf "{{ .data.TLSKEY | toString }} }}" }}
21+
data:
22+
- secretKey: TLSKEY
23+
remoteRef:
24+
key: 'secret/data/pushsecrets/kbs-tls-self-signed'
25+
property: key
26+
27+

0 commit comments

Comments
 (0)