mirror of https://github.com/k3s-io/k3s
Start adding git volumes.
parent
dc7e3d6601
commit
87c77e5ba7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue