mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 06:15:45 +00:00
Start adding git volumes.
This commit is contained in:
parent
dc7e3d6601
commit
87c77e5ba7
@ -147,6 +147,8 @@ type VolumeSource struct {
|
|||||||
// GCEPersistentDisk represents a GCE Disk resource that is attached to a
|
// GCEPersistentDisk represents a GCE Disk resource that is attached to a
|
||||||
// kubelet's host machine and then exposed to the pod.
|
// kubelet's host machine and then exposed to the pod.
|
||||||
GCEPersistentDisk *GCEPersistentDisk `json:"persistentDisk" yaml:"persistentDisk"`
|
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.
|
// HostDir represents bare host directory volume.
|
||||||
@ -187,6 +189,11 @@ type GCEPersistentDisk struct {
|
|||||||
ReadOnly bool `yaml:"readOnly,omitempty" json:"readOnly,omitempty"`
|
ReadOnly bool `yaml:"readOnly,omitempty" json:"readOnly,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type GitVolume struct {
|
||||||
|
// Repository URL
|
||||||
|
Repository string
|
||||||
|
}
|
||||||
|
|
||||||
// Port represents a network port in a single container
|
// Port represents a network port in a single container
|
||||||
type Port struct {
|
type Port struct {
|
||||||
// Optional: If specified, this must be a DNS_LABEL. Each named port
|
// Optional: If specified, this must be a DNS_LABEL. Each named port
|
||||||
|
Loading…
Reference in New Issue
Block a user