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

  • apiVersionstring

    telemetry.plural.sh/v1alpha1

  • kindstring

    BucketCleaner

  • metadataObjectMeta

    Standard 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 sethas(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)
  • objectStoreObjectStoreSpec

    ObjectStore 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.

  • subPathstring

    SubPath 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 immutableself == oldSelf
  • checkIntervalSecondsintegerdefault 300

    CheckIntervalSeconds is how often bucket access is re-verified.

    Minimum: 10
  • DataStoreRef 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 configurationself.type != 'Aws' || has(self.aws)
  • aws configuration is only valid for Aws object storesself.type == 'Aws' || !has(self.aws)
  • Azure object stores require azure configurationself.type != 'Azure' || has(self.azure)
  • azure configuration is only valid for Azure object storesself.type == 'Azure' || !has(self.azure)
  • Gcp object stores require gcp configurationself.type != 'Gcp' || has(self.gcp)
  • gcp configuration is only valid for Gcp object storesself.type == 'Gcp' || !has(self.gcp)

BucketCleanerDataStoreReference

Used by BucketCleanerSpec

  • kindstring
    Enum: [Metrics Logs Traces Vector]
  • namestring
    MinLength: 1

ObjectStoreType

Used by ObjectStoreSpec

Underlying type string

  • InMemory
  • Local
  • Aws
  • Azure
  • Gcp

AWSObjectStoreSpec

Used by ObjectStoreSpec

AWSObjectStoreSpec configures an Amazon S3 or S3-compatible object store.

  • accessKeyIDSecretRef and secretAccessKeySecretRef must be configured togetherhas(self.accessKeyIDSecretRef) == has(self.secretAccessKeySecretRef)

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

GCPObjectStoreSpec

Used by ObjectStoreSpec

  • serviceAccountKeySecretRef and bearerTokenSecretRef are mutually exclusive![has(self.serviceAccountKeySecretRef), has(self.bearerTokenSecretRef)].all(x, x)

AzureClientSecretAuthSpec

Used by AzureObjectStoreSpec

  • clientIDstring
    MinLength: 1
  • tenantIDstring
    MinLength: 1
  • clientSecretKeyRefSecretKeySelector

AzureWorkloadIdentityAuthSpec

Used by AzureObjectStoreSpec

  • clientIDstring
    MinLength: 1
  • tenantIDstring
    MinLength: 1
  • tokenFilestring
    MinLength: 1