Skip to content

feat(pull-secret): add pull secret management commands#80

Open
benedictebn wants to merge 3 commits intomainfrom
feat/pull-secret-support
Open

feat(pull-secret): add pull secret management commands#80
benedictebn wants to merge 3 commits intomainfrom
feat/pull-secret-support

Conversation

@benedictebn
Copy link

Summary

  • Add full CRUD commands for image pull secrets (pull-secret list/get/create/edit/delete)
  • Add cluster pull-secret set command to assign a pull secret to a cluster
  • Integrate pull secret selection into the cluster create wizard and --pull-secret flag
  • Display assigned pull secret in cluster get output
  • Add PullSecretClient interface and 6 REST methods to the platform client
  • Add ImagePullSecret field to the Cluster struct

Test plan

  • go build ./... compiles successfully
  • go test ./... all tests pass
  • go vet ./... no issues
  • Manual test: indev pull-secret list
  • Manual test: indev pull-secret create -n test-secret (wizard flow)
  • Manual test: indev pull-secret get test-secret
  • Manual test: indev pull-secret edit test-secret --add-registry addr,user,pass
  • Manual test: indev pull-secret delete test-secret
  • Manual test: indev cluster pull-secret set <cluster> <secret>
  • Manual test: indev cluster create --pull-secret <secret>
  • Manual test: indev cluster get <name> shows pull secret when assigned

🤖 Generated with Claude Code

@Callum0x50
Copy link
Member

Har patchet prosjektet siden du la inn denne. Trenger nok en rebase. La oss ta en runde og se over de nye kommandoene først vi merger. Si ifra når det er klart.

benedictebn and others added 3 commits February 24, 2026 12:05
…tegration

Add full CRUD support for image pull secrets (list, get, create, edit, delete),
a cluster pull-secret set command, pull secret selection in the cluster create
wizard, and pull secret display in cluster get output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix line length by extracting endpoint variables
- Fix cyclomatic complexity by extracting resolvePullSecretRef
- Fix function length by extracting wizard helpers into wizard.go
- Fix argument limit by using editOptions struct
- Add yaml struct tags to PullSecret for musttag
- Wrap FindPullSecretByName error for wrapcheck
- Preallocate psOptions slice

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The Password field is a credential payload sent to the API, not a
hardcoded secret.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@benedictebn benedictebn force-pushed the feat/pull-secret-support branch from 32d6be3 to 0d2e5da Compare February 24, 2026 11:08
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.

2 participants