Make airshipconfig and kubeconfig file modifications co-dependent #25
Labels
3-Container
Relates to plugin related issues
enhancement
New feature or request
good first issue
Good for newcomers
invalid
This doesn't seem right
Problem description (if applicable)
Writing to the airshipconfig and kubeconfig in
PersistConfig()
can result in modifications to only the airshipconfig file if an error occurs. This will result in differences between the airshipconfig and kubeconfig.Proposed change
A possible solution is to make the modifications to each file codependent. A backup of each file could be created before modifications are made and restored if an error occurs.
Source: FIXME(howell), pkg/config/config.go, L355-359
The text was updated successfully, but these errors were encountered: