Adding
This commit is contained in:
+10
@@ -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
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: core-soap-api-wrapper-api-secrets
|
||||
csi:
|
||||
driver: secrets-store.csi.k8s.io
|
||||
readOnly: true
|
||||
volumeAttributes:
|
||||
secretProviderClass: normal-core-soap-api-wrapper-api-csi-key-vault-secrets-provider
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: core-soap-api-wrapper-api-secrets
|
||||
mountPath: /vault/secrets/core-soap-api-wrapper-api-seq-api-key.json
|
||||
readOnly: true
|
||||
subPath: core-soap-api-wrapper-api-seq-api-key
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: core-soap-api-wrapper-api-secrets
|
||||
mountPath: /vault/secrets/core-soap-api-wrapper-external-api-key-core-soap-api-wrapper.json
|
||||
readOnly: true
|
||||
subPath: core-soap-api-wrapper-external-api-key-core-soap-api-wrapper
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: core-soap-api-wrapper-api-secrets
|
||||
mountPath: /vault/secrets/core-soap-api-wrapper-soap-connection-user-id.json
|
||||
readOnly: true
|
||||
subPath: core-soap-api-wrapper-soap-connection-user-id
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: core-soap-api-wrapper-api-secrets
|
||||
mountPath: /vault/secrets/core-soap-api-wrapper-soap-connection-password.json
|
||||
readOnly: true
|
||||
subPath: core-soap-api-wrapper-soap-connection-password
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: core-soap-api-wrapper-api-secrets
|
||||
mountPath: /vault/secrets/core-soap-api-wrapper-socket-connection-user-id.json
|
||||
readOnly: true
|
||||
subPath: core-soap-api-wrapper-socket-connection-user-id
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: core-soap-api-wrapper-api-secrets
|
||||
mountPath: /vault/secrets/core-soap-api-wrapper-socket-connection-password.json
|
||||
readOnly: true
|
||||
subPath: core-soap-api-wrapper-socket-connection-password
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
- op: add
|
||||
path: /spec/parameters/objects
|
||||
value: |
|
||||
array:
|
||||
- |
|
||||
objectName: core-soap-api-wrapper-api-seq-api-key
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: core-soap-api-wrapper-external-api-key-core-soap-api-wrapper
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: core-soap-api-wrapper-soap-connection-user-id
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: core-soap-api-wrapper-soap-connection-password
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: core-soap-api-wrapper-socket-connection-user-id
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: core-soap-api-wrapper-socket-connection-password
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
#Test istio process
|
||||
namePrefix: normal-
|
||||
|
||||
configMapGenerator:
|
||||
- name: core-soap-api-wrapper-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: core-soap-api-wrapper-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