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
Recently a patch was introduced in #8991 to change the file permission of the CNI files. This works well for new deployments. However for existing deployments this doesn't change the file permission while doing upgrades. This is caused by the fact that os.WriteFile doesn't change the file permission of the existing files
Expected Behavior
Existing file permission should be overwritten as well incase of upgrade.
@kashifest would it work to simply delete that file and let it get recreated? At least as a quick fix.
Seems like adding a simple os.Chmod in the place you specified would do the trick though - we can probably do it unconditionally without needing to check if the file was pre-existing, for simplicity.
@kashifest would it work to simply delete that file and let it get recreated? At least as a quick fix.
Yes, thats how we checked if it is working
Seems like adding a simple os.Chmod in the place you specified would do the trick though - we can probably do it unconditionally without needing to check if the file was pre-existing, for simplicity.
Recently a patch was introduced in #8991 to change the file permission of the CNI files. This works well for new deployments. However for existing deployments this doesn't change the file permission while doing upgrades. This is caused by the fact that
os.WriteFile
doesn't change the file permission of the existing filesExpected Behavior
Existing file permission should be overwritten as well incase of upgrade.
Possible Solution
May be add a check if the file exists and if it does we simple change the file permission using
os.Chmod("/path/to/file", perm)
here https://github.com/missa-wndrvr/calico/blob/master/cni-plugin/pkg/install/install.go#L388Context
Upgrading from 3.28.1 to 3.29.1
The text was updated successfully, but these errors were encountered: