helpers

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSystemAccount

func IsSystemAccount(account *v1alpha1.Account, operator *v1alpha1.Operator) bool

func MatchNamespaceSelector added in v0.4.0

func MatchNamespaceSelector(parent client.Object, childNamespace *v1.Namespace, selector *metav1.LabelSelector) (bool, error)

func NextSigningKeys

func NextSigningKeys(
	ownerUID types.UID,
	current []v1alpha1.SigningKeyEmbeddedStatus,
	next *v1alpha1.SigningKeyList,
) []v1alpha1.SigningKeyEmbeddedStatus

NextSigningKeys compares the current SigningKeys assigned to a resource to a list of SigningKeys which currently exist on the cluster and returns the next list of SigningKeys to be assigned to the resource.

This function attempts to preserve the order of SigningKeys on the resource, so that no-op updates do not trigger an update on the status. New SigningKeys are appended to the end of the list, and SigningKeys which are no longer active are removed from the list. Any changes to existing SigningKeys are kept at the same index (however removals may cause indices to shift).

Types

This section is empty.

Jump to

Keyboard shortcuts

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