From e97cecf9dce84642b60b47c44df1c8d39425ac79 Mon Sep 17 00:00:00 2001 From: Garrett Thornburg Date: Mon, 28 Mar 2022 10:54:14 -0600 Subject: [PATCH] Add more name refs to PodTemplate for ConfigMap and Secret --- .../builtinpluginconsts/namereference.go | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/api/konfig/builtinpluginconsts/namereference.go b/api/konfig/builtinpluginconsts/namereference.go index 724e9a996b..658b0c34b9 100644 --- a/api/konfig/builtinpluginconsts/namereference.go +++ b/api/konfig/builtinpluginconsts/namereference.go @@ -50,6 +50,16 @@ nameReference: kind: Pod - path: template/spec/volumes/configMap/name kind: PodTemplate + - path: template/spec/containers/env/valueFrom/configMapKeyRef/name + kind: PodTemplate + - path: template/spec/initContainers/env/valueFrom/configMapKeyRef/name + kind: PodTemplate + - path: template/spec/containers/envFrom/configMapRef/name + kind: PodTemplate + - path: template/spec/initContainers/envFrom/configMapRef/name + kind: PodTemplate + - path: template/spec/volumes/projected/sources/configMap/name + kind: PodTemplate - path: spec/template/spec/volumes/configMap/name kind: Deployment - path: spec/template/spec/containers/env/valueFrom/configMapKeyRef/name @@ -155,6 +165,20 @@ nameReference: - path: spec/volumes/projected/sources/secret/name version: v1 kind: Pod + - path: template/spec/volumes/secret/secretName + kind: PodTemplate + - path: template/spec/containers/env/valueFrom/secretKeyRef/name + kind: PodTemplate + - path: template/spec/initContainers/env/valueFrom/secretKeyRef/name + kind: PodTemplate + - path: template/spec/containers/envFrom/secretRef/name + kind: PodTemplate + - path: template/spec/initContainers/envFrom/secretRef/name + kind: PodTemplate + - path: template/spec/imagePullSecrets/name + kind: PodTemplate + - path: template/spec/volumes/projected/sources/secret/name + kind: PodTemplate - path: spec/template/spec/volumes/secret/secretName kind: Deployment - path: spec/template/spec/containers/env/valueFrom/secretKeyRef/name