Some fields (eg. Azure location) are immutable and we should fail when they are updated.
To get started, you can look at how we implemented validation for AzureMachines here:
You can also look at this PR in CAPA which achieves something similar: https://github.com/kubernetes-sigs/cluster-api-provider-aws/pull/1677/files
/help
@CecileRobertMichon:
This request has been marked as needing help from a contributor.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.
In response to this:
/help
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/assign
@CecileRobertMichon should we re-scope this issue to just the location property? If so, then #522 will close this. If not, then I'll note in #522 that we've made progress, but we'll keep this issue open.
@jackfrancis let's keep this one open and once #522 merges we can make a list of the other properties that should be validated as immutable in this issue for someone else to pick up.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale
/remove-lifecycle rotten
/unassign @jackfrancis
@CecileRobertMichon do you need help in this?
@surajrana93 have you picked this up already? if not I would like to work on this.
@furkatgofurov7 go for it, I believe @surajrana93 is already working on #1075
/assign
Fields that we should allow updates on:
Everything else should not be updated.
/cc @devigned