Skip to content

Skip OpenAPI model-building for editor EditorModels#433

Merged
ArnobKumarSaha merged 1 commit into
masterfrom
arnob-editor-openapi
Jun 28, 2026
Merged

Skip OpenAPI model-building for editor EditorModels#433
ArnobKumarSaha merged 1 commit into
masterfrom
arnob-editor-openapi

Conversation

@ArnobKumarSaha

@ArnobKumarSaha ArnobKumarSaha commented Jun 28, 2026

Copy link
Copy Markdown
Member

kube-ui-server crashlooped at startup: unable to get openapi models: cannot find model definition for ...EditorModel — the newly-added editormodels storage was never added to ignorePrefixes, so the apiserver tried to build OpenAPI models for it.
EditorModel's schema transitively references types (e.g. releases/v1alpha1.Metadata) whose definitions aren't available, so model-building fatal-exits.
Fix: add the editormodels path to ignorePrefixes like every other synthesized aggregated resource. Verified on a live cluster — pod 1/1 Running, 0 restarts.

The editor.ui.k8s.appscode.com EditorModel storage was added to the
aggregated apiserver, but its resource path was never added to
ignorePrefixes. At startup the apiserver builds structured-merge OpenAPI
models for every served resource not in ignorePrefixes; EditorModel's
schema transitively references types (e.g.
x-helm.dev/apimachinery/apis/releases/v1alpha1.Metadata) whose OpenAPI
definitions are not available, so model-building fatal-exits and the
server crashloops.

Add the editormodels path to ignorePrefixes, matching every other
synthesized/non-persisted aggregated resource served here.

Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
@ArnobKumarSaha ArnobKumarSaha merged commit 6ab7ea4 into master Jun 28, 2026
4 checks passed
@ArnobKumarSaha ArnobKumarSaha deleted the arnob-editor-openapi branch June 28, 2026 08:20
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