resource

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareSvc

func CompareSvc(currentSvc, originalSvc *corev1.Service) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL