Skip to content

Commit

Permalink
chore: ensure test objects are installed in the correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Feb 22, 2024
1 parent 9d53479 commit fda8f28
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "-2"
rules:
- apiGroups: [""] # "" indicates the core API group
resources: ["services"]
Expand All @@ -18,6 +19,7 @@ metadata:
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "-1"
subjects:
- kind: Group
name: system:serviceaccounts # all serviceaccounts
Expand All @@ -36,6 +38,7 @@ metadata:
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "0"
spec:
containers:
- name: kubectl
Expand Down

0 comments on commit fda8f28

Please sign in to comment.