reconcilers

package
v0.0.0-...-9d6de07 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Title   string  `json:"title"`
	Type    string  `json:"type"`
	Queries []Query `json:"queries"`
}

type KserveAuthConfigReconciler

type KserveAuthConfigReconciler struct {
	// contains filtered or unexported fields
}

func NewKserveAuthConfigReconciler

func NewKserveAuthConfigReconciler(client client.Client) *KserveAuthConfigReconciler

func (*KserveAuthConfigReconciler) Cleanup

func (*KserveAuthConfigReconciler) Delete

func (*KserveAuthConfigReconciler) Reconcile

type KserveGatewayReconciler

type KserveGatewayReconciler struct {
	// contains filtered or unexported fields
}

func NewKserveGatewayReconciler

func NewKserveGatewayReconciler(client client.Client, clientReader client.Reader) *KserveGatewayReconciler

The clientReader uses the API server to retrieve Secrets that are not cached. By default, only Secrets with the specific label "opendatahub.io/managed: true" are cached.

func (*KserveGatewayReconciler) Cleanup

func (r *KserveGatewayReconciler) Cleanup(ctx context.Context, log logr.Logger, isvcName string) error

func (*KserveGatewayReconciler) Delete

func (*KserveGatewayReconciler) Reconcile

type KserveIstioPeerAuthenticationReconciler

type KserveIstioPeerAuthenticationReconciler struct {
	SingleResourcePerNamespace
	// contains filtered or unexported fields
}

func NewKServeIstioPeerAuthenticationReconciler

func NewKServeIstioPeerAuthenticationReconciler(client client.Client) *KserveIstioPeerAuthenticationReconciler

func (*KserveIstioPeerAuthenticationReconciler) Cleanup

func (*KserveIstioPeerAuthenticationReconciler) Reconcile

TODO remove this reconcile loop in future versions

type KserveIstioPodMonitorReconciler

type KserveIstioPodMonitorReconciler struct {
	SingleResourcePerNamespace
	// contains filtered or unexported fields
}

func NewKServeIstioPodMonitorReconciler

func NewKServeIstioPodMonitorReconciler(client client.Client) *KserveIstioPodMonitorReconciler

func (*KserveIstioPodMonitorReconciler) Cleanup

func (r *KserveIstioPodMonitorReconciler) Cleanup(ctx context.Context, log logr.Logger, isvcNs string) error

func (*KserveIstioPodMonitorReconciler) Reconcile

type KserveIstioServiceMonitorReconciler

type KserveIstioServiceMonitorReconciler struct {
	SingleResourcePerNamespace
	// contains filtered or unexported fields
}

func NewKServeIstioServiceMonitorReconciler

func NewKServeIstioServiceMonitorReconciler(client client.Client) *KserveIstioServiceMonitorReconciler

func (*KserveIstioServiceMonitorReconciler) Cleanup

func (*KserveIstioServiceMonitorReconciler) Reconcile

type KserveIstioTelemetryReconciler

type KserveIstioTelemetryReconciler struct {
	SingleResourcePerNamespace
	// contains filtered or unexported fields
}

func NewKServeIstioTelemetryReconciler

func NewKServeIstioTelemetryReconciler(client client.Client) *KserveIstioTelemetryReconciler

func (*KserveIstioTelemetryReconciler) Cleanup

func (r *KserveIstioTelemetryReconciler) Cleanup(ctx context.Context, log logr.Logger, isvcNs string) error

func (*KserveIstioTelemetryReconciler) Reconcile

type KserveIsvcServiceReconciler

type KserveIsvcServiceReconciler struct {
	// contains filtered or unexported fields
}

func NewKserveIsvcServiceReconciler

func NewKserveIsvcServiceReconciler(client client.Client) *KserveIsvcServiceReconciler

func (*KserveIsvcServiceReconciler) Cleanup

func (*KserveIsvcServiceReconciler) Delete

func (*KserveIsvcServiceReconciler) Reconcile

To support KServe local gateway using HTTPS, each InferenceService (ISVC) needs a certificate. This reconciliation process helps add a serving certificate annotation to the ISVC service.

type KserveMetricsDashboardReconciler

type KserveMetricsDashboardReconciler struct {
	NoResourceRemoval
	// contains filtered or unexported fields
}

func NewKserveMetricsDashboardReconciler

func NewKserveMetricsDashboardReconciler(client client.Client) *KserveMetricsDashboardReconciler

func (*KserveMetricsDashboardReconciler) Reconcile

type KserveMetricsServiceMonitorReconciler

type KserveMetricsServiceMonitorReconciler struct {
	NoResourceRemoval
	// contains filtered or unexported fields
}

func NewKServeMetricsServiceMonitorReconciler

func NewKServeMetricsServiceMonitorReconciler(client client.Client) *KserveMetricsServiceMonitorReconciler

func (*KserveMetricsServiceMonitorReconciler) Reconcile

TODO remove this reconcile loop in future versions

type KserveMetricsServiceReconciler

type KserveMetricsServiceReconciler struct {
	NoResourceRemoval
	// contains filtered or unexported fields
}

func NewKServeMetricsServiceReconciler

func NewKServeMetricsServiceReconciler(client client.Client) *KserveMetricsServiceReconciler

func (*KserveMetricsServiceReconciler) Reconcile

TODO remove this reconcile loop in future versions

type KserveNetworkPolicyReconciler

type KserveNetworkPolicyReconciler struct {
	SingleResourcePerNamespace
	// contains filtered or unexported fields
}

func NewKServeNetworkPolicyReconciler

func NewKServeNetworkPolicyReconciler(client client.Client) *KserveNetworkPolicyReconciler

func (*KserveNetworkPolicyReconciler) Cleanup

func (r *KserveNetworkPolicyReconciler) Cleanup(ctx context.Context, log logr.Logger, isvcNamespace string) error

func (*KserveNetworkPolicyReconciler) Reconcile

type KservePrometheusRoleBindingReconciler

type KservePrometheusRoleBindingReconciler struct {
	SingleResourcePerNamespace
	// contains filtered or unexported fields
}

func NewKServePrometheusRoleBindingReconciler

func NewKServePrometheusRoleBindingReconciler(client client.Client) *KservePrometheusRoleBindingReconciler

func (*KservePrometheusRoleBindingReconciler) Cleanup

func (*KservePrometheusRoleBindingReconciler) Reconcile

type KserveRawInferenceServiceReconciler

type KserveRawInferenceServiceReconciler struct {
	// contains filtered or unexported fields
}

func NewKServeRawInferenceServiceReconciler

func NewKServeRawInferenceServiceReconciler(client client.Client) *KserveRawInferenceServiceReconciler

func (*KserveRawInferenceServiceReconciler) Reconcile

type KserveRouteReconciler

type KserveRouteReconciler struct {
	// contains filtered or unexported fields
}

func NewKserveRouteReconciler

func NewKserveRouteReconciler(client client.Client) *KserveRouteReconciler

func (*KserveRouteReconciler) Cleanup

func (*KserveRouteReconciler) Delete

func (*KserveRouteReconciler) Reconcile

type KserveServerlessInferenceServiceReconciler

type KserveServerlessInferenceServiceReconciler struct {
	// contains filtered or unexported fields
}

func NewKServeServerlessInferenceServiceReconciler

func NewKServeServerlessInferenceServiceReconciler(client client.Client, clientReader client.Reader) *KserveServerlessInferenceServiceReconciler

func (*KserveServerlessInferenceServiceReconciler) CleanupNamespaceIfNoKserveIsvcExists

func (r *KserveServerlessInferenceServiceReconciler) CleanupNamespaceIfNoKserveIsvcExists(ctx context.Context, log logr.Logger, namespace string) error

func (*KserveServerlessInferenceServiceReconciler) OnDeletionOfKserveInferenceService

func (r *KserveServerlessInferenceServiceReconciler) OnDeletionOfKserveInferenceService(ctx context.Context, log logr.Logger, isvc *kservev1beta1.InferenceService) error

func (*KserveServerlessInferenceServiceReconciler) Reconcile

type KserveServiceMeshMemberReconciler

type KserveServiceMeshMemberReconciler struct {
	SingleResourcePerNamespace
	// contains filtered or unexported fields
}

func NewKserveServiceMeshMemberReconciler

func NewKserveServiceMeshMemberReconciler(client client.Client) *KserveServiceMeshMemberReconciler

func (*KserveServiceMeshMemberReconciler) Cleanup

func (r *KserveServiceMeshMemberReconciler) Cleanup(ctx context.Context, log logr.Logger, namespace string) error

func (*KserveServiceMeshMemberReconciler) Reconcile

type MetricsDashboardConfigMapData

type MetricsDashboardConfigMapData struct {
	Data []Config `json:"data"`
}

type ModelMeshClusterRoleBindingReconciler

type ModelMeshClusterRoleBindingReconciler struct {
	SingleResourcePerNamespace
	// contains filtered or unexported fields
}

func NewModelMeshClusterRoleBindingReconciler

func NewModelMeshClusterRoleBindingReconciler(client client.Client) *ModelMeshClusterRoleBindingReconciler

func (*ModelMeshClusterRoleBindingReconciler) Cleanup

func (*ModelMeshClusterRoleBindingReconciler) Reconcile

type ModelMeshInferenceServiceReconciler

type ModelMeshInferenceServiceReconciler struct {
	// contains filtered or unexported fields
}

func NewModelMeshInferenceServiceReconciler

func NewModelMeshInferenceServiceReconciler(client client.Client) *ModelMeshInferenceServiceReconciler

func (*ModelMeshInferenceServiceReconciler) DeleteModelMeshResourcesIfNoMMIsvcExists

func (r *ModelMeshInferenceServiceReconciler) DeleteModelMeshResourcesIfNoMMIsvcExists(ctx context.Context, log logr.Logger, isvcNs string) error

func (*ModelMeshInferenceServiceReconciler) Reconcile

type ModelMeshRouteReconciler

type ModelMeshRouteReconciler struct {
	NoResourceRemoval
	// contains filtered or unexported fields
}

func NewModelMeshRouteReconciler

func NewModelMeshRouteReconciler(client client.Client) *ModelMeshRouteReconciler

func (*ModelMeshRouteReconciler) Reconcile

Reconcile will manage the creation, update and deletion of the TLS route when the predictor is reconciled.

type ModelMeshServiceAccountReconciler

type ModelMeshServiceAccountReconciler struct {
	SingleResourcePerNamespace
	// contains filtered or unexported fields
}

func NewModelMeshServiceAccountReconciler

func NewModelMeshServiceAccountReconciler(client client.Client) *ModelMeshServiceAccountReconciler

func (*ModelMeshServiceAccountReconciler) Cleanup

func (*ModelMeshServiceAccountReconciler) Reconcile

type NoResourceRemoval

type NoResourceRemoval struct{}

NoResourceRemoval is a trait to indicate that given reconciler is not supposed to delete any resources left.

func (*NoResourceRemoval) Cleanup

func (r *NoResourceRemoval) Cleanup(_ context.Context, _ logr.Logger, _ string) error

func (*NoResourceRemoval) Delete

type Query

type Query struct {
	Title string `json:"title"`
	Query string `json:"query"`
}

type Reconciler

type Reconciler interface {
	// Reconcile ensures the resource related to given InferenceService is in the desired state.
	Reconcile(ctx context.Context, log logr.Logger, isvc *kservev1beta1.InferenceService) error
}

type SingleResourcePerNamespace

type SingleResourcePerNamespace struct{}

SingleResourcePerNamespace is a trait to indicate that given reconciler is only supposed to clean up owned resources when there is no relevant ISVC left.

func (*SingleResourcePerNamespace) Delete

type SubResourceReconciler

type SubResourceReconciler interface {
	Reconciler
	// Delete removes subresource owned by InferenceService.
	Delete(ctx context.Context, log logr.Logger, isvc *kservev1beta1.InferenceService) error
	// Cleanup ensures singleton resource (such as ServiceMonitor) is removed
	// when there is no InferenceServices left in the namespace.
	Cleanup(ctx context.Context, log logr.Logger, isvcNs string) error
}

Jump to

Keyboard shortcuts

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