This commit is contained in:
Zeeshaun
2026-03-13 09:27:34 -05:00
parent 256f579489
commit a675c5f5b0
381 changed files with 20992 additions and 0 deletions
@@ -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
@@ -0,0 +1,41 @@
- op: add
path: /spec/template/spec/volumes/-
value:
name: repo-api-secrets
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: normal-repo-api-secrets-provider
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: repo-api-secrets
mountPath: /vault/secrets/repo-api-seq-api-key.json
readOnly: true
subPath: repo-api-seq-api-key
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: repo-api-secrets
mountPath: /vault/secrets/repo-api-database-connection-string.json
readOnly: true
subPath: repo-api-database-connection-string
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: repo-api-secrets
mountPath: /vault/secrets/repo-api-queue-user-name.json
readOnly: true
subPath: repo-api-queue-user-name
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: repo-api-secrets
mountPath: /vault/secrets/repo-api-queue-password.json
readOnly: true
subPath: repo-api-queue-password
@@ -0,0 +1,21 @@
- op: add
path: /spec/parameters/objects
value: |
array:
- |
objectName: repo-api-seq-api-key
objectType: secret
objectVersion: ""
- |
objectName: repo-api-database-connection-string
objectType: secret
objectVersion: ""
- |
objectName: repo-api-queue-user-name
objectType: secret
objectVersion: ""
- |
objectName: repo-api-queue-password
objectType: secret
objectVersion: ""
@@ -0,0 +1,9 @@
{
"Primary": {
"FeatureFlags": {
"RunRepoAccountProcessingConsumer": false,
"RunRepoBatchProcessingConsumer": false,
"RunRepoBatchCompletionProcessingConsumer": true
}
}
}
@@ -0,0 +1,40 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
namePrefix: completion-
configMapGenerator:
- name: repo-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
@@ -0,0 +1,12 @@
- op: add
path: /spec/template/spec/volumes/-
value:
name: volume-appsettings
configMap:
name: repo-api-appsettings
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: volume-appsettings
mountPath: /app/config/workload-appsettings
@@ -0,0 +1,9 @@
{
"Primary": {
"FeatureFlags": {
"RunRepoAccountProcessingConsumer": true,
"RunRepoBatchProcessingConsumer": true,
"RunRepoBatchCompletionProcessingConsumer": false
}
}
}
@@ -0,0 +1,40 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
namePrefix: normal-
configMapGenerator:
- name: repo-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
@@ -0,0 +1,12 @@
- op: add
path: /spec/template/spec/volumes/-
value:
name: volume-appsettings
configMap:
name: repo-api-appsettings
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: volume-appsettings
mountPath: /app/config/workload-appsettings