Skip to content

Serve editor.ui.k8s.appscode.com EditorTemplate (fast, values-driven)#430

Merged
tamalsaha merged 1 commit into
masterfrom
editor-ui-template
Jun 26, 2026
Merged

Serve editor.ui.k8s.appscode.com EditorTemplate (fast, values-driven)#430
tamalsaha merged 1 commit into
masterfrom
editor-ui-template

Conversation

@tamalsaha

@tamalsaha tamalsaha commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What

Serves the editor.ui.k8s.appscode.com EditorTemplate kind from kube-ui-server. Given an installation's metadata and the editor chart's values, it reconstructs the editor model / manifest / resources via editor.EditorChartValueManifest and returns them.

Design: keep kube-ui-server fast

The storage does only fast in-cluster reads (kc.Get(AppRelease) + EditorChartValueManifest), so it stays within the aggregated apiserver request budget (~30s). The slow/mutating parts are intentionally left to the caller (b3):

  • getChart (pulling the editor chart) can take longer than the request budget → done in b3.
  • CreateAppReleaseIfMissing (a write) → done in b3.

Accordingly this storage uses neither a chart registry nor a rest.Config — it just consumes the values from the request.

New API group block

Registered under a dedicated editor.ui.k8s.appscode.com API group (needs the matching APIService + RBAC from the installer — see kubeops/installer#493).

Depends on (both merged)

go.mod pins resource-metadata and lib-app to their merged master commits.

Part of a multi-repo change with appscode-cloud/b3#1527 (does getChart + CreateAppRelease, sends values).

kodiakhq[bot]
kodiakhq Bot previously approved these changes Jun 26, 2026
kodiakhq[bot]
kodiakhq Bot previously approved these changes Jun 26, 2026
kodiakhq[bot]
kodiakhq Bot previously approved these changes Jun 26, 2026
…ven)

Add a registry storage for the editor.ui.k8s.appscode.com EditorTemplate kind.
It reconstructs an installation's editor model/manifest/resources from the chart
values supplied in the request via editor.EditorChartValueManifest -- only fast
in-cluster reads, so it stays within the aggregated apiserver request budget.

The slow parts (pulling the chart and creating the AppRelease) are done by the
caller (b3), so this storage uses neither a chart registry nor a rest.Config.

Pins resource-metadata and lib-app to master (EditorTemplate carries chart
values; EditorChartValueManifest takes a values map).

Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha tamalsaha changed the title Serve ui EditorTemplate via the meta API group Serve editor.ui.k8s.appscode.com EditorTemplate (fast, values-driven) Jun 26, 2026
@tamalsaha tamalsaha merged commit 2562115 into master Jun 26, 2026
4 checks passed
@tamalsaha tamalsaha deleted the editor-ui-template branch June 26, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant