We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 445216a commit d3c8b4bCopy full SHA for d3c8b4b
pkg/kubernetes/apply.go
@@ -94,13 +94,13 @@ func (k *Kubernetes) uids(state manifest.List) (map[string]bool, error) {
94
live, err := k.ctl.GetByState(state, client.GetByStateOpts{
95
IgnoreNotFound: true,
96
})
97
- if err != nil {
98
- if _, ok := err.(client.ErrorNothingReturned); ok {
99
- // return empty map of uids when kubectl returns nothing
100
- return uids, nil
101
- }
+ if _, ok := err.(client.ErrorNothingReturned); ok {
+ // return empty map of uids when kubectl returns nothing
+ return uids, nil
+ } else if err != nil {
102
return nil, err
103
}
+ }
104
105
for _, m := range live {
106
uids[m.Metadata().UID()] = true
0 commit comments