equality

package
v1.30.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterIPServiceChanged

func ClusterIPServiceChanged(current, expected *core_v1.Service) (*core_v1.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 *rbac_v1.ClusterRoleBinding) (*rbac_v1.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 *rbac_v1.ClusterRole) (*rbac_v1.ClusterRole, bool)

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

func DaemonSetSelectorsDiffer

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

DaemonSetSelectorsDiffer checks if the current and expected DaemonSet selectors differ.

func DaemonsetConfigChanged

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

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

func DeploymentConfigChanged

func DeploymentConfigChanged(current, expected *apps_v1.Deployment) (*apps_v1.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 *apps_v1.Deployment) bool

DeploymentSelectorsDiffer checks if the current and expected Deployment selectors differ.

func LoadBalancerServiceChanged

func LoadBalancerServiceChanged(current, expected *core_v1.Service) (*core_v1.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 NodePortServiceChanged

func NodePortServiceChanged(current, expected *core_v1.Service) (*core_v1.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 *rbac_v1.RoleBinding) (*rbac_v1.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 *rbac_v1.Role) (*rbac_v1.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 *core_v1.ServiceAccount) (*core_v1.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