Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(crd): use unstructured type inplace of typed crd instance (#187)
This commit makes exhaustive changes to handle CRD instances. CRD instances make use of unstructured types instead of typed instances. Both CRD versions i.e. v1beta1 & v1 are supported. Unstructured instances have proved to be generic & testable versus the typed counterparts especially for CRD schemas that can differ from each other. In other words, CRD schemas have a majority schemaless section that is well handled via unstructured type. This commit also includes a number of integration test cases to avoid bug injections if any. This closes #186 partially. A better approach will be to use latest version of d-operators with clients that make use of unstructured instances directly instead of yaml strings that get converted to go structures. This commit is also a breaking change, since some of the structures have been modified. Clients that are already making use of this structure need to be modified accordingly. Signed-off-by: AmitKumarDas <[email protected]>
- Loading branch information