Image pull secret fix

This commit is contained in:
Ben Toogood
2020-04-23 17:26:59 +01:00
parent 6be53536d3
commit 4c05623a3c
3 changed files with 12 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ spec:
imagePullSecrets:
{{- with .Spec.Template.PodSpec.ImagePullSecrets }}
{{- range . }}
- name: "{{.}}"
- name: "{{ .Name }}"
{{- end }}
{{- end }}
containers:

View File

@@ -93,8 +93,8 @@ type Metadata struct {
// PodSpec is a pod
type PodSpec struct {
Containers []Container `json:"containers"`
ImagePullSecrets []string `json:"imagePullSecrets"`
Containers []Container `json:"containers"`
ImagePullSecrets []ImagePullSecret `json:"imagePullSecrets"`
}
// PodList
@@ -189,3 +189,8 @@ type Namespace struct {
type NamespaceList struct {
Items []Namespace `json:"items"`
}
// ImagePullSecret
type ImagePullSecret struct {
Name string `json:"name"`
}