-
Spike
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
None
-
None
-
False
-
-
False
-
None
-
None
-
OCP Console - Sprint 276
We current store the schemas of each k8s resource we read in k8s/types.ts. This manual effort is cumbersome and error-prone, and is occasionally the cause of bugs.
Projects already exist to generate TypeScript types for vanilla Kubernetes resources (see prior art: kubernetes-types, kubricate, kubernetes-models, kubernetesjs, pepr, crdtotypes, etc...)
We should investigate generating this file, perhaps by reading the JSON schemas or by reading openshift/api. Furtermore, future work can allow extraction of these types into the OpenShift dynamic plugin SDK as a part of @openshift/dynamic-plugin-sdk/lib-utils.
AC: A proof of concept exists which generates a type library containing a portion of our existing resource types from the OpenShift and/or Kubernetes API schemas.
- is depended on by
-
CONSOLE-4775 Write enhancement doc for switching to generated k8s/OpenShift types
-
- Review
-