We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5fd834 commit 43dbed1Copy full SHA for 43dbed1
pkg/crd/crd.go
@@ -74,11 +74,13 @@ func ParsePromise(iface any, crd *apiextensionsv1.CustomResourceDefinition) (err
74
crdYAMLBytes []byte
75
)
76
77
- if spec, ok = iface.(map[string]any)["spec"].(map[string]any); !ok {
+ spec, ok = iface.(map[string]any)["spec"].(map[string]any)
78
+ if !ok {
79
return microerror.Maskf(CouldNotParseCRDFileError, "kratix promise is missing its spec")
80
}
81
- if api, ok = spec["api"].(map[string]any); !ok {
82
+ api, ok = spec["api"].(map[string]any)
83
84
return microerror.Maskf(CouldNotParseCRDFileError, "kratix promise is missing its spec.api")
85
86
0 commit comments