svc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareRegisteredService

func PrepareRegisteredService(
	ctx context.Context,
	serviceClass v1alpha1.ServiceClass,
	mappings []sed.SEDMapping,
	data unstructured.Unstructured,
	target_namespace string,
) (v1alpha1.RegisteredService, *v1.Secret, error)

func ServiceEndpointDefinitionMapping

func ServiceEndpointDefinitionMapping(cli client.Client, obj unstructured.Unstructured, serviceClass v1alpha1.ServiceClass) ([]sed.SEDMapping, error)

Types

type AgentServiceReconciler

type AgentServiceReconciler struct {
	client.Client
}

Agent Service Reconciler reconciles a Agent Service object

func NewAgentServiceReconciler

func NewAgentServiceReconciler(mgr ctrl.Manager) *AgentServiceReconciler

func (*AgentServiceReconciler) Reconcile

func (r *AgentServiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*AgentServiceReconciler) SetupWithManager

func (r *AgentServiceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ServiceClassReconciler

type ServiceClassReconciler struct {
	client.Client
	dynamic.Interface
	// contains filtered or unexported fields
}

ServiceClassReconciler reconciles a ServiceClass object

func (*ServiceClassReconciler) CreateOrUpdateRegisteredService

func (r *ServiceClassReconciler) CreateOrUpdateRegisteredService(ctx context.Context, obj unstructured.Unstructured, serviceClass v1alpha1.ServiceClass) error

func (*ServiceClassReconciler) DeleteRegisteredService

func (r *ServiceClassReconciler) DeleteRegisteredService(ctx context.Context, serviceClass v1alpha1.ServiceClass) error

func (*ServiceClassReconciler) GetResources

func (*ServiceClassReconciler) HandleRegisteredServices

func (r *ServiceClassReconciler) HandleRegisteredServices(ctx context.Context, serviceClass *v1alpha1.ServiceClass, services unstructured.UnstructuredList, handleFunc HandleFunc) error

func (*ServiceClassReconciler) Reconcile

func (r *ServiceClassReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ServiceClass object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*ServiceClassReconciler) RunInformer

func (r *ServiceClassReconciler) RunInformer(ctx context.Context, resource schema.GroupVersionResource, serviceClass v1alpha1.ServiceClass) error

func (*ServiceClassReconciler) SetWatchersForResources

func (r *ServiceClassReconciler) SetWatchersForResources(ctx context.Context, serviceClass v1alpha1.ServiceClass) error

func (*ServiceClassReconciler) SetupWithManager

func (r *ServiceClassReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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