File tree 2 files changed +12
-9
lines changed
charts/kafkarator/templates
2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 62
62
cel :
63
63
expressions :
64
64
- expression : >-
65
- object.spec.config.cleanupPolicy == 'compact' && (
66
- object.spec.config.localRetentionBytes > 0 ||
67
- object.spec.config.localRetentionHours > 0
68
- )
65
+ (!has(object.spec.config.cleanupPolicy) || object.spec.config.cleanupPolicy == 'delete') ||
66
+ (
67
+ (!has(object.spec.config.localRetentionBytes) || object.spec.config.localRetentionBytes < 0) &&
68
+ (!has(object.spec.config.localRetentionHours) || object.spec.config.localRetentionHours < 0)
69
+ )
69
70
{{- end }}
Original file line number Diff line number Diff line change @@ -5,17 +5,19 @@ metadata:
5
5
annotations :
6
6
kafka.nais.io/removeDataWhenResourceIsDeleted : " true"
7
7
name : mytopic
8
- namespace : default
8
+ namespace : basseng
9
9
labels :
10
- team : default
10
+ team : basseng
11
11
spec :
12
- pool : some-pool
12
+ pool : dev-nais-dev
13
13
config :
14
+ cleanupPolicy : delete
14
15
retentionHours : 900
16
+ localRetentionHours : 100
15
17
acl :
16
18
- access : read
17
- team : default
19
+ team : basseng
18
20
application : myapplication
19
21
- access : write
20
- team : default
22
+ team : basseng
21
23
application : otherapplication
You can’t perform that action at this time.
0 commit comments