diff --git a/clin/models/shared.py b/clin/models/shared.py index 6c45cdf..0a3cbd4 100644 --- a/clin/models/shared.py +++ b/clin/models/shared.py @@ -70,6 +70,7 @@ class Cleanup: class Policy(str, Enum): DELETE = "delete" COMPACT = "compact" + COMPACT_AND_DELETE = "compact_and_delete" def __str__(self) -> str: return str(self.value) diff --git a/docs/examples/single/event-type.yaml b/docs/examples/single/event-type.yaml index 392ca0f..bb2c095 100644 --- a/docs/examples/single/event-type.yaml +++ b/docs/examples/single/event-type.yaml @@ -10,7 +10,7 @@ spec: - important_key partitionCount: 2 cleanup: - policy: compact # compact | delete + policy: compact # compact | delete | compact_and_delete retentionTimeDays: 4 # days before delete for corresponding policy annotations: # set of key-value pairs to define event type annotations "foo": "bar"