Documentation
¶
Index ¶
- Constants
- type FlowProfileReconciler
- type HibernationArtifactCleaner
- type HibernationManifestReader
- type HibernationManifestWriter
- type IngestEndpointResolver
- type IngestHostResolver
- type IngestInputResolver
- type IngestPodLogReader
- type IngestRunReconciler
- type PublishedEndpointResolver
- type ResolvedIngestInputs
- type S3HibernationArtifactCleaner
- type S3HibernationManifestReader
- type S3HibernationManifestWriter
- type SchemaController
- type SchemaResult
- type SourcePolicyResolver
- type StorageBackendReconciler
- type TamossHibernateReconciler
- type TamossReconciler
- type WatchNamespaceSet
Constants ¶
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) 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 ¶
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 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) SetupWithManager ¶
func (r *IngestRunReconciler) SetupWithManager(mgr ctrl.Manager) error
type PublishedEndpointResolver ¶
PublishedEndpointResolver selects the instance's own published TAMS endpoint.
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 ¶
func (S3HibernationManifestReader) Read ¶
func (r S3HibernationManifestReader) Read(ctx context.Context, namespace string, spec tamossv1alpha1.StorageBackendSpec, key string) (hibernationManifest, string, error)
type S3HibernationManifestWriter ¶
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 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 ¶
func (r SourcePolicyResolver) Resolve( ctx context.Context, tamoss *tamossv1alpha1.Tamoss, input tamossv1alpha1.IngestRunInput, maxInputs int32, ) (ResolvedIngestInputs, error)
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) 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) 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
Source Files
¶
- advanced_patches.go
- api_token.go
- backend_rollout.go
- events.go
- flowprofile_controller.go
- forward_auth.go
- httproute_input.go
- indexes.go
- ingest_resolvers.go
- ingest_stream.go
- ingestrun_controller.go
- managed_apply.go
- managed_resources.go
- optional_watches.go
- postgres_job_scripts.go
- predicates.go
- reconcile_control.go
- reconcile_metrics.go
- recovery.go
- releases.go
- routing_status.go
- schema_controller.go
- status_patch.go
- storagebackend_bucket.go
- storagebackend_controller.go
- storagebackend_credentials.go
- storagebackend_database.go
- storagebackend_database_scripts.go
- storagebackend_diagnostics.go
- storagebackend_lifecycle.go
- storagebackend_resources.go
- storagebackend_setup.go
- storagebackend_status.go
- storagebackend_web_identity.go
- tamoss_backends.go
- tamoss_controller.go
- tamoss_hibernation_cleanup.go
- tamoss_hibernation_driver.go
- tamoss_hibernation_manifest.go
- tamoss_identity.go
- tamoss_lifecycle.go
- tamoss_lifecycle_operations.go
- tamoss_operation_status.go
- tamoss_resume_bootstrap.go
- tamoss_setup.go
- tamoss_status.go
- tamoss_status_backup.go
- tamoss_status_conditions.go
- tamoss_status_replicas.go
- tamoss_status_resolved.go
- tamosshibernate_controller.go
- watch_namespaces.go
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. |