Documentation ¶
Index ¶
- func ConfigMap(name, namespace string, opt ...ConfigMapOption) *corev1.ConfigMap
- func Container(opt ...ContainerOption) *corev1.Container
- func PersistentVolumeClaim(name, namespace string, opt ...PersistentVolumeClaimOption) *corev1.PersistentVolumeClaim
- func PodSpec(opt ...PodSpecOption) *corev1.PodSpec
- func Secret(name, namespace string, opt ...SecretOption) *corev1.Secret
- func Service(name, namespace string, opt ...ServiceOption) *corev1.Service
- func Volume(name string, opt ...VolumeOption) *corev1.Volume
- type ConfigMapOption
- type ContainerOption
- func WithContainerArgs(args []string) ContainerOption
- func WithContainerCommand(command []string) ContainerOption
- func WithContainerEnv(env corev1.EnvVar) ContainerOption
- func WithContainerEnvFrom(envSource corev1.EnvFromSource) ContainerOption
- func WithContainerEnvFromValue(name string, value string) ContainerOption
- func WithContainerImage(image string) ContainerOption
- func WithContainerName(name string) ContainerOption
- func WithContainerPort(port int32) ContainerOption
- func WithContainerVolumeMounts(name string, readonly bool, mountPath string, subPath string) ContainerOption
- type PersistentVolumeClaimOption
- type PodSpecOption
- type SecretOption
- type ServiceOption
- func WithServiceLabels(m map[string]string) ServiceOption
- func WithServiceOwnerReference(ownerReference metav1.OwnerReference) ServiceOption
- func WithServicePort(name string, protocol corev1.Protocol, port int32, targetPort int32) ServiceOption
- func WithServiceSelector(m map[string]string) ServiceOption
- type VolumeOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Container ¶
func Container(opt ...ContainerOption) *corev1.Container
func PersistentVolumeClaim ¶
func PersistentVolumeClaim(name, namespace string, opt ...PersistentVolumeClaimOption) *corev1.PersistentVolumeClaim
func PodSpec ¶
func PodSpec(opt ...PodSpecOption) *corev1.PodSpec
Types ¶
type ConfigMapOption ¶
func WithConfigMapData ¶
func WithConfigMapData(name string, value string) ConfigMapOption
type ContainerOption ¶
func WithContainerArgs ¶
func WithContainerArgs(args []string) ContainerOption
func WithContainerCommand ¶
func WithContainerCommand(command []string) ContainerOption
func WithContainerEnv ¶
func WithContainerEnv(env corev1.EnvVar) ContainerOption
func WithContainerEnvFrom ¶
func WithContainerEnvFrom(envSource corev1.EnvFromSource) ContainerOption
func WithContainerEnvFromValue ¶
func WithContainerEnvFromValue(name string, value string) ContainerOption
func WithContainerImage ¶
func WithContainerImage(image string) ContainerOption
func WithContainerName ¶
func WithContainerName(name string) ContainerOption
func WithContainerPort ¶
func WithContainerPort(port int32) ContainerOption
func WithContainerVolumeMounts ¶
func WithContainerVolumeMounts(name string, readonly bool, mountPath string, subPath string) ContainerOption
type PersistentVolumeClaimOption ¶
type PersistentVolumeClaimOption func(*corev1.PersistentVolumeClaim)
type PodSpecOption ¶
func WithPodSpecContainer ¶
func WithPodSpecContainer(container *corev1.Container) PodSpecOption
func WithPodSpecVolume ¶
func WithPodSpecVolume(volume *corev1.Volume) PodSpecOption
type SecretOption ¶
func WithSecretData ¶
func WithSecretData(name string, data []byte) SecretOption
type ServiceOption ¶
func WithServiceLabels ¶
func WithServiceLabels(m map[string]string) ServiceOption
func WithServiceOwnerReference ¶
func WithServiceOwnerReference(ownerReference metav1.OwnerReference) ServiceOption
func WithServicePort ¶
func WithServiceSelector ¶
func WithServiceSelector(m map[string]string) ServiceOption
type VolumeOption ¶
func WithVolumeSourceConfigMap ¶
func WithVolumeSourceConfigMap(name string) VolumeOption
func WithVolumeSourcePersistentVolumeClaim ¶
func WithVolumeSourcePersistentVolumeClaim(name string) VolumeOption
func WithVolumeSourceSecret ¶
func WithVolumeSourceSecret(name string) VolumeOption
Click to show internal directories.
Click to hide internal directories.