diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-03-27 18:18:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-03-27 18:18:12 +0000 |
commit | b0cd62150e80094eb97ae22d4b0b9cb54545840d (patch) | |
tree | b4b13ff57a3ab9023eb0f15ba9113b57f91614e6 /kubernetes/policy/charts/drools/templates | |
parent | 0cda6c2d017d6cd94e15e7f3fd227ddf26912a3b (diff) | |
parent | 68b1c92d437c3bd568f9c5c34efcc46295574ece (diff) |
Merge "[POLICY] Use common secret template in drools"
Diffstat (limited to 'kubernetes/policy/charts/drools/templates')
-rw-r--r-- | kubernetes/policy/charts/drools/templates/secrets.yaml | 2 | ||||
-rw-r--r-- | kubernetes/policy/charts/drools/templates/statefulset.yaml | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/kubernetes/policy/charts/drools/templates/secrets.yaml b/kubernetes/policy/charts/drools/templates/secrets.yaml index 47e0b8cfb0..7fb84b5ddc 100644 --- a/kubernetes/policy/charts/drools/templates/secrets.yaml +++ b/kubernetes/policy/charts/drools/templates/secrets.yaml @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +{{ include "common.secret" . }} +--- apiVersion: v1 kind: Secret metadata: diff --git a/kubernetes/policy/charts/drools/templates/statefulset.yaml b/kubernetes/policy/charts/drools/templates/statefulset.yaml index 047a77afef..e2463aa2c2 100644 --- a/kubernetes/policy/charts/drools/templates/statefulset.yaml +++ b/kubernetes/policy/charts/drools/templates/statefulset.yaml @@ -74,6 +74,10 @@ spec: env: - name: REPLICAS value: "{{ .Values.replicaCount }}" + - name: SQL_USER + {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-secret" "key" "login") | indent 12 }} + - name: SQL_PASSWORD + {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-secret" "key" "password") | indent 12 }} volumeMounts: - mountPath: /etc/localtime name: localtime |