From 87c77e5ba7135e8e726be39242ab8f96fca4da8b Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Tue, 21 Oct 2014 11:47:07 -0700 Subject: [PATCH] Start adding git volumes. --- pkg/api/types.go | 7 +++++++ 1 file changed, 7 insertions(+) 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