Skip to content

Commit

Permalink
Fix hooks test due to casts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Rosiek committed May 18, 2020
1 parent b17e36c commit d0f47b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions tests/upgrade_script/static/hooks.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[INFO] Casting sumologic.setup.clusterRole.annotations."helm.sh/hook-weight" to str
[INFO] Casting sumologic.setup.clusterRoleBinding.annotations."helm.sh/hook-weight" to str
[INFO] Casting sumologic.setup.configMap.annotations."helm.sh/hook-weight" to str
[INFO] Casting sumologic.setup.job.annotations."helm.sh/hook-weight" to str
[INFO] Casting sumologic.setup.serviceAccount to str

[INFO] Updating setup hooks (sumologic.setup.*.annotations[helm.sh/hook]) to 'pre-install,pre-upgrade'
[INFO] falco will be disabled. Change "falco.enabled" to "true" if you want to enable it
Expand Down
8 changes: 4 additions & 4 deletions tests/upgrade_script/static/hooks.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ sumologic:
clusterRole:
annotations:
helm.sh/hook: pre-install,pre-upgrade
helm.sh/hook-weight: 1
helm.sh/hook-weight: "1"
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
clusterRoleBinding:
annotations:
helm.sh/hook: pre-install,pre-upgrade
helm.sh/hook-weight: 2
helm.sh/hook-weight: "2"
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
configMap:
annotations:
helm.sh/hook: pre-install,pre-upgrade
helm.sh/hook-weight: 2
helm.sh/hook-weight: "2"
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
job:
annotations:
helm.sh/hook: pre-install,pre-upgrade
helm.sh/hook-weight: 3
helm.sh/hook-weight: "3"
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
serviceAccount:
annotations:
Expand Down

0 comments on commit d0f47b1

Please sign in to comment.