Adding MaidBotApi
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
path: set_secrets_deployment.yaml
|
||||
- target:
|
||||
kind: SecretProviderClass
|
||||
path: set_secrets_provider.yaml
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: maidbot-api-secrets
|
||||
csi:
|
||||
driver: secrets-store.csi.k8s.io
|
||||
readOnly: true
|
||||
volumeAttributes:
|
||||
secretProviderClass: normal-maidbot-api-csi-key-vault-secrets-provider
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: maidbot-api-secrets
|
||||
mountPath: /vault/secrets/maidbot-api-seq-api-key.json
|
||||
readOnly: true
|
||||
subPath: maidbot-api-seq-api-key
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: maidbot-api-secrets
|
||||
mountPath: /vault/secrets/maidbot-api-connection-configuration-password.json
|
||||
readOnly: true
|
||||
subPath: maidbot-api-connection-configuration-password
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: maidbot-api-secrets
|
||||
mountPath: /vault/secrets/maidbot-api-connection-configuration-username.json
|
||||
readOnly: true
|
||||
subPath: maidbot-api-connection-configuration-username
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: maidbot-api-secrets
|
||||
mountPath: /vault/secrets/maidbot-database-connection.json
|
||||
readOnly: true
|
||||
subPath: maidbot-database-connection
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
- op: add
|
||||
path: /spec/parameters/objects
|
||||
value: |
|
||||
array:
|
||||
- |
|
||||
objectName: maidbot-api-seq-api-key
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: maidbot-api-connection-configuration-password
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: maidbot-api-connection-configuration-username
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: maidbot-database-connection
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
Reference in New Issue
Block a user