Add imagePullSecrets to PodSpec
This commit is contained in:
@@ -50,6 +50,11 @@ spec:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
{{- with .Spec.Template.PodSpec.ImagePullSecrets }}
|
||||
{{- range . }}
|
||||
- {{ . }}
|
||||
{{ end }}
|
||||
containers:
|
||||
{{- with .Spec.Template.PodSpec.Containers }}
|
||||
{{- range . }}
|
||||
|
@@ -93,7 +93,8 @@ type Metadata struct {
|
||||
|
||||
// PodSpec is a pod
|
||||
type PodSpec struct {
|
||||
Containers []Container `json:"containers"`
|
||||
Containers []Container `json:"containers"`
|
||||
ImagePullSecrets []string `json:"imagePullSecrets"`
|
||||
}
|
||||
|
||||
// PodList
|
||||
|
Reference in New Issue
Block a user