(obj *unstructured.Unstructured)
| 190 | } |
| 191 | |
| 192 | func helmReleaseFromUnstructured(obj *unstructured.Unstructured) *helmv2.HelmRelease { |
| 193 | if obj.GetAPIVersion() == HRAPIVersion && obj.GetKind() == HRKind { |
| 194 | hr := &helmv2.HelmRelease{} |
| 195 | if err := runtime.DefaultUnstructuredConverter.FromUnstructured(obj.Object, hr); err == nil { |
| 196 | return hr |
| 197 | } |
| 198 | } |
| 199 | return nil |
| 200 | } |
no test coverage detected