Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Commit 39d5817

Browse files
authored
chore(docs): Extension of the IBM Secrets Manager example (#904)
1 parent a65b4f2 commit 39d5817

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

examples/ibmcloud-secrets-manager.yaml

+40-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Secret Manager secret type: username_password, arbitrary, kev, or iam_credentials
12
apiVersion: kubernetes-client.io/v1
23
kind: ExternalSecret
34
metadata:
@@ -7,7 +8,45 @@ spec:
78
# optional: true to key secrets by name instead of by ID
89
keyByName: true
910
data:
11+
# get username and password as json of secret type: username_password
1012
- key: my-creds
1113
name: username_password
12-
# Secret Manager secret type: username_password, arbitrary, or iam_credentials
1314
secretType: username_password
15+
# get just the password of secret type: username_password
16+
- key: my-creds
17+
name: username
18+
property: password
19+
secretType: username_password
20+
# get just the value of a specific key of secret type: keyvalue
21+
- key: my-creds
22+
name: key
23+
property: payload.key
24+
secretType: kv
25+
# get value of secret type: arbitrary
26+
- key: my-creds
27+
name: test
28+
property: payload
29+
secretType: arbitrary
30+
---
31+
# Secret Manager secret type: imported_cert
32+
apiVersion: kubernetes-client.io/v1
33+
kind: ExternalSecret
34+
metadata:
35+
name: ibmcloud-secrets-manager
36+
spec:
37+
backendType: ibmcloudSecretsManager
38+
template:
39+
type: kubernetes.io/tls
40+
# optional: true to key secrets by name instead of by ID
41+
keyByName: true
42+
data:
43+
# get certificate secret type: imported_cert
44+
- key: my-creds
45+
name: tls.crt
46+
property: certificate
47+
secretType: imported_cert
48+
# get private key from secret type: imported_cert
49+
- key: my-creds
50+
name: tls.key
51+
property: private_key
52+
secretType: imported_cert

0 commit comments

Comments
 (0)