controller

package
v0.0.0-...-4091499 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 78 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	AnnotationSchemaRetry    = "tamoss.livewyer.io/schema-retry"
	AnnotationOperationRetry = "tamoss.livewyer.io/operation-retry"
	AnnotationAPITokenRotate = "tamoss.livewyer.io/api-token-rotate"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowProfileReconciler

type FlowProfileReconciler struct {
	Releases         releases.Catalogue
	InstanceDefaults *defaults.Installation
	Client           client.Client
	Scheme           *runtime.Scheme
	Recorder         record.EventRecorder
	WatchNamespaces  WatchNamespaceSet
}

func (*FlowProfileReconciler) Reconcile

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

func (*FlowProfileReconciler) SetupWithManager

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

type HibernationArtifactCleaner

type HibernationArtifactCleaner interface {
	DeletePrefix(ctx context.Context, namespace string, spec tamossv1alpha1.StorageBackendSpec, prefix string) (int64, error)
}

type HibernationManifestReader

type HibernationManifestReader interface {
	Read(ctx context.Context, namespace string, spec tamossv1alpha1.StorageBackendSpec, key string) (hibernationManifest, string, error)
}

type HibernationManifestWriter

type HibernationManifestWriter interface {
	Write(ctx context.Context, namespace string, spec tamossv1alpha1.StorageBackendSpec, key string, manifest hibernationManifest) (string, error)
}

type IngestEndpointResolver

type IngestEndpointResolver interface {
	Resolve(context.Context, string, string) (string, error)
}

IngestEndpointResolver selects an operator-approved TLS endpoint for a Tamoss instance. TAMSin deliberately rejects bearer credentials over a cluster-private plaintext HTTP service.

type IngestHostResolver

type IngestHostResolver interface {
	LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error)
}

type IngestInputResolver

type IngestInputResolver interface {
	Resolve(context.Context, *tamossv1alpha1.Tamoss, tamossv1alpha1.IngestRunInput, int32) (ResolvedIngestInputs, error)
}

IngestInputResolver validates an immutable run selector against the target instance's source policy and records a digest of that validation decision.

type IngestPodLogReader

type IngestPodLogReader interface {
	PodLogs(ctx context.Context, namespace, pod, container string) (io.ReadCloser, error)
}

IngestPodLogReader fetches a container's log stream. Split from the controller-runtime client because that client cannot read subresource streams; the manager wires a plain clientset adapter.

func NewIngestPodLogReader

func NewIngestPodLogReader(config *rest.Config) (IngestPodLogReader, error)

NewIngestPodLogReader builds the clientset-backed log reader.

type IngestRunReconciler

type IngestRunReconciler struct {
	Releases         releases.Catalogue
	InstanceDefaults *defaults.Installation
	Client           client.Client
	Scheme           *runtime.Scheme
	WatchNamespaces  WatchNamespaceSet
	// APIReader performs uncached reads. Absence is only trusted after a live
	// confirmation, because a lagging informer cache would otherwise fail a
	// healthy run whose Job or target instance does exist.
	APIReader        client.Reader
	InputResolver    IngestInputResolver
	EndpointResolver IngestEndpointResolver
	// PodLogs reads the finished TAMSin Pod's event stream. A terminal run must
	// have a valid complete stream whose exit code matches the container.
	PodLogs IngestPodLogReader
	// contains filtered or unexported fields
}

func (*IngestRunReconciler) Reconcile

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

func (*IngestRunReconciler) SetupWithManager

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

type PublishedEndpointResolver

type PublishedEndpointResolver struct {
	Client client.Reader
}

PublishedEndpointResolver selects the instance's own published TAMS endpoint.

func (PublishedEndpointResolver) Resolve

func (r PublishedEndpointResolver) Resolve(ctx context.Context, namespace, name string) (string, error)

type ResolvedIngestInputs

type ResolvedIngestInputs struct {
	Selectors            []string
	ExpectedInputs       int32
	SourceName           string
	PolicyDigest         string
	CredentialSecretName string
	CredentialKind       tamossv1alpha1.IngestSourceKind
	S3Endpoint           string
	S3Region             string
	S3PathStyle          bool
}

ResolvedIngestInputs is the private handoff from an approved input service to the fixed TAMSin Job template. Selectors are bounded top-level TAMSin inputs, such as one staged object, manifest, or S3 prefix. The resolver must not expand a large batch into Job arguments.

type S3HibernationArtifactCleaner

type S3HibernationArtifactCleaner struct {
	Client       client.Client
	BucketClient rustfs.BucketClient
}

func (S3HibernationArtifactCleaner) DeletePrefix

func (c S3HibernationArtifactCleaner) DeletePrefix(ctx context.Context, namespace string, spec tamossv1alpha1.StorageBackendSpec, prefix string) (int64, error)

type S3HibernationManifestReader

type S3HibernationManifestReader struct {
	Client client.Client
}

func (S3HibernationManifestReader) Read

func (r S3HibernationManifestReader) Read(ctx context.Context, namespace string, spec tamossv1alpha1.StorageBackendSpec, key string) (hibernationManifest, string, error)

type S3HibernationManifestWriter

type S3HibernationManifestWriter struct {
	Client client.Client
}

func (S3HibernationManifestWriter) Write

func (w S3HibernationManifestWriter) Write(ctx context.Context, namespace string, spec tamossv1alpha1.StorageBackendSpec, key string, manifest hibernationManifest) (string, error)

type SchemaController

type SchemaController struct {
	Target schemabundle.Target
	Client client.Client
	Scheme *runtime.Scheme
}

func (*SchemaController) Reconcile

func (s *SchemaController) Reconcile(ctx context.Context, tamoss *tamossv1alpha1.Tamoss) (SchemaResult, error)

type SchemaResult

type SchemaResult struct {
	Ready           bool
	Version         string
	ManagedObjects  []client.Object
	Degraded        bool
	Reason          string
	Message         string
	SchemaMigration tamossv1alpha1.SchemaMigrationStatus
	RecoveryEvent   *recoveryActionEvent
	RequeueAfter    time.Duration
}

type SourcePolicyResolver

type SourcePolicyResolver struct {
	Client       client.Reader
	HostResolver IngestHostResolver
}

SourcePolicyResolver validates an immutable IngestRun selector against the target instance policy. It returns an audit digest and only the name of any source-owned Secret; Secret values never enter status or Job arguments.

func (SourcePolicyResolver) Resolve

type StorageBackendReconciler

type StorageBackendReconciler struct {
	Releases         releases.Catalogue
	InstanceDefaults *defaults.Installation
	Client           client.Client
	Scheme           *runtime.Scheme
	Recorder         record.EventRecorder
	WatchNamespaces  WatchNamespaceSet
	WarningEvents    operatorstatus.WarningEventDeduper
	HTTPClient       *http.Client
	BucketClient     rustfs.BucketClient
}

func (*StorageBackendReconciler) Reconcile

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

func (*StorageBackendReconciler) SetupWithManager

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

type TamossHibernateReconciler

type TamossHibernateReconciler struct {
	Releases         releases.Catalogue
	InstanceDefaults *defaults.Installation
	Client           client.Client
	Scheme           *runtime.Scheme
	Recorder         record.EventRecorder
	WatchNamespaces  WatchNamespaceSet
	ManifestWriter   HibernationManifestWriter
	PollInterval     time.Duration
}

func (*TamossHibernateReconciler) Reconcile

func (*TamossHibernateReconciler) SetupWithManager

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

type TamossReconciler

type TamossReconciler struct {
	Releases                    releases.Catalogue
	InstanceDefaults            *defaults.Installation
	Client                      client.Client
	Scheme                      *runtime.Scheme
	Recorder                    record.EventRecorder
	WatchNamespaces             WatchNamespaceSet
	Discovery                   *operatordiscovery.Manager
	AuthentikPlatformNamespaces *authentik.PlatformNamespacePolicy
	AuthentikProbeInterval      time.Duration
	AuthentikProbeTimeout       time.Duration
	AuthentikRetryGracePeriod   time.Duration
	DependencyProbeInterval     time.Duration
	AuthentikHTTPClient         *http.Client
	ManifestReader              HibernationManifestReader
	ArtifactCleaner             HibernationArtifactCleaner
	WarningEvents               operatorstatus.WarningEventDeduper
	// contains filtered or unexported fields
}

TamossReconciler reconciles a Tamoss object

func (*TamossReconciler) Reconcile

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

Reconcile drives a Tamoss resource toward its resolved workload, backend, identity, routing, schema, and status state.

func (*TamossReconciler) RegisterOptionalWatches

func (r *TamossReconciler) RegisterOptionalWatches(context.Context) error

func (*TamossReconciler) SetupWithManager

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

type WatchNamespaceSet

type WatchNamespaceSet map[string]struct{}

WatchNamespaceSet restricts reconciliation to an allow-list of namespaces. An empty set allows every namespace.

func ParseWatchNamespaces

func ParseWatchNamespaces(raw string) WatchNamespaceSet

func (WatchNamespaceSet) Allows

func (s WatchNamespaceSet) Allows(namespace string) bool

Directories

Path Synopsis
auth
backend
Package workload_renderer converts Tamoss custom resources into Kubernetes workload objects owned by the TAMOSS operator.
Package workload_renderer converts Tamoss custom resources into Kubernetes workload objects owned by the TAMOSS operator.

Jump to

Keyboard shortcuts

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