package
0.7.0
Repository: https://github.com/kong/gateway-operator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

EnsureFinalizersInMetadata ensures the expected finalizers exist in ObjectMeta.
EnsureObjectMetaIsUpdated ensures that the existing object metadata has all the needed fields set.
GenerateOwnerReferenceForObject provides a metav1.OwnerReference for the provided object so that it can be applied to other objects to indicate ownership by the given object.
GetAPIVersionForObject provides the string of the full group and version for the provided object, e.g.
GetCondition returns the condition with the given type, if it exists.
GetContainerVolumeMountByPath gets the volume mounted to given path in container.
GetPodContainerByName takes a PodSpec reference and a string and returns a reference to the container in the PodSpec with that name, if any exists.
GetPodVolumeByName gets the pointer of volume with given name.
HasSameVolumeSource returns true if the two volume sources are the same and we do not need to update the volume in deployments.
InitProgrammed initializes the Programmed status to False.
InitReady initializes the Ready status to False if Ready condition is not yet set on the resource.
IsEnvVarPresent indicates whether or not a given EnvVar is present in a list.
IsOwnedBy is a helper function to check if the provided object is owned by the provided ref UID.
IsProgrammed evaluates whether a resource is in Programmed state.
IsReady evaluates whether a resource is in Ready state, meaning that all its conditions are in the True state.
IsValidCondition returns a true value whether the condition is ConditionTrue, false otherwise.
ListClusterRoleBindingsForOwner is a helper function to map a list of ClusterRoleBindings by list options and reduce by OwnerReference UID to efficiently list only the objects owned by the provided UID.
ListClusterRolesForOwner is a helper function to map a list of ClusterRoles by list options and reduce by OwnerReference UID to efficiently list only the objects owned by the provided UID.
ListDeploymentsForOwner is a helper function to map a list of Deployments by list options and reduce by OwnerReference UID and namespace to efficiently list only the objects owned by the provided UID.
ListSecretsForOwner is a helper function to map a list of Secrets by list options and reduce by OwnerReference UID to efficiently list only the objects owned by the provided UID.
ListServiceAccountsForOwner is a helper function to map a list of ServiceAccounts by list options and reduce by OwnerReference UID and namespace to efficiently list only the objects owned by the provided UID.
ListServicesForOwner is a helper function to map a list of Services by list options and reduce by OwnerReference UID and namespace to efficiently list only the objects owned by the provided UID.
NeedsUpdate retrieves the persisted state and compares all the conditions to decide whether the status must be updated or not.
NewCondition convenience method for creating conditions.
NewConditionWithGeneration convenience method for creating conditions with ObservedGeneration set.
RemoveFinalizerInMetadata removes the finalizer from the finalizers in ObjectMeta.
SetCondition sets a new condition to the provided resource.
SetOwnerForObject ensures that the provided first object is marked as owned by the provided second object in the object metadata.
SetProgrammed evaluates all the existing conditions and sets the Programmed status accordingly.
SetReady evaluates all the existing conditions and sets the Ready status accordingly.

# Constants

DependenciesNotReadyMessage indicates the other conditions are not yet ready.
DependenciesNotReadyReason is a generic reason describing that the other Conditions are not true.
PendingReason is a Reason for Programmed condition.
ProgrammedType condition indicates whether a Gateway has generated some configuration that is assumed to be ready soon in the underlying data plane.
ReadyType indicates if the resource has all the dependent conditions Ready.
ResourceCreatedMessage indicates a missing resource was provisioned.
ResourceCreatedOrUpdatedReason generic message for missing or outdated resources.
ResourceReadyReason indicates the resource is ready.
ResourceUpdatedMessage indicates a resource was updated.
UnableToProvisionReason generic message for unexpected errors.
WaitingToBecomeReadyMessage indicates the target resource is not ready.
WaitingToBecomeReadyReason generic message for dependent resources waiting to be ready.

# Interfaces

ConditionsAndGenerationAware represents a CRD type that has been enabled with metav1.Conditions, it can then benefit of a series of utility methods.
No description provided by the author
No description provided by the author

# Type aliases

CoditionReason literal to enumerate a specific condition reason.
ConditionType literal that defines the different types of condition.
SortableEnvVars is a wrapper around []corev1.EnvVars that enables sorting them lexographically by name.