Versions in this module Expand all Collapse all v1 v1.0.1 Jan 30, 2023 v1.0.0 Jan 30, 2023 Changes in this version + func IsMerge(opts []WithOption) bool + func IsOverwrite(opts []WithOption) bool + func IsOverwriteIfDefaultValue(opts []WithOption) bool + func MergeK8s(dst any, src, new any) (err error) + func MergeSliceOrDie(dst *[]any, key string, src ...[]any) + type ContainerBuilder interface + Container func() *corev1.Container + WithContainer func(container *corev1.Container, opts ...WithOption) ContainerBuilder + WithEnv func(envs []corev1.EnvVar, opts ...WithOption) ContainerBuilder + WithEnvFrom func(envFroms []corev1.EnvFromSource, opts ...WithOption) ContainerBuilder + WithImage func(image string, opts ...WithOption) ContainerBuilder + WithImagePullPolicy func(pullPolicy corev1.PullPolicy, opts ...WithOption) ContainerBuilder + WithLivenessProbe func(probe *corev1.Probe, opts ...WithOption) ContainerBuilder + WithPort func(ports []corev1.ContainerPort, opts ...WithOption) ContainerBuilder + WithReadinessProbe func(probe *corev1.Probe, opts ...WithOption) ContainerBuilder + WithResource func(ressources *corev1.ResourceRequirements, opts ...WithOption) ContainerBuilder + WithSecurityContext func(sc *corev1.SecurityContext, opts ...WithOption) ContainerBuilder + WithStartupProbe func(probe *corev1.Probe, opts ...WithOption) ContainerBuilder + WithVolumeMount func(volumeMounts []corev1.VolumeMount, opts ...WithOption) ContainerBuilder + func NewContainerBuilder() ContainerBuilder + type ContainerBuilderDefault struct + func (h *ContainerBuilderDefault) Container() *corev1.Container + func (h *ContainerBuilderDefault) WithContainer(container *corev1.Container, opts ...WithOption) ContainerBuilder + func (h *ContainerBuilderDefault) WithEnv(envs []corev1.EnvVar, opts ...WithOption) ContainerBuilder + func (h *ContainerBuilderDefault) WithEnvFrom(envFroms []corev1.EnvFromSource, opts ...WithOption) ContainerBuilder + func (h *ContainerBuilderDefault) WithImage(image string, opts ...WithOption) ContainerBuilder + func (h *ContainerBuilderDefault) WithImagePullPolicy(pullPolicy corev1.PullPolicy, opts ...WithOption) ContainerBuilder + func (h *ContainerBuilderDefault) WithLivenessProbe(probe *corev1.Probe, opts ...WithOption) ContainerBuilder + func (h *ContainerBuilderDefault) WithPort(ports []corev1.ContainerPort, opts ...WithOption) ContainerBuilder + func (h *ContainerBuilderDefault) WithReadinessProbe(probe *corev1.Probe, opts ...WithOption) ContainerBuilder + func (h *ContainerBuilderDefault) WithResource(resources *corev1.ResourceRequirements, opts ...WithOption) ContainerBuilder + func (h *ContainerBuilderDefault) WithSecurityContext(sc *corev1.SecurityContext, opts ...WithOption) ContainerBuilder + func (h *ContainerBuilderDefault) WithStartupProbe(probe *corev1.Probe, opts ...WithOption) ContainerBuilder + func (h *ContainerBuilderDefault) WithVolumeMount(volumeMounts []corev1.VolumeMount, opts ...WithOption) ContainerBuilder + type IngressBuilder interface + Build func() (i *networkingv1.Ingress, err error) + WithAnnotations func(annotations map[string]string, opts ...WithOption) IngressBuilder + WithIngressSpec func(is *networkingv1.IngressSpec, opts ...WithOption) IngressBuilder + WithLabels func(labels map[string]string, opts ...WithOption) IngressBuilder + WithName func(name string, opts ...WithOption) IngressBuilder + WithNamespace func(namespace string, opts ...WithOption) IngressBuilder + func NewIngressBuilder() IngressBuilder + type IngressBuilderDefault struct + func (h *IngressBuilderDefault) Build() (i *networkingv1.Ingress, err error) + func (h *IngressBuilderDefault) WithAnnotations(annotations map[string]string, opts ...WithOption) IngressBuilder + func (h *IngressBuilderDefault) WithIngressSpec(is *networkingv1.IngressSpec, opts ...WithOption) IngressBuilder + func (h *IngressBuilderDefault) WithLabels(labels map[string]string, opts ...WithOption) IngressBuilder + func (h *IngressBuilderDefault) WithName(name string, opts ...WithOption) IngressBuilder + func (h *IngressBuilderDefault) WithNamespace(namespace string, opts ...WithOption) IngressBuilder + type Operation struct + Args []any + Name string + type PodTemplateBuilder interface + PodTemplate func() *corev1.PodTemplateSpec + WithAffinity func(affinity corev1.Affinity, opts ...WithOption) PodTemplateBuilder + WithAnnotations func(annotations map[string]string, opts ...WithOption) PodTemplateBuilder + WithContainers func(containers []corev1.Container, opts ...WithOption) PodTemplateBuilder + WithImagePullSecrets func(ips []corev1.LocalObjectReference, opts ...WithOption) PodTemplateBuilder + WithInitContainers func(containers []corev1.Container, opts ...WithOption) PodTemplateBuilder + WithLabels func(labels map[string]string, opts ...WithOption) PodTemplateBuilder + WithNodeSelector func(nodeSelector map[string]string, opts ...WithOption) PodTemplateBuilder + WithPodTemplateSpec func(pts *corev1.PodTemplateSpec, opts ...WithOption) PodTemplateBuilder + WithSecurityContext func(sc *corev1.PodSecurityContext, opts ...WithOption) PodTemplateBuilder + WithTerminationGracePeriodSeconds func(nb int64, opts ...WithOption) PodTemplateBuilder + WithTolerations func(tolerations []corev1.Toleration, opts ...WithOption) PodTemplateBuilder + WithVolumes func(volumes []corev1.Volume, opts ...WithOption) PodTemplateBuilder + func NewPodTemplateBuilder() PodTemplateBuilder + type PodTemplateBuilderDefault struct + func (h *PodTemplateBuilderDefault) PodTemplate() *corev1.PodTemplateSpec + func (h *PodTemplateBuilderDefault) WithAffinity(affinity corev1.Affinity, opts ...WithOption) PodTemplateBuilder + func (h *PodTemplateBuilderDefault) WithAnnotations(annotations map[string]string, opts ...WithOption) PodTemplateBuilder + func (h *PodTemplateBuilderDefault) WithContainers(containers []corev1.Container, opts ...WithOption) PodTemplateBuilder + func (h *PodTemplateBuilderDefault) WithImagePullSecrets(ips []corev1.LocalObjectReference, opts ...WithOption) PodTemplateBuilder + func (h *PodTemplateBuilderDefault) WithInitContainers(containers []corev1.Container, opts ...WithOption) PodTemplateBuilder + func (h *PodTemplateBuilderDefault) WithLabels(labels map[string]string, opts ...WithOption) PodTemplateBuilder + func (h *PodTemplateBuilderDefault) WithNodeSelector(nodeSelector map[string]string, opts ...WithOption) PodTemplateBuilder + func (h *PodTemplateBuilderDefault) WithPodTemplateSpec(pts *corev1.PodTemplateSpec, opts ...WithOption) PodTemplateBuilder + func (h *PodTemplateBuilderDefault) WithSecurityContext(sc *corev1.PodSecurityContext, opts ...WithOption) PodTemplateBuilder + func (h *PodTemplateBuilderDefault) WithTerminationGracePeriodSeconds(nb int64, opts ...WithOption) PodTemplateBuilder + func (h *PodTemplateBuilderDefault) WithTolerations(tolerations []corev1.Toleration, opts ...WithOption) PodTemplateBuilder + func (h *PodTemplateBuilderDefault) WithVolumes(volumes []corev1.Volume, opts ...WithOption) PodTemplateBuilder + type WithOption string + const Merge + const Overwrite + const OverwriteIfDefaultValue