package
0.33.0-alpha.3
Repository: https://github.com/kubernetes/apiextensions-apiserver.git
Documentation: pkg.go.dev

# Functions

CRDHasFinalizer returns true if the finalizer is in the list.
CRDRemoveFinalizer removes the finalizer if present.
FindCRDCondition returns the condition you're looking for or nil.
GetAPIApprovalState returns the state of the API approval and reason for that state.
GetCRDStorageVersion returns the storage version for given CRD.
GetSchemaForVersion returns the validation schema for the given version or nil.
GetSubresourcesForVersion returns the subresources for given version or nil.
HasPerVersionColumns returns true if a CRD uses per-version columns.
HasPerVersionSchema returns true if a CRD uses per-version schema.
HasPerVersionSubresources returns true if a CRD uses per-version subresources.
HasServedCRDVersion returns true if the given version is in the list of CRD's versions and the Served flag is set.
HasVersionServed returns true if given CRD has given version served.
IsCRDConditionEquivalent returns true if the lhs and rhs are equivalent except for times.
IsCRDConditionFalse indicates if the condition is present and false.
IsCRDConditionPresentAndEqual indicates if the condition is present and equal to the given status.
IsCRDConditionTrue indicates if the condition is present and strictly true.
IsProtectedCommunityGroup returns whether or not a group specified for a CRD is protected for the community and needs to have the v1beta1.KubeAPIApprovalAnnotation set.
IsStoredVersion returns whether the given version is the storage version of the CRD.
RemoveCRDCondition removes the status condition.
SetCRDCondition sets the status condition.

# Constants

APIApprovalBypassed if the annotation starts with "unapproved" indicating that for whatever reason the API isn't approved, but we should allow its creation.
APIApprovalInvalid means the annotation doesn't have an expected value.
APIApprovalMissing means the annotation is empty.
APIApproved if the annotation has a URL (this means the API is approved).

# Type aliases

APIApprovalState covers the various options for API approval annotation states.