-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecret-provider-class.yml
53 lines (51 loc) · 1.87 KB
/
secret-provider-class.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
name: app-secrets
namespace: default
spec:
provider: lastpass
parameters:
# share is the LastPass shared folder name. If set, it must have prefix "Shared-"
# group is the LastPass folder name (can be within or outside a shared folder)
# name is the LastPass item / account / password name
items: |
- share: ""
group: ""
name: "netflix"
# Everything below here is OPTIONAL.
#
# By default a JSON representation of the LastPass item gets output, e.g.
# {
# "ID": "1111111111111111111",
# "Name": "netflix",
# "Username": "myuser",
# "Password": "mypassword",
# "URL": "https://netflix.com",
# "Group": "",
# "Share": "",
# "Notes": "mynotes",
# "LastModifiedGMT": "1640100105",
# "LastTouch": "1662322405"
# }
# To output a single value, set 'output' to a JSON key.
# For example, below line will output only 'mypassword' instead of above JSON.
output: Password
# If you not only want your LastPass item defined above be mounted to the Pod,
# but additionally create a K8s Secret object containing the LastPass item,
# define the desired state of the synced K8s secret object here:
secretObjects:
- data:
# Choose some arbitrary key.
- key: mykey
# Name of the mounted content to sync.
# In our example the secret will be mounted to /mnt/secrets-store/netflix
# (Note: If your item above defines group 'my-group', the secret will be mounted into
# /mnt/secrets-store/my-group/netflix and you will therefore need to set the
# objectName to 'my-group/netflix'.)
objectName: netflix
# Choose some arbitrary name of the K8s Secret object
# that will be created by Secrets Store CSI Driver.
secretName: mysecret
type: Opaque