mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
add imagePullSecrets namerefs
This commit is contained in:
@@ -369,6 +369,14 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
|
|||||||
Path: []string{"spec", "initContainers", "envFrom", "secretRef", "name"},
|
Path: []string{"spec", "initContainers", "envFrom", "secretRef", "name"},
|
||||||
CreateIfNotPresent: false,
|
CreateIfNotPresent: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
|
Version: "v1",
|
||||||
|
Kind: "Pod",
|
||||||
|
},
|
||||||
|
Path: []string{"spec", "imagePullSecrets", "name"},
|
||||||
|
CreateIfNotPresent: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
GroupVersionKind: &schema.GroupVersionKind{
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
Kind: "Deployment",
|
Kind: "Deployment",
|
||||||
@@ -404,6 +412,13 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
|
|||||||
Path: []string{"spec", "template", "spec", "initContainers", "envFrom", "secretRef", "name"},
|
Path: []string{"spec", "template", "spec", "initContainers", "envFrom", "secretRef", "name"},
|
||||||
CreateIfNotPresent: false,
|
CreateIfNotPresent: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
|
Kind: "Deployment",
|
||||||
|
},
|
||||||
|
Path: []string{"spec", "template", "spec", "imagePullSecrets", "name"},
|
||||||
|
CreateIfNotPresent: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
GroupVersionKind: &schema.GroupVersionKind{
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
Kind: "ReplicaSet",
|
Kind: "ReplicaSet",
|
||||||
@@ -439,6 +454,13 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
|
|||||||
Path: []string{"spec", "template", "spec", "initContainers", "envFrom", "secretRef", "name"},
|
Path: []string{"spec", "template", "spec", "initContainers", "envFrom", "secretRef", "name"},
|
||||||
CreateIfNotPresent: false,
|
CreateIfNotPresent: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
|
Kind: "ReplicaSet",
|
||||||
|
},
|
||||||
|
Path: []string{"spec", "template", "spec", "imagePullSecrets", "name"},
|
||||||
|
CreateIfNotPresent: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
GroupVersionKind: &schema.GroupVersionKind{
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
Kind: "DaemonSet",
|
Kind: "DaemonSet",
|
||||||
@@ -474,6 +496,13 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
|
|||||||
Path: []string{"spec", "template", "spec", "initContainers", "envFrom", "secretRef", "name"},
|
Path: []string{"spec", "template", "spec", "initContainers", "envFrom", "secretRef", "name"},
|
||||||
CreateIfNotPresent: false,
|
CreateIfNotPresent: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
|
Kind: "DaemonSet",
|
||||||
|
},
|
||||||
|
Path: []string{"spec", "template", "spec", "imagePullSecrets", "name"},
|
||||||
|
CreateIfNotPresent: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
GroupVersionKind: &schema.GroupVersionKind{
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
Kind: "StatefulSet",
|
Kind: "StatefulSet",
|
||||||
@@ -509,6 +538,13 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
|
|||||||
Path: []string{"spec", "template", "spec", "initContainers", "envFrom", "secretRef", "name"},
|
Path: []string{"spec", "template", "spec", "initContainers", "envFrom", "secretRef", "name"},
|
||||||
CreateIfNotPresent: false,
|
CreateIfNotPresent: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
|
Kind: "StatefulSet",
|
||||||
|
},
|
||||||
|
Path: []string{"spec", "template", "spec", "imagePullSecrets", "name"},
|
||||||
|
CreateIfNotPresent: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
GroupVersionKind: &schema.GroupVersionKind{
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
Kind: "Job",
|
Kind: "Job",
|
||||||
@@ -544,6 +580,13 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
|
|||||||
Path: []string{"spec", "template", "spec", "initContainers", "envFrom", "secretRef", "name"},
|
Path: []string{"spec", "template", "spec", "initContainers", "envFrom", "secretRef", "name"},
|
||||||
CreateIfNotPresent: false,
|
CreateIfNotPresent: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
|
Kind: "Job",
|
||||||
|
},
|
||||||
|
Path: []string{"spec", "template", "spec", "imagePullSecrets", "name"},
|
||||||
|
CreateIfNotPresent: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
GroupVersionKind: &schema.GroupVersionKind{
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
Kind: "CronJob",
|
Kind: "CronJob",
|
||||||
@@ -579,6 +622,13 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
|
|||||||
Path: []string{"spec", "jobTemplate", "spec", "template", "spec", "initContainers", "envFrom", "secretRef", "name"},
|
Path: []string{"spec", "jobTemplate", "spec", "template", "spec", "initContainers", "envFrom", "secretRef", "name"},
|
||||||
CreateIfNotPresent: false,
|
CreateIfNotPresent: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
|
Kind: "CronJob",
|
||||||
|
},
|
||||||
|
Path: []string{"spec", "jobTemplate", "spec", "template", "spec", "imagePullSecrets", "name"},
|
||||||
|
CreateIfNotPresent: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
GroupVersionKind: &schema.GroupVersionKind{
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
Kind: "Ingress",
|
Kind: "Ingress",
|
||||||
@@ -586,6 +636,13 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
|
|||||||
Path: []string{"spec", "tls", "secretName"},
|
Path: []string{"spec", "tls", "secretName"},
|
||||||
CreateIfNotPresent: false,
|
CreateIfNotPresent: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
|
Kind: "ServiceAccount",
|
||||||
|
},
|
||||||
|
Path: []string{"imagePullSecrets", "name"},
|
||||||
|
CreateIfNotPresent: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user