Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIsToWatch ¶
APIsToWatch give a list of APIs to watch if using this package to deploy the endpoint
func AddToScheme ¶
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.
Click to show internal directories.
Click to hide internal directories.