Closed pwittrock closed 4 years ago
I assume you mean directly from a CRD (or set of CRDs)?
To expand on the feature request:
We should make type generation from user-supplied cluster optional. If the user just wants to use core types, we can have pre-generated types for one or more api versions.
Ok, so if I understand correctly, the two modes are:
GoogleContainerTools/kpt-functions-sdk#1 is one implementation option. Alternatively, we can just package up pre-generated *.ts files (as part of the SDK or CLI NPM packages) and avoid a call to typegen all toghether.
Where the pregenerated artifacts live is also up for discussion. It could be part of the NPM package or dynamically downloaded (e.g. from a GCS bucket). We take the latter approach with the typgen Go binary itself to avoid bloating the NPM package.
For context: this would eliminate having a kubernetes cluster (locally or remotely) which would simplify the onboarding process.
Talked with Phani, this is the proposal:
type_create.ts
[1], provide these options:
orgs will probably want to explicitly choose the types that are used, rather than have them generated ad-hoc per user.