Documentation ¶
Index ¶
- func Admitted(ctx context.Context, cli client.Client, name string) (bool, error)
- func EnsureFinalizer(ctx context.Context, cli client.Client, gc *gatewayv1alpha1.GatewayClass) error
- func EnsureFinalizerRemoved(ctx context.Context, cli client.Client, gc *gatewayv1alpha1.GatewayClass) error
- func Get(ctx context.Context, cli client.Client, name string) (*gatewayv1alpha1.GatewayClass, error)
- func IsController(gc *gatewayv1alpha1.GatewayClass) bool
- func IsFinalized(gc *gatewayv1alpha1.GatewayClass) bool
- func OtherGatewayClassesRefContour(ctx context.Context, cli client.Client, gc *gatewayv1alpha1.GatewayClass, ...) (bool, error)
- func ParameterRefExists(ctx context.Context, cli client.Client, name, ns string) (*gatewayv1alpha1.GatewayClass, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureFinalizer ¶
func EnsureFinalizer(ctx context.Context, cli client.Client, gc *gatewayv1alpha1.GatewayClass) error
EnsureFinalizer ensures the finalizer is added to the given gc.
func EnsureFinalizerRemoved ¶
func EnsureFinalizerRemoved(ctx context.Context, cli client.Client, gc *gatewayv1alpha1.GatewayClass) error
EnsureFinalizerRemoved ensures the finalizer is removed for the given gc.
func Get ¶
func Get(ctx context.Context, cli client.Client, name string) (*gatewayv1alpha1.GatewayClass, error)
Get returns a GatewayClass named name, if it exists.
func IsController ¶
func IsController(gc *gatewayv1alpha1.GatewayClass) bool
IsController returns true if the operator is the controller for gc.
func IsFinalized ¶
func IsFinalized(gc *gatewayv1alpha1.GatewayClass) bool
IsFinalized returns true if gc is finalized.
func OtherGatewayClassesRefContour ¶
func OtherGatewayClassesRefContour(ctx context.Context, cli client.Client, gc *gatewayv1alpha1.GatewayClass, contour *operatorv1alpha1.Contour) (bool, error)
OtherGatewayClassesRefContour returns true if GatewayClasses other than gc reference contour.
func ParameterRefExists ¶
func ParameterRefExists(ctx context.Context, cli client.Client, name, ns string) (*gatewayv1alpha1.GatewayClass, bool, error)
ParameterRefExists returns true if a GatewayClass exists with a parametersRef ns/name that matches the provided ns/name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.