You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.
Naive pull request which seems to fix: #268
The test case I added reproduced the panic pre-fix, but see below for real world example.
If, for example
live
has an array but the corresponding portion ofconfig
is an object:To reproduce, create something with an array field, e.g.:
Then make
rules
an object instead of an array:Upon diff-strategy=subset https://github.com/bitnami/kubecfg/blob/38d6080676bdf18c02025af6775cd8b1967132a5/pkg/kubecfg/diff.go#L178-L181 finds that
config
's field is amap[string]interface{}
but live is a[]interface {}
and fails the assertion. The converse should also fail in the same manner.The text was updated successfully, but these errors were encountered: