add pull secrets to service accounts

This commit is contained in:
deads2k
2015-05-20 13:08:49 -04:00
parent 9b1fb6dca1
commit 590bd048a5
9 changed files with 211 additions and 4 deletions

View File

@@ -1062,6 +1062,11 @@ type ServiceAccount struct {
// Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount
Secrets []ObjectReference `json:"secrets"`
// ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
// in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
// can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty" description:"list of references to secrets in the same namespace available for pulling container images"`
}
// ServiceAccountList is a list of ServiceAccount objects