diff --git a/charts/coredns/templates/deployment.yaml b/charts/coredns/templates/deployment.yaml index 3c623796..b831aacc 100644 --- a/charts/coredns/templates/deployment.yaml +++ b/charts/coredns/templates/deployment.yaml @@ -13,6 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */}} + +{{- $envAll := . }} --- apiVersion: extensions/v1beta1 kind: Deployment @@ -33,6 +35,7 @@ spec: template: metadata: labels: +{{ tuple $envAll "kubernetes" "coredns" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} {{ .Values.service.name }}: enabled annotations: configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} @@ -59,7 +62,7 @@ spec: - name: coredns image: {{ .Values.images.tags.coredns | quote }} imagePullPolicy: {{ .Values.images.pull_policy | quote }} -{{ tuple . .Values.pod.resources.coredns | include "helm-toolkit.snippets.kubernetes_resources" | indent 8 }} +{{ tuple $envAll $envAll.Values.pod.resources.coredns | include "helm-toolkit.snippets.kubernetes_resources" | indent 8 }} args: [ "-conf", "/etc/coredns/Corefile" ] volumeMounts: - name: config-volume