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

Setting --app-changes-max-to-keep to 0 shouldn't create and delete an app change #806

Closed
praveenrewar opened this issue Aug 28, 2023 · 0 comments · Fixed by #807
Closed
Labels
bug This issue describes a defect or unexpected behavior carvel accepted This issue should be considered for future work and that the triage process has been completed

Comments

@praveenrewar
Copy link
Member

What steps did you take:

  • Ran kapp deploy -a my-app -f my-file --app-changes-max-to-keep=0 with a user that doesn't have delete permissions on configmaps.
  • Ran kapp delete -a my-app with the same user.

What happened:

  • App change was created even though I set the cap to 0. If the user has delete permissions, the app change is deleted at the end of deployment.
  • kapp delete errors out saying unable to delete the app change as delete permissions are not provided. We want to keep the delete permissions to a minimum, so we can provide delete permissions for the meta configmap based on it's name, but not for the app change, as it uses generatedName.

What did you expect:
I expected kapp to not create an app change when --app-changes-max-to-keep is set to 0.

Anything else you would like to add:

Environment:

  • kapp version (use kapp --version):
  • OS (e.g. from /etc/os-release):
  • Kubernetes version (use kubectl version)

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

@praveenrewar praveenrewar added bug This issue describes a defect or unexpected behavior carvel triage This issue has not yet been reviewed for validity labels Aug 28, 2023
@praveenrewar praveenrewar added carvel accepted This issue should be considered for future work and that the triage process has been completed and removed carvel triage This issue has not yet been reviewed for validity labels Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes a defect or unexpected behavior carvel accepted This issue should be considered for future work and that the triage process has been completed
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant