Skip to content

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

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

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

Conversation

@benedictebn
Copy link
Copy Markdown

@benedictebn benedictebn commented Feb 23, 2026

Closes #79

Summary

  • Add full CRUD commands for image pull secrets (pull-secret list/get/create/delete)
  • Add pull-secret registry add/remove subcommands to manage registries on an existing secret (mirrors team member add/remove pattern)
  • 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 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
  • golangci-lint run no issues
  • Manual test: indev pull-secret create -n test-secret --address ghcr.io --username user --password pass
  • Manual test: indev pull-secret list
  • Manual test: indev pull-secret get test-secret
  • Manual test: indev pull-secret registry add --pull-secret test-secret --address docker.io --username user --password pass
  • Manual test: indev pull-secret registry remove --pull-secret test-secret --address docker.io
  • 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
Copy Markdown
Contributor

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 benedictebn force-pushed the feat/pull-secret-support branch from 32d6be3 to 0d2e5da Compare February 24, 2026 11:08
benedictebn and others added 3 commits March 19, 2026 15:12
…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 <[email protected]>
- 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 <[email protected]>
The Password field is a credential payload sent to the API, not a
hardcoded secret.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@benedictebn benedictebn force-pushed the feat/pull-secret-support branch from 0d2e5da to 5145cf9 Compare March 20, 2026 09:42
benedictebn and others added 2 commits March 31, 2026 12:57
…mands

Remove interactive wizard from create/edit commands and introduce a
hierarchical `registry` subcommand group (add/remove) mirroring the
teams member management pattern.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@benedictebn benedictebn requested a review from M99 April 1, 2026 11:50
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.

Add pull secret management

2 participants