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 ExpectedDeploymentVolumes(pod *egv1a1.KubernetesPodSpec, volumes []corev1.Volume) []corev1.Volume
- func ExpectedServiceSpec(service *egv1a1.KubernetesServiceSpec) corev1.ServiceSpec
- 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 ExpectedDeploymentVolumes ¶
func ExpectedDeploymentVolumes(pod *egv1a1.KubernetesPodSpec, volumes []corev1.Volume) []corev1.Volume
ExpectedDeploymentVolumes returns expected deployment volumes.
func ExpectedServiceSpec ¶
func ExpectedServiceSpec(service *egv1a1.KubernetesServiceSpec) corev1.ServiceSpec
ExpectedServiceSpec returns service spec.
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.