Repository navigation
feat: require modelConfig.name - #125
Merged
Merged
Conversation
modelConfig.name has no default any more: installations stop shipping kagent's default-model-config, so the old default pointed agents at a model that does not resolve. The values schema requires a non-empty name, and the render fails with a message pointing at the namespace's default model, the ModelConfig labelled agent-platform.giantswarm.io/is-default-model-config=true. The chart looks nothing up. The unit suites, the ct lint cases and the helm-lint/helm-template targets name a model explicitly; the golden snapshot changes to that name on purpose. The ATS releases name the ModelConfig its kagent release renders. BREAKING CHANGE: modelConfig.name is required and has no default (it was default-model-config). Set it to the namespace's default model, the ModelConfig labelled agent-platform.giantswarm.io/is-default-model-config=true, or another ModelConfig in the agent's namespace before upgrading. Closes #124
The namespace's default model is the ModelConfig annotated agent-platform.giantswarm.io/is-default-model-config=true, not labelled. The required message, the values description, the schema, both READMEs and the CHANGELOG name the annotation; the README lookup uses a jsonpath filter on it. BREAKING CHANGE: modelConfig.name is required and has no default (it was default-model-config). Set it to the namespace's default model, the ModelConfig annotated agent-platform.giantswarm.io/is-default-model-config=true, or another ModelConfig in the agent's namespace before upgrading.
check-values-schema validates values.yaml merged with ci/ci-values.yaml; without that file it validates the bare defaults, which the required modelConfig.name now refuses. The default ct lint case moves to that name, so it also feeds the schema check.
The HelmTemplateValidator step renders the chart with helm template; without a values file the required modelConfig.name fails the render. helm-template-extra-values passes the default ct lint case.
Published Helm chart
|
| Chart | agent |
| Version | 2.5.2-ree916135t20261105134702haa4b5db |
| OCI reference | oci://gsoci.azurecr.io/charts/giantswarm/agent:2.5.2-ree916135t20261105134702haa4b5db |
| Digest | sha256:9942ec68bed7a9f0d938844c0800d3933ed42a308d3314eca7fb530b9f64aa43 |
| Registry | public — gsoci.azurecr.io |
| Git catalog | giantswarm-test-catalog (index) |
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/agent --version 2.5.2-ree916135t20261105134702haa4b5dbPosted by architect-orb · build 1639 · commit aa4b5db · updated in place on every push
Helm validates values.schema.json before rendering, so the template's required message never reached a user, and kagent's CRD already rejects an empty name. The template renders the value as is; the schema also enforces the CRD's object-name pattern and length, so an invalid name fails at helm template instead of at apply. The refusal tests pin the schema errors. CHANGELOG and README describe the schema refusal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
modelConfig.namedefaults todefault-model-config, which installations stop shipping (giantswarm/giantswarm-platform-manager#789), so an agent installed with the default points at a model that never resolves.Change
modelConfig.nameis required invalues.schema.json, with the CRD's object-name pattern and length, so Helm refuses a release without a valid name before rendering. The namespace's default model is the ModelConfig annotatedagent-platform.giantswarm.io/is-default-model-config=true; the chart looks nothing up (no lookup, no webhook).ci/ci-values.yaml, which check-values-schema and the app-build-suite render also use),make helm-lint/helm-templateand the ATS releases name a model explicitly; the golden snapshot changes to that name on purpose.BREAKING CHANGEfooter cutsv3.0.0-rc.1on merge. CHANGELOG and README ("Migrating from 2.x") describe the upgrade.Closes #124
Checklist
values.yamlandvalues.schema.jsonare valid.