service

package
v0.0.0-...-5f9e29a Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIsToWatch

func APIsToWatch() ([]client.Object, error)

APIsToWatch give a list of APIs to watch if using this package to deploy the endpoint

func AddToScheme

func AddToScheme(scheme *runtime.Scheme) error

AddToScheme should be used as soon as scheme is created to add core objects for encoding/decoding

func New

func New(ctx context.Context, c client.Client, logger logr.Logger,
	namespacedName types.NamespacedName,
	backendPort, ingressPort int32,
	svcType corev1.ServiceType,
	labels map[string]string,
	annotations map[string]string,
	ownerReferences []metav1.OwnerReference) (endpoint.Endpoint, error)

New creates a service endpoint object, deploys the resources on the cluster and then checks for the health of the service. Before using the fields it is always recommended to check if the service is healthy.

In order to generate the right RBAC, add the following lines to the Reconcile function annotations. +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete

Types

This section is empty.

Jump to

Keyboard shortcuts

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