Documentation ¶
Index ¶
- func CompareSvc(currentSvc, originalSvc *corev1.Service) bool
- func ExpectedContainerVolumeMounts(container *egv1a1.KubernetesContainerSpec, volumeMounts []corev1.VolumeMount) []corev1.VolumeMount
- func ExpectedDeploymentVolumes(pod *egv1a1.KubernetesPodSpec, volumes []corev1.Volume) []corev1.Volume
- func ExpectedProxyContainerEnv(container *egv1a1.KubernetesContainerSpec, env []corev1.EnvVar) []corev1.EnvVar
- 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 compare entire Svc.Spec but ignored the ports[*].nodePort, ClusterIP and ClusterIPs in case user have modified for some scene.
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 ExpectedProxyContainerEnv ¶
func ExpectedProxyContainerEnv(container *egv1a1.KubernetesContainerSpec, env []corev1.EnvVar) []corev1.EnvVar
ExpectedProxyContainerEnv returns expected container envs.
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.