equality

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterIPServiceChanged

func ClusterIPServiceChanged(current, expected *corev1.Service) (*corev1.Service, bool)

ClusterIPServiceChanged checks if the spec of current and expected match and if not, returns true and the expected Service resource. The cluster IP is not compared as it's assumed to be dynamically assigned.

func ClusterRoleBindingConfigChanged

func ClusterRoleBindingConfigChanged(current, expected *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, bool)

ClusterRoleBindingConfigChanged checks if the current and expected ClusterRoleBinding match and if not, returns true and the expected ClusterRoleBinding.

func ClusterRoleConfigChanged

func ClusterRoleConfigChanged(current, expected *rbacv1.ClusterRole) (*rbacv1.ClusterRole, bool)

ClusterRoleConfigChanged checks if the current and expected ClusterRole match and if not, returns true and the expected ClusterRole.

func ContourStatusChanged

func ContourStatusChanged(current, expected operatorv1alpha1.ContourStatus) bool

ContourStatusChanged checks if current and expected match and if not, returns true.

func DaemonSetSelectorsDiffer

func DaemonSetSelectorsDiffer(current, expected *appsv1.DaemonSet) bool

DaemonSetSelectorsDiffer checks if the current and expected DaemonSet selectors differ.

func DaemonsetConfigChanged

func DaemonsetConfigChanged(current, expected *appsv1.DaemonSet) (*appsv1.DaemonSet, bool)

DaemonsetConfigChanged checks if current and expected DaemonSet match, and if not, returns the updated DaemonSet resource.

func DeploymentConfigChanged

func DeploymentConfigChanged(current, expected *appsv1.Deployment) (*appsv1.Deployment, bool)

DeploymentConfigChanged checks if the current and expected Deployment match and if not, returns true and the expected Deployment.

func DeploymentSelectorsDiffer

func DeploymentSelectorsDiffer(current, expected *appsv1.Deployment) bool

DeploymentSelectorsDiffer checks if the current and expected Deployment selectors differ.

func JobConfigChanged

func JobConfigChanged(current, expected *batchv1.Job) (*batchv1.Job, bool)

JobConfigChanged checks if the current and expected Job match and if not, returns true and the expected job.

func LoadBalancerServiceChanged

func LoadBalancerServiceChanged(current, expected *corev1.Service) (*corev1.Service, bool)

LoadBalancerServiceChanged checks if current and expected match and if not, returns true and the expected Service resource. The healthCheckNodePort and a port's nodePort are not compared since they are dynamically assigned.

func NamespaceConfigChanged

func NamespaceConfigChanged(current, expected *corev1.Namespace) (*corev1.Namespace, bool)

NamespaceConfigChanged checks if the current and expected Namespace match and if not, returns true and the expected Namespace.

func NodePortServiceChanged

func NodePortServiceChanged(current, expected *corev1.Service) (*corev1.Service, bool)

NodePortServiceChanged checks if current and expected match and if not, returns true and the expected Service resource. The healthCheckNodePort is not compared since it's dynamically assigned.

func RoleBindingConfigChanged

func RoleBindingConfigChanged(current, expected *rbacv1.RoleBinding) (*rbacv1.RoleBinding, bool)

RoleBindingConfigChanged checks if the current and expected RoleBinding match and if not, returns true and the expected RoleBinding.

func RoleConfigChanged

func RoleConfigChanged(current, expected *rbacv1.Role) (*rbacv1.Role, bool)

RoleConfigChanged checks if the current and expected Role match and if not, returns true and the expected Role.

func ServiceAccountConfigChanged

func ServiceAccountConfigChanged(current, expected *corev1.ServiceAccount) (*corev1.ServiceAccount, bool)

ServiceAccountConfigChanged checks if the current and expected ServiceAccount match and if not, returns true and the expected ServiceAccount.

Types

This section is empty.

Jump to

Keyboard shortcuts

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