Add imagePullSecrets to PodSpec

This commit is contained in:
Micro
2020-04-23 12:27:36 +01:00
parent 7345ce9192
commit 501a6bf3ea
4 changed files with 19 additions and 1 deletions

View File

@@ -50,6 +50,11 @@ spec:
{{- end }}
{{- end }}
spec:
imagePullSecrets:
{{- with .Spec.Template.PodSpec.ImagePullSecrets }}
{{- range . }}
- {{ . }}
{{ end }}
containers:
{{- with .Spec.Template.PodSpec.Containers }}
{{- range . }}

View File

@@ -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