-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add e2e test for hook finalizer which prevents external resour…
…ce deletion (#21113) Signed-off-by: Dejan Zele Pejchev <[email protected]> Signed-off-by: Alexandre Gaudreault <[email protected]> Co-authored-by: Alexandre Gaudreault <[email protected]>
- Loading branch information
1 parent
951d9d3
commit 8a447d9
Showing
5 changed files
with
92 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
test/e2e/testdata/hook-resource-deleted-externally/hook.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/hook: Sync | ||
name: hook | ||
spec: | ||
ttlSecondsAfterFinished: 0 | ||
backoffLimit: 0 | ||
template: | ||
spec: | ||
containers: | ||
- command: | ||
- "true" | ||
image: quay.io/argoprojlabs/argocd-e2e-container:0.1 | ||
imagePullPolicy: IfNotPresent | ||
name: main | ||
restartPolicy: Never |
12 changes: 12 additions & 0 deletions
12
test/e2e/testdata/hook-resource-deleted-externally/pod.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: pod | ||
spec: | ||
containers: | ||
- name: main | ||
image: quay.io/argoprojlabs/argocd-e2e-container:0.1 | ||
imagePullPolicy: IfNotPresent | ||
command: | ||
- "true" | ||
restartPolicy: Never |