diff --git a/pkg/api/types.go b/pkg/api/types.go index fe152b7a4c9..f7e0f63cd30 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -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