action/upgrade: use correct CRD policy
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
parent
001e7da2f1
commit
4c439b721a
|
|
@ -51,7 +51,7 @@ func Upgrade(ctx context.Context, config *helmaction.Configuration, obj *v2.Helm
|
|||
vals helmchartutil.Values, opts ...UpgradeOption) (*helmrelease.Release, error) {
|
||||
upgrade := newUpgrade(config, obj, opts)
|
||||
|
||||
policy, err := crdPolicyOrDefault(obj.GetInstall().CRDs)
|
||||
policy, err := crdPolicyOrDefault(obj.GetUpgrade().CRDs)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue