resource

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 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 ExpectedServiceSpec

func ExpectedServiceSpec(service *egv1a1.KubernetesServiceSpec) corev1.ServiceSpec

ExpectedServiceSpec returns service spec.

func ExpectedVolumes added in v1.1.0

func ExpectedVolumes(pod *egv1a1.KubernetesPodSpec, volumes []corev1.Volume) []corev1.Volume

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.

Jump to

Keyboard shortcuts

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