Skip to content

feat: require modelConfig.name - #125

Merged
QuentinBisson merged 5 commits into
mainfrom
feat/require-model-config
Nov 5, 2026
Merged

QuentinBisson merged 5 commits into
mainfrom
feat/require-model-config

Conversation

@QuentinBisson

@QuentinBisson QuentinBisson commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Problem

modelConfig.name defaults to default-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.name is required in values.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 annotated agent-platform.giantswarm.io/is-default-model-config=true; the chart looks nothing up (no lookup, no webhook).
  • Unit suites, ct lint cases (the default one is now ci/ci-values.yaml, which check-values-schema and the app-build-suite render also use), make helm-lint/helm-template and the ATS releases name a model explicitly; the golden snapshot changes to that name on purpose.
  • The BREAKING CHANGE footer cuts v3.0.0-rc.1 on merge. CHANGELOG and README ("Migrating from 2.x") describe the upgrade.

Closes #124

Checklist

  • Update changelog in CHANGELOG.md.
  • Make sure values.yaml and values.schema.json are valid.

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.
@circleci-architect

circleci-architect Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Published Helm chart agent

2.5.2-ree916135t20261105134702haa4b5db
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-ree916135t20261105134702haa4b5db

Posted 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.
@QuentinBisson
QuentinBisson marked this pull request as ready for review November 5, 2026 13:56
@QuentinBisson
QuentinBisson requested a review from a team as a code owner November 5, 2026 13:56
@QuentinBisson
QuentinBisson merged commit e32ad99 into main Nov 5, 2026
14 checks passed
@QuentinBisson
QuentinBisson deleted the feat/require-model-config branch November 5, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent chart 3.0.0: require modelConfig.name

1 participant