Documentation ¶
Index ¶
- func CompareSvc(currentSvc, originalSvc *corev1.Service) bool
- func ExpectedContainerEnv(container *egv1a1.KubernetesContainerSpec, env []corev1.EnvVar) []corev1.EnvVar
- func ExpectedContainerVolumeMounts(container *egv1a1.KubernetesContainerSpec, volumeMounts []corev1.VolumeMount) []corev1.VolumeMount
- func ExpectedServiceSpec(service *egv1a1.KubernetesServiceSpec) corev1.ServiceSpec
- func ExpectedVolumes(pod *egv1a1.KubernetesPodSpec, volumes []corev1.Volume) []corev1.Volume
- func GetSelector(labels map[string]string) *metav1.LabelSelector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareSvc ¶
CompareSvc compares the Service resource and ignores specific fields that may have been modified by other actors.
func ExpectedContainerEnv ¶ added in v1.0.0
func ExpectedContainerEnv(container *egv1a1.KubernetesContainerSpec, env []corev1.EnvVar) []corev1.EnvVar
ExpectedContainerEnv returns expected container envs.
func ExpectedContainerVolumeMounts ¶
func ExpectedContainerVolumeMounts(container *egv1a1.KubernetesContainerSpec, volumeMounts []corev1.VolumeMount) []corev1.VolumeMount
ExpectedContainerVolumeMounts returns expected container volume mounts.
func ExpectedServiceSpec ¶
func ExpectedServiceSpec(service *egv1a1.KubernetesServiceSpec) corev1.ServiceSpec
ExpectedServiceSpec returns service spec.
func ExpectedVolumes ¶ added in v1.1.0
ExpectedVolumes returns expected deployment volumes.
func GetSelector ¶
func GetSelector(labels map[string]string) *metav1.LabelSelector
GetSelector returns a label selector used to select resources based on the provided labels.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.