Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-delete / post-delete hooks do not complete #125

Open
sean-mcgimpsey opened this issue May 6, 2020 · 1 comment
Open

pre-delete / post-delete hooks do not complete #125

sean-mcgimpsey opened this issue May 6, 2020 · 1 comment

Comments

@sean-mcgimpsey
Copy link
Contributor

sean-mcgimpsey commented May 6, 2020

The pre-delete and post-delete tasks do not complete, as the service account px-hook is not created.

  Warning  FailedCreate  16s (x10 over 4m16s)  job-controller  Error creating: pods "px-hook-predelete-nodelabel-" is forbidden: error looking up service account kube-system/px-hook: serviceaccount "px-hook" not found

Just to confirm .Values.serviceAccount.hook.create is true, and im running helm v3.1.0

To reproduce:

  • Install portworx charts
  • Run uninstall with the following command(replacing release_name and namespace)
    helm uninstall _release_name_ -n _namespace_ --debug
@sean-mcgimpsey sean-mcgimpsey changed the title pre-delete tasks not completing. pre-delete / post-delete hooks do not complete May 6, 2020
@sean-mcgimpsey
Copy link
Contributor Author

This is caused by the weight of pre-delete/post-delete jobs being -5, meaning they run before the service account is created.
To fix simply change the weight annotation to 10 for these jobs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant