Repository navigation
fix(agent-platform): restart the skill-manager on a rotation of muster's credentials - #929
Merged
Merged
Conversation
…r's credentials From agent-platform 4.179.0 the meta chart runs the skill-manager beside the agent-manager. Its pods read the platform client's secret from muster's credentials Secret once, at start, but musterConsumers did not list it, so a rotation left it on the old value until a hand-run restart. The skill-manager is now a consumer where the meta chart runs it: the agent-manager runs, on the 4 line, with no versions.chart hold below 4.179.0-rc.9. Its HelmRelease reads the revision onto a pod annotation, and the runtime feature probes Deployment skill-manager Available. migrations.yaml plans the new key (M44). render-consumption pins agent-platform and connectivity 4.179.1, agent-platform-operator 0.3.1 and skill-manager 0.1.5, and renders two new shapes with skillManager.sources, skillManager.github.app.secretName and defaultAgent (off, or on a named ModelConfig). Closes #916 Signed-off-by: Jose Armesto <github@armesto.net>
… consumers are listed; pin agent-platform 4.179.2 The live-platform-workloads dimension and the README name the skill-manager among the workloads that read muster's credentials. A test case pins the gate at a hold on 4.179.0-rc.8, the candidate before the skill-manager. render-consumption renders agent-platform and connectivity 4.179.2, the newest stable release. Signed-off-by: Jose Armesto <github@armesto.net>
Published Helm chart
|
| Chart | giantswarm-platform-manager |
| Version | 0.87.1-rb8027951t20261112141529hd729650 |
| OCI reference | oci://gsoci.azurecr.io/charts/giantswarm/giantswarm-platform-manager:0.87.1-rb8027951t20261112141529hd729650 |
| Digest | sha256:3a483967f48b270ed9790e1e1e5d24e4198ef52b67195c2887e5405308ab7840 |
| Registry | public — gsoci.azurecr.io |
| Git catalog | giantswarm-test-catalog (index) |
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/giantswarm-platform-manager --version 0.87.1-rb8027951t20261112141529hd729650Posted by architect-orb · build 39782 · commit d729650 · updated in place on every push
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.
Closes #916
Problem
From agent-platform 4.179.0, the meta chart runs the skill-manager beside the agent-manager. The skill-manager's pods read the platform client's secret from muster's credentials Secret (
muster-oauth-credentials, throughglobal.identity.existingSecret) once, at start.musterConsumersdid not list it. A rotation of muster's credentials therefore restarted every other reader, but not the skill-manager, and it stayed on the old secret until someone restarted it by hand.render-consumption still pinned agent-platform 4.178.0, so CI never rendered the skill-manager or the inputs of #821 against a chart that has them.
Change
musterConsumers(render/agentplatform/render.go) lists the skill-manager, as it lists the agent-, cluster- and model-manager. The skill-manager's HelmRelease reads the credentials revision ontopodAnnotations.muster-credentials-revision, and the runtime feature probes Deploymentskill-managerAvailable inagent-platform.(*Input).skillManager): the agent-manager runs, on the 4 line, with noversions.charthold below4.179.0-rc.9(reachesSkillManagerChart, the gate of the feat(agent-platform): default agent and skill-manager inputs #821 inputs). An installation on the 3 line, without the agent-manager, or with a hold below rc.9 gets neither the wiring nor the probe.migrations.yaml(M44) plans the new key, andfeatures.yamlnames it. The next dry run therefore shows the key as a planned addition, not as drift.>=0.3.0 <0.4.0);skillManager.sources(a URL, and an object with ref, path and readOnly) andskillManager.github.app.secretName:skill-manager-default-agent-offalso setsdefaultAgent.enabled: false;skill-manager-default-agent-modelalso setsdefaultAgent.modelConfig.What the next reconcile changes on an installation that sets none of the new inputs
On every 4-line installation with the agent-manager and no
versions.charthold below 4.179.0-rc.9 (gazelle today), the next dry run shows one change, ininstallations/<name>/apps/agent-platform/configmap-values.yaml.patch. It is planned with reason M44:Nothing else in the values file changes. No Secret changes, and no other file changes. The probe list gains
Deployment agent-platform/skill-manager Availableunderlive-platform-workloads. When Flux applies the change, the skill-manager's pod template gets the annotation, so the skill-manager restarts once.Installations on the 3 line, without the agent-manager, or with a hold below rc.9 render exactly what they rendered before.
Tests
TestSkillManagerReadsMusterCredentialschecks the wiring and the probe in seven cases: no hold, a hold on~4.179.0, on4.179.0-rc.9, on4.179.0-rc.8, on~4.178.0, on~4.174.0, and no agent-manager.TestMusterCredentialsRevisionandTestGoldenpass over all shapes. 13 existing goldens changed. In each, the only change is the 6-linecomponents.skill-manager.valuesFromRefsblock and the 9-line probe; nothing else changed. The platformctl hub-join golden changed only in the text of thelive-platform-workloadsdimension.make test-render-consumptionpasses at agent-platform 4.179.2, the new shapes included. ItsassertMusterConsumersfails on any workload that reads muster's credentials and is not a listed consumer, so the pass also shows that no other 4.179 component (default agent included) is missing.go test ./...,make scenario-test,golangci-lint run ./...and the pre-commit hooks.Review
live-platform-workloadsdimension text infeatures.yamldid not name the skill-manager4.179.0-rc.8, the candidate just below the floorrender.gowas not wrapped