Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesVolume ¶
type KubernetesVolume struct { HostPath *corev1.HostPathVolumeSource `json:"hostPath,omitempty"` EmptyDir *corev1.EmptyDirVolumeSource `json:"emptyDir,omitempty"` // PersistentVolumeClaim defines the Spec and the Source at the same time. // The PVC will be created with the configured spec and the name defined in the source. PersistentVolumeClaim *PersistentVolumeClaim `json:"pvc,omitempty"` }
func (*KubernetesVolume) DeepCopy ¶
func (in *KubernetesVolume) DeepCopy() *KubernetesVolume
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesVolume.
func (*KubernetesVolume) DeepCopyInto ¶
func (in *KubernetesVolume) DeepCopyInto(out *KubernetesVolume)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubernetesVolume) GetVolume ¶
func (v *KubernetesVolume) GetVolume(name string) corev1.Volume
GetVolume returns a default emptydir volume if none configured
`name` will be the name of the volume and the lowest level directory in case a hostPath mount is used
func (*KubernetesVolume) WithDefaultHostPath ¶
func (v *KubernetesVolume) WithDefaultHostPath(path string)
`path` is the path in case the hostPath volume type is used and no path has been defined explicitly
type PersistentVolumeClaim ¶
type PersistentVolumeClaim struct { PersistentVolumeClaimSpec corev1.PersistentVolumeClaimSpec `json:"spec,omitempty"` PersistentVolumeSource corev1.PersistentVolumeClaimVolumeSource `json:"source,omitempty"` }
func (*PersistentVolumeClaim) DeepCopy ¶
func (in *PersistentVolumeClaim) DeepCopy() *PersistentVolumeClaim
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaim.
func (*PersistentVolumeClaim) DeepCopyInto ¶
func (in *PersistentVolumeClaim) DeepCopyInto(out *PersistentVolumeClaim)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.