You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: fix immutability checks in infra provider state
Found a couple of bugs in the infra provider state:
- For some reason, sometimes a resource update is detected where nothing other than the `.metadata.version` was changing. In these cases, the validation blocked the update. Fix this by ignoring the version field. Since we ignore the version field, we now compare the specs as well as the metadata.
- Infra providers were able to modify `infra.Machine` resources when they shouldn't have. The fix above also addresses that.
Signed-off-by: Utku Ozdemir <[email protected]>
returnstatus.Errorf(codes.PermissionDenied, "infra providers are not allowed to update %q resources other than setting finalizers", newResource.Metadata().Type())
0 commit comments