summaryrefslogtreecommitdiffstats
path: root/kubernetes/policy/charts/drools/templates/statefulset.yaml
diff options
context:
space:
mode:
authorMike Elliott <mike.elliott@amdocs.com>2019-09-12 14:19:02 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-12 14:19:02 +0000
commitabebe0ce99f7aeb05827e67afc5c3cdaff45ee3f (patch)
tree93480876527d015e65360b33543aa56279bdd031 /kubernetes/policy/charts/drools/templates/statefulset.yaml
parente5819ddab89fc838fe019166a75254dbbc26d261 (diff)
parent010965911185b9a1ef2008246fabc37f193baf2b (diff)
Merge "refactor drools chart to allow customizations"
Diffstat (limited to 'kubernetes/policy/charts/drools/templates/statefulset.yaml')
-rw-r--r--kubernetes/policy/charts/drools/templates/statefulset.yaml30
1 files changed, 16 insertions, 14 deletions
diff --git a/kubernetes/policy/charts/drools/templates/statefulset.yaml b/kubernetes/policy/charts/drools/templates/statefulset.yaml
index beacbabd06..bb21ae14aa 100644
--- a/kubernetes/policy/charts/drools/templates/statefulset.yaml
+++ b/kubernetes/policy/charts/drools/templates/statefulset.yaml
@@ -78,15 +78,16 @@ spec:
- mountPath: /etc/localtime
name: localtime
readOnly: true
- - mountPath: /tmp/policy-install/config/feature-healthcheck.conf
+ {{- range $path, $bytes := .Files.Glob "resources/secrets/*" }}
+ - mountPath: /tmp/policy-install/config/{{ base $path }}
name: drools-secret
- subPath: feature-healthcheck.conf
- - mountPath: /tmp/policy-install/config/feature-pooling-dmaap.conf
- name: drools-config
- subPath: feature-pooling-dmaap.conf
- - mountPath: /tmp/policy-install/config/base.conf
+ subPath: {{ base $path }}
+ {{- end }}
+ {{- range $path, $bytes := .Files.Glob "resources/configmaps/*" }}
+ - mountPath: /tmp/policy-install/config/{{ base $path }}
name: drools-config
- subPath: base.conf
+ subPath: {{ base $path }}
+ {{- end }}
- mountPath: /var/log/onap
name: policy-logs
resources:
@@ -125,18 +126,19 @@ spec:
configMap:
name: {{ include "common.fullname" . }}-configmap
items:
- - key: base.conf
- path: base.conf
- mode: 0755
- - key: feature-pooling-dmaap.conf
- path: feature-pooling-dmaap.conf
+ {{- range $path, $bytes := .Files.Glob "resources/configmaps/*" }}
+ - key: {{ base $path }}
+ path: {{ base $path }}
mode: 0755
+ {{- end }}
- name: drools-secret
secret:
secretName: {{ include "common.fullname" . }}-secret
items:
- - key: feature-healthcheck.conf
- path: feature-healthcheck.conf
+ {{- range $path, $bytes := .Files.Glob "resources/secrets/*" }}
+ - key: {{ base $path }}
+ path: {{ base $path }}
mode: 0644
+ {{- end }}
imagePullSecrets:
- name: "{{ include "common.namespace" . }}-docker-registry-key"