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: ""
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
#Test istio process
|
||||
namePrefix: normal-
|
||||
|
||||
configMapGenerator:
|
||||
- name: maidbot-api-appsettings
|
||||
files:
|
||||
- appsettings/appsettings.json
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
path: set_appsettings_deployment.yaml
|
||||
|
||||
replacements:
|
||||
- source:
|
||||
kind: Deployment
|
||||
fieldPath: metadata.name
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
fieldPaths:
|
||||
- spec.selector.matchLabels.app
|
||||
- spec.template.metadata.labels.app
|
||||
- spec.template.spec.containers.*.name
|
||||
|
||||
- select:
|
||||
kind: Service
|
||||
fieldPaths:
|
||||
- spec.selector.app
|
||||
|
||||
- select:
|
||||
kind: VirtualService
|
||||
fieldPaths:
|
||||
- spec.http.*.route.*.destination.host
|
||||
- spec.http.*.name
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
configMap:
|
||||
name: maidbot-api-appsettings
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
mountPath: /app/config/workload-appsettings
|
||||
Reference in New Issue
Block a user