Skip to content

Commit 5e088f9

Browse files
authored
Fix paths for container status and phase checks (CleanupCompletedPods)
1 parent ff66e6f commit 5e088f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

example.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ rules:
3939

4040
## get timestampo from containerStatuses if pod is terminated
4141
timestampPath: |-
42-
max(containerStatuses[*].state.terminated.finishedAt)
42+
max(status.containerStatuses[*].state.terminated.finishedAt)
4343
4444
## filter only pods which are in phase "Failed" or "Succeeded"
4545
filterPath: |-
46-
phase == 'Failed' || phase == 'Succeeded'
46+
status.phase == 'Failed' || status.phase == 'Succeeded'
4747
4848
selector: {}
4949

0 commit comments

Comments
 (0)