service

package
v0.6.42 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 54 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Identifier                   = "Service Controller"
	OperatorService              = "deploy-operator"
	RestoreConfigMapName         = "restore-config-map"
	IgnoreFieldsAnnotationName   = "deployments.plural.sh/ignore-fields"
	BackFillFieldsAnnotationName = "deployments.plural.sh/backfill-fields"
)

Variables

This section is empty.

Functions

func BackFillJSONPaths

func BackFillJSONPaths(ctx context.Context, c client.Client, obj unstructured.Unstructured, ignorePaths []string) (unstructured.Unstructured, error)

func IgnoreJSONPaths

func IgnoreJSONPaths(obj unstructured.Unstructured, ignorePaths []string) (unstructured.Unstructured, error)

Types

type ServiceReconciler

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

func NewServiceReconciler

func NewServiceReconciler(consoleClient client.Client,
	k8sClient ctrclient.Client,
	mapper meta.RESTMapper,
	clientSet kubernetes.Interface,
	dynamicClient dynamic.Interface,
	discoveryCache discoverycache.Cache,
	namespaceCache streamline.NamespaceCache,
	svcCache *cache.Cache[console.ServiceDeploymentForAgent],
	store store.Store,
	option ...ServiceReconcilerOption,
) (*ServiceReconciler, error)

func (*ServiceReconciler) ExtractMetadata

func (*ServiceReconciler) GetPollInterval

func (s *ServiceReconciler) GetPollInterval() func() time.Duration

func (*ServiceReconciler) GetPublisher

func (s *ServiceReconciler) GetPublisher() (string, websocket.Publisher)

func (*ServiceReconciler) Poll

func (s *ServiceReconciler) Poll(ctx context.Context) error

func (*ServiceReconciler) Queue

func (*ServiceReconciler) Reconcile

func (s *ServiceReconciler) Reconcile(ctx context.Context, id string) (result reconcile.Result, err error)

func (*ServiceReconciler) Restart

func (s *ServiceReconciler) Restart()

func (*ServiceReconciler) Shutdown

func (s *ServiceReconciler) Shutdown()

func (*ServiceReconciler) ShutdownQueue

func (s *ServiceReconciler) ShutdownQueue()

func (*ServiceReconciler) UpdateErrorStatus

func (s *ServiceReconciler) UpdateErrorStatus(ctx context.Context, id string, err error)

func (*ServiceReconciler) UpdateErrors

func (s *ServiceReconciler) UpdateErrors(id string, err *console.ServiceErrorAttributes) error

func (*ServiceReconciler) UpdateStatus

func (*ServiceReconciler) WipeCache

func (s *ServiceReconciler) WipeCache()

type ServiceReconcilerOption

type ServiceReconcilerOption func(*ServiceReconciler)

func WithConsoleURL

func WithConsoleURL(url string) ServiceReconcilerOption

func WithManifestTTL

func WithManifestTTL(manifestTTL time.Duration) ServiceReconcilerOption

func WithManifestTTLJitter

func WithManifestTTLJitter(manifestTTLJitter time.Duration) ServiceReconcilerOption

func WithPollInterval

func WithPollInterval(pollInterval time.Duration) ServiceReconcilerOption

func WithRestoreNamespace

func WithRestoreNamespace(namespace string) ServiceReconcilerOption

func WithSupervisor

func WithSupervisor(supervisor *streamline.Supervisor) ServiceReconcilerOption

func WithWaveDeQueueDelay

func WithWaveDeQueueDelay(delay time.Duration) ServiceReconcilerOption

func WithWaveDelay

func WithWaveDelay(waveDelay time.Duration) ServiceReconcilerOption

func WithWaveMaxConcurrentApplies

func WithWaveMaxConcurrentApplies(n int) ServiceReconcilerOption

func WithWorkqueueBaseDelay

func WithWorkqueueBaseDelay(workqueueBaseDelay time.Duration) ServiceReconcilerOption

func WithWorkqueueBurst

func WithWorkqueueBurst(workqueueBurst int) ServiceReconcilerOption

func WithWorkqueueMaxDelay

func WithWorkqueueMaxDelay(workqueueMaxDelay time.Duration) ServiceReconcilerOption

func WithWorkqueueQPS

func WithWorkqueueQPS(workqueueQPS int) ServiceReconcilerOption

Jump to

Keyboard shortcuts

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