Merge pull request #5807 from pmorie/secret_volume_ref

Change secret volume plugin reference to name
This commit is contained in:
Tim Hockin
2015-03-24 14:18:35 -07:00
13 changed files with 96 additions and 33 deletions

View File

@@ -274,9 +274,11 @@ type GitRepoVolumeSource struct {
}
// SecretVolumeSource adapts a Secret into a VolumeSource
//
// https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/design/secrets.md
type SecretVolumeSource struct {
// Reference to a Secret
Target ObjectReference `json:"target" description:"target is a reference to a secret"`
// Name of the secret in the pod's namespace to use
SecretName string `json:"secretName" description:"secretName is the name of a secret in the pod's namespace"`
}
// NFSVolumeSource represents an NFS mount that lasts the lifetime of a pod