Start adding git volumes.

pull/6/head
Brendan Burns 2014-10-21 11:47:07 -07:00
parent dc7e3d6601
commit 87c77e5ba7
1 changed files with 7 additions and 0 deletions

View File

@ -147,6 +147,8 @@ type VolumeSource struct {
// GCEPersistentDisk represents a GCE Disk resource that is attached to a
// kubelet's host machine and then exposed to the pod.
GCEPersistentDisk *GCEPersistentDisk `json:"persistentDisk" yaml:"persistentDisk"`
// GitVolume represents a git repository at a particular revision.
GitVolume *GitVolume `json:"gitVolume" yaml:"gitVolume"`
}
// HostDir represents bare host directory volume.
@ -187,6 +189,11 @@ type GCEPersistentDisk struct {
ReadOnly bool `yaml:"readOnly,omitempty" json:"readOnly,omitempty"`
}
type GitVolume struct {
// Repository URL
Repository string
}
// Port represents a network port in a single container
type Port struct {
// Optional: If specified, this must be a DNS_LABEL. Each named port