Documentation ¶
Index ¶
- func CurrentContour(ctx context.Context, cli client.Client, ns, name string) (*operatorv1alpha1.Contour, error)
- func EnsureFinalizer(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) error
- func EnsureFinalizerRemoved(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) error
- func GatewayClassRefsExist(ctx context.Context, cli client.Client, name string) ([]operatorv1alpha1.Contour, error)
- func New(cfg Config) *operatorv1alpha1.Contour
- func OtherContoursExist(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) (bool, *operatorv1alpha1.ContourList, error)
- func OtherContoursExistInSpecNs(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) (bool, error)
- func OwnerLabels(contour *operatorv1alpha1.Contour) map[string]string
- func OwningSelector(contour *operatorv1alpha1.Contour) *metav1.LabelSelector
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentContour ¶
func CurrentContour(ctx context.Context, cli client.Client, ns, name string) (*operatorv1alpha1.Contour, error)
CurrentContour returns the current Contour for the provided ns/name.
func EnsureFinalizer ¶
func EnsureFinalizer(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) error
EnsureFinalizer ensures the finalizer is added to Contour.
func EnsureFinalizerRemoved ¶
func EnsureFinalizerRemoved(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) error
EnsureFinalizerRemoved ensures the finalizer is removed from Contour.
func GatewayClassRefsExist ¶
func GatewayClassRefsExist(ctx context.Context, cli client.Client, name string) ([]operatorv1alpha1.Contour, error)
GatewayClassRefsExist returns a list of Contours that reference a GatewayClass named name.
func New ¶
func New(cfg Config) *operatorv1alpha1.Contour
New makes a Contour object using the provided ns/name for the object's namespace/name, pubType for the network publishing type of Envoy, and Envoy container ports 8080/8443.
func OtherContoursExist ¶
func OtherContoursExist(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) (bool, *operatorv1alpha1.ContourList, error)
OtherContoursExist lists Contour objects in all namespaces, returning the list and true if any exist other than contour.
func OtherContoursExistInSpecNs ¶
func OtherContoursExistInSpecNs(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) (bool, error)
OtherContoursExistInSpecNs lists Contour objects in the same spec.namespace.name as contour, returning true if any exist.
func OwnerLabels ¶ added in v1.14.0
func OwnerLabels(contour *operatorv1alpha1.Contour) map[string]string
OwnerLabels returns owner labels for the provided contour.
func OwningSelector ¶
func OwningSelector(contour *operatorv1alpha1.Contour) *metav1.LabelSelector
OwningSelector returns a label selector using "contour.operator.projectcontour.io/owning-contour-name" and "contour.operator.projectcontour.io/owning-contour-namespace" labels.
Types ¶
type Config ¶
type Config struct { Name string Namespace string SpecNs string RemoveNs bool NetworkType operatorv1alpha1.NetworkPublishingType GatewayClass *string }
Config is the configuration of a Contour.