Browse Source

Merge pull request #147 from abpframework/skoc/secret-env

pull/149/head
Ma Liming 1 year ago
committed by GitHub
parent
commit
8720f12113
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 10
      etc/k8s/helm-chart/eventhub/charts/api/templates/api.yaml
  2. 2
      etc/k8s/helm-chart/eventhub/values.azure.yaml

10
etc/k8s/helm-chart/eventhub/charts/api/templates/api.yaml

@ -24,6 +24,16 @@ spec:
{{ include "eventhub.global.env" . | indent 8 }} {{ include "eventhub.global.env" . | indent 8 }}
- name: "ConnectionStrings__Default" - name: "ConnectionStrings__Default"
value: {{ .Values.global.defaultConnString }} value: {{ .Values.global.defaultConnString }}
- name: Payment__PayPal__ClientId
valueFrom:
secretKeyRef:
name: {{ .Values.payPal.secretName }}
key: clientId
- name: Payment__PayPal__Secret
valueFrom:
secretKeyRef:
name: {{ .Values.payPal.secretName }}
key: secret
nodeSelector: nodeSelector:
agentpool: demopool agentpool: demopool

2
etc/k8s/helm-chart/eventhub/values.azure.yaml

@ -34,5 +34,7 @@ dbmigrator:
containerImage: "volosoft.azurecr.io/eventhub/dbmigrator" containerImage: "volosoft.azurecr.io/eventhub/dbmigrator"
background-services: background-services:
containerImage: "volosoft.azurecr.io/eventhub/background" containerImage: "volosoft.azurecr.io/eventhub/background"
payPal:
secretName: paypal-secret # look for this secret https://github.com/volosoft/devops/blob/master/old-folder/eventhub/apihost-secret.yaml
nodeSelector: nodeSelector:
agentpool: demopool agentpool: demopool
Loading…
Cancel
Save