• 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
.circleci Loading commit data...
.github Loading commit data...
_proto Loading commit data...
cmd Loading commit data...
docs Loading commit data...
pkg Loading commit data...
rootfs Loading commit data...
scripts Loading commit data...
testdata Loading commit data...
.gitignore Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
SECURITY_CONTACTS Loading commit data...
code-of-conduct.md Loading commit data...
glide.lock Loading commit data...
glide.yaml Loading commit data...
versioning.mk Loading commit data...