Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Due to how Helm upgrades, upgrading from v1.9.5 to master is currently broken as
roleRef
in roles cannot be updated in place.This PR reverts the ClusterRole name back to
dapr-operator-admin
so it doesn't change on an upgrade, and changes the binding name to match.After a number of future versions, we would be able to remove the
admin
suffix from the role and binding names to be consistent since the upgrade would be deleting the exiting resources with another. There isn't currently a maximum version upgrade jump though so it's possible a user could always upgrade from pre 1.10 to any future version.Perhaps we should create a policy for the maximum version jump a user could perform, i.e can only upgrade from target - 2 minor versions? This would allow us to change these resource names, as well as allowing us to handle these kind of problems in future.
Broken from: #5767
/cc @yaron2