Repository navigation
bootstrap: optional Harbor registry mirror for new devices - #37
Merged
Merged
Conversation
…robots TemplateData gets RegistryMirror, RegistryUsername and RegistryPassword. The new partial registries.sh.tmpl, included in server.sh.tmpl and agent.sh.tmpl before the k3s installer, writes /etc/rancher/k3s/registries.yaml (0600, marker '# managed by tnctl bootstrap') with the six mirrors and the auth. It does nothing without a mirror, keeps a foreign file with a warning, and removes a managed one for 'none'. The credential is validated for the single-quoted shell context and never printed. tnctl bootstrap: --registry-mirror HOST|none and --registry-credential-file FILE. The default comes from an optional registry field of the device credentials response (phase 1b, ignored when absent). Golden files regenerated; docs/commands/bootstrap.md. Design: plans/harbor-proxy-staging.md Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…tries.yaml A device configured by playbooks/registry-mirror.yml (# managed by teknoir) and later re-bootstrapped with --registry-mirror kept the old file with a possibly stale credential and only got a warning; --registry-mirror none did not remove it. Either marker is ours now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the Harbor robot password Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Anders, 2026-10-22: "Set up harbor to serve all images, use proxy?" Plan: plans/harbor-proxy-staging.md.
tnctl bootstraphas optional registry-mirror flags. The template writesregistries.yamlwith Harbor mirrors and an upstream fallback.Tests:
go test ./cmd/... ./pkg/api/...and(cd pkg/templates && go test ./...)pass.🤖 Generated with Claude Code