-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it safe to only update the api version, if the content is different for the new version #63
Comments
@marckhouzam Thank you for raising this.
This is something that would need to be verified if it is an issue or not.
I had not known about this tool, thanks for the insight. This might be worth investigating as an alternative to how the plugin updates the release manifest. @marckhouzam Is this something that you would like to investigate further? |
I wonder if @mattfarina would have an opinion on this?
I will try to allocate some time to try out using |
I can confirm that the mentioned scernario is true Only workaround found was using the manual method described on the documentation for decoding the configmap , update the ingress section using the output of kubectl-convert encode it back, and then helm upgrade deploys smoothly. So I agree there would be scenarios where kube-convert transformation of the manifest would be helpful. |
When moving from one api version to another, we sometimes need to change the content of the yaml definition of the object.
Is it safe from helm's perspective for the
mapkubeapis
plugin to only change the version and not the content?This was mostly answered in #34 but in a helm dev call there was a mention that the three-way merge could be something to think about with respect to this issue.
For example, in kube 1.22, the
Ingress
resource versionsextensions/v1beta1
andnetworking.k8s.io/v1beta1
are removed and we must migrate tonetworking.k8s.io/v1
. However, when migrating to the new version, some fields must be changed and some added (https://kubernetes.io/docs/reference/using-api/deprecation-guide/#ingress-v122).Is it safe for the
mapkubeapis
plugin to ignore those field changes? Could helm's three-way merge logic be affected by a helm manifest that differs from the actual yaml stored in kubernetes?If there could be issues, we may want to look at using the
kubectl convert
plugin to apply all changes to the helm manifest.In fact, using the plugin may be interesting regardless as it has the potential to handle every format properly.
@hickeyma I'm hoping you may have an opinion about this.
The text was updated successfully, but these errors were encountered: