BucketCleaner
BucketCleaner verifies the operator can reach an object-store prefix and deletes every object under it when the BucketCleaner is deleted.
- API version
- telemetry.plural.sh/v1alpha1
- Kind
- BucketCleaner
- Scope
- Namespaced
BucketCleaner
apiVersionstringtelemetry.plural.sh/v1alpha1kindstringBucketCleanermetadataObjectMetaStandard object metadata. See the Kubernetes API reference for its fields.
BucketCleanerSpec
Used by BucketCleaner
BucketCleanerSpec defines the desired state of BucketCleaner.
- objectStore and subPath are required unless dataStoreRef is set
has(self.dataStoreRef) || (has(self.objectStore) && has(self.subPath)) - objectStore.type must be Aws, Azure, or Gcp
!has(self.objectStore) || self.objectStore.type in ['Aws', 'Azure', 'Gcp'] - objectStore.path is not supported; use subPath
!has(self.objectStore) || !has(self.objectStore.path) || self.objectStore.path.size() == 0 - subPath is immutable
!has(oldSelf.subPath) || has(self.subPath)
objectStoreObjectStoreSpecObjectStore is the bucket holding the tracked data, in the same form as a datastore's spec.config.storage.objectStore. Credential Secrets are read from the BucketCleaner's namespace by the operator itself; when they are omitted the operator's own cloud identity is used. Defaults to the dataStoreRef's spec.config.storage.objectStore.
subPathstringSubPath is the key prefix within the bucket, typically a datastore's spec.config.storage.path. It is treated as a directory: "logs" covers "logs/..." but not "logs-archive/...". Every object under it is deleted when the BucketCleaner is deleted. Defaults to the dataStoreRef's spec.config.storage.path, or the product name when that is unset.
MinLength: 1Pattern:[^/]- subPath is immutable
self == oldSelf
- subPath is immutable
checkIntervalSecondsintegerdefault300CheckIntervalSeconds is how often bucket access is re-verified.
Minimum: 10dataStoreRefBucketCleanerDataStoreReferenceDataStoreRef is the datastore, in the BucketCleaner's namespace, that writes under subPath. Omitted objectStore and subPath settings are taken from its storage while it exists. Deletion waits until the datastore and its pods are gone, so no replica writes objects after the prefix is emptied, and data is never deleted while the datastore exists.
ObjectStoreSpec
Used by BucketCleanerSpec
- Aws object stores require aws configuration
self.type != 'Aws' || has(self.aws) - aws configuration is only valid for Aws object stores
self.type == 'Aws' || !has(self.aws) - Azure object stores require azure configuration
self.type != 'Azure' || has(self.azure) - azure configuration is only valid for Azure object stores
self.type == 'Azure' || !has(self.azure) - Gcp object stores require gcp configuration
self.type != 'Gcp' || has(self.gcp) - gcp configuration is only valid for Gcp object stores
self.type == 'Gcp' || !has(self.gcp)
- Enum: [InMemory Local Aws Azure Gcp]
pathstringazureAzureObjectStoreSpec
BucketCleanerDataStoreReference
Used by BucketCleanerSpec
kindstringEnum: [Metrics Logs Traces Vector]namestringMinLength: 1
ObjectStoreType
AWSObjectStoreSpec
Used by ObjectStoreSpec
AWSObjectStoreSpec configures an Amazon S3 or S3-compatible object store.
- accessKeyIDSecretRef and secretAccessKeySecretRef must be configured together
has(self.accessKeyIDSecretRef) == has(self.secretAccessKeySecretRef)
regionstringMinLength: 1bucketstringMinLength: 1endpointstringallowHTTPbooleanvirtualHostedStylebooleanaccessKeyIDSecretRefSecretKeySelectorsecretAccessKeySecretRefSecretKeySelectorsessionTokenSecretRefSecretKeySelector
AzureObjectStoreSpec
Used by ObjectStoreSpec
- at most one Azure authentication method may be configured
[has(self.accessKeySecretRef), has(self.sasTokenSecretRef), has(self.bearerTokenSecretRef), has(self.clientSecret), has(self.workloadIdentity)].filter(x, x).size() <= 1
accountstringMinLength: 1containerstringMinLength: 1endpointstringallowHTTPbooleanaccessKeySecretRefSecretKeySelectorsasTokenSecretRefSecretKeySelectorbearerTokenSecretRefSecretKeySelectorclientSecretAzureClientSecretAuthSpecworkloadIdentityAzureWorkloadIdentityAuthSpec
GCPObjectStoreSpec
Used by ObjectStoreSpec
- serviceAccountKeySecretRef and bearerTokenSecretRef are mutually exclusive
![has(self.serviceAccountKeySecretRef), has(self.bearerTokenSecretRef)].all(x, x)
bucketstringMinLength: 1baseURLstringserviceAccountKeySecretRefSecretKeySelectorbearerTokenSecretRefSecretKeySelector
AzureClientSecretAuthSpec
Used by AzureObjectStoreSpec
clientIDstringMinLength: 1tenantIDstringMinLength: 1clientSecretKeyRefSecretKeySelector
AzureWorkloadIdentityAuthSpec
Used by AzureObjectStoreSpec
clientIDstringMinLength: 1tenantIDstringMinLength: 1tokenFilestringMinLength: 1