• Yusuke Kuoka's avatar
    fix: upgrade with CRD changes · ae52477f
    Yusuke Kuoka authored
    Probably since K8s 1.13.x, `converter.ConvertToVersion(info.Object, groupVersioner)` which is the body of `asVersioned` doesn't return an error or an "unstructured" object, but `apiextensions/v1beta1.CustomResourceDefinition`.
    
    The result was `helm upgrade` with any changes in CRD consistently failing.
    
    This fixes that by adding an additional case of the conversion result being `v1beta1.CustomResourceDefinition`.
    
    This is a backward-compatible change as it doesn't remove existing switch cases for older K8s versions.
    
    Fixes #5853
    Signed-off-by: 's avatarYusuke Kuoka <ykuoka@gmail.com>
    ae52477f
Name
Last commit
Last update
..
chartutil Loading commit data...
downloader Loading commit data...
engine Loading commit data...
getter Loading commit data...
helm Loading commit data...
hooks Loading commit data...
ignore Loading commit data...
kube Loading commit data...
lint Loading commit data...
manifest Loading commit data...
plugin Loading commit data...
proto/hapi Loading commit data...
provenance Loading commit data...
releasetesting Loading commit data...
releaseutil Loading commit data...
renderutil Loading commit data...
repo Loading commit data...
resolver Loading commit data...
rudder Loading commit data...
storage Loading commit data...
strvals Loading commit data...
sympath Loading commit data...
tiller Loading commit data...
timeconv Loading commit data...
tlsutil Loading commit data...
urlutil Loading commit data...
version Loading commit data...