Documentation
¶
Index ¶
- Constants
- func IsAWSClientNotInitializedError(err error) bool
- func IsConfigCRHealthy(ctx context.Context, kubeClient client.Client, namespace string) (bool, error)
- func IsControllerConfigGlobalsSet(cacheDir, dataBucket string) bool
- type ChunksGeneratorReconciler
- type ControllerConfigReconciler
- type DocumentProcessorReconciler
- type Model
- type ModelCredentials
- type S3EventBucket
- type S3EventData
- type S3EventObject
- type S3EventRecord
- type S3EventUserIdentity
- type SQSInformerReconciler
- type SQSMessage
- type UnstructuredDataProductReconciler
- type VectorEmbeddingsGeneratorReconciler
Constants ¶
const (
ChunksGeneratorControllerName = "ChunksGenerator"
)
const (
DocumentProcessorControllerName = "DocumentProcessor"
)
const (
SQSInformerControllerName = "SQSInformer"
)
const (
UnstructuredDataProductControllerName = "UnstructuredDataProduct"
)
const (
VectorEmbeddingsGeneratorControllerName = "VectorEmbeddingsGenerator"
)
Variables ¶
This section is empty.
Functions ¶
func IsAWSClientNotInitializedError ¶ added in v0.2.0
IsAWSClientNotInitializedError returns true if err indicates an AWS client (S3, SQS, or presign) is not initialized yet. Used to requeue without error when ControllerConfig has not run yet at startup.
func IsConfigCRHealthy ¶
func IsControllerConfigGlobalsSet ¶ added in v0.2.0
IsControllerConfigGlobalsSet returns true if the controller package globals (cacheDirectory, dataStorageBucket) have been set by ControllerConfig Reconcile. When false, filestore.New would be called with empty paths and fail before reaching GetS3Client(), so we requeue early.
Types ¶
type ChunksGeneratorReconciler ¶
type ChunksGeneratorReconciler struct {
client.Client
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
ChunksGeneratorReconciler reconciles a ChunksGenerator object
func (*ChunksGeneratorReconciler) Reconcile ¶
func (r *ChunksGeneratorReconciler) 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 ChunksGenerator 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.21.0/pkg/reconcile
func (*ChunksGeneratorReconciler) SetupWithManager ¶
func (r *ChunksGeneratorReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ControllerConfigReconciler ¶
ControllerConfigReconciler reconciles a ControllerConfig object
func (*ControllerConfigReconciler) Reconcile ¶
func (r *ControllerConfigReconciler) 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 ControllerConfig 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.21.0/pkg/reconcile
func (*ControllerConfigReconciler) SetupWithManager ¶
func (r *ControllerConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type DocumentProcessorReconciler ¶
type DocumentProcessorReconciler struct {
client.Client
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
DocumentProcessorReconciler reconciles a DocumentProcessor object
func (*DocumentProcessorReconciler) SetupWithManager ¶
func (r *DocumentProcessorReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ModelCredentials ¶ added in v0.2.0
type S3EventBucket ¶
type S3EventData ¶
type S3EventData struct {
Bucket S3EventBucket `json:"bucket"`
Object S3EventObject `json:"object"`
}
S3EventData contains the S3-specific event data
type S3EventObject ¶
type S3EventRecord ¶
type S3EventRecord struct {
AWSRegion string `json:"awsRegion"`
EventName string `json:"eventName"`
EventTime string `json:"eventTime"`
UserIdentity S3EventUserIdentity `json:"userIdentity"`
S3 S3EventData `json:"s3"`
}
S3EventRecord represents a single S3 event record
type S3EventUserIdentity ¶
type S3EventUserIdentity struct {
PrincipalID string `json:"principalId"`
}
type SQSInformerReconciler ¶ added in v0.2.0
SQSInformerReconciler reconciles a SQSInformer object
func (*SQSInformerReconciler) SetupWithManager ¶ added in v0.2.0
func (r *SQSInformerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type SQSMessage ¶
type SQSMessage struct {
Records []S3EventRecord `json:"Records"`
}
SQSMessage represents an S3 event notification received via SQS
type UnstructuredDataProductReconciler ¶
type UnstructuredDataProductReconciler struct {
client.Client
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
UnstructuredDataProductReconciler reconciles a UnstructuredDataProduct object
func (*UnstructuredDataProductReconciler) SetupWithManager ¶
func (r *UnstructuredDataProductReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type VectorEmbeddingsGeneratorReconciler ¶ added in v0.2.0
type VectorEmbeddingsGeneratorReconciler struct {
client.Client
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
func (*VectorEmbeddingsGeneratorReconciler) SetupWithManager ¶ added in v0.2.0
func (r *VectorEmbeddingsGeneratorReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.