Skip to content

docs(examples): add vm-deploy bundle, fix creds key, ignore generated dir#65

Merged
patrick-hermann-sva merged 1 commit into
mainfrom
docs/vspherevm-examples-cleanup
Jun 13, 2026
Merged

docs(examples): add vm-deploy bundle, fix creds key, ignore generated dir#65
patrick-hermann-sva merged 1 commit into
mainfrom
docs/vspherevm-examples-cleanup

Conversation

@patrick-hermann-sva

Copy link
Copy Markdown
Contributor

What

  • Add examples/cluster/vm-deploy/ — a sanitized, end-to-end cluster-scoped deploy example (Secret template → ProviderConfig → VirtualMachine + README). Uses only opaque MOIDs/UUIDs; no environment-identifying data (lab names, hostnames, IPs, usernames).
  • Fix credentials Secret templates (cluster + namespaced providerconfig) to use key user, not username. internal/clients/vsphere.go reads creds["user"]; the wrong key passed an empty user, so vCenter rejected logins with the misleading ServerFaultCode: Cannot complete login due to an incorrect user name or password.
  • Remove examples/cluster/virtualmachine/movie-scripts2.yaml — filename/resource-name mismatch (movie-scripts2 vs movie-scripts5), env-specific scratch VM, redundant with virtualmachine.yaml.
  • gitignore /examples-generated/ — it is wiped + regenerated by go generate (apis/generate.go), so it should never be hand-edited or tracked.

Why

Anyone copying the shipped example Secret hit a dead-end auth failure because of the username key. This was the exact root cause of a real deploy getting stuck SYNCED=False for hours.

🤖 Generated with Claude Code

… dir

- Add examples/cluster/vm-deploy/ (Secret tmpl + ProviderConfig + VirtualMachine + README): a sanitized, end-to-end cluster-scoped deploy example (opaque MOIDs only, no env-identifying data).
- Fix credentials Secret templates to use key "user" (NOT "username"); internal/clients/vsphere.go reads creds["user"], and a wrong key sends an empty user, making vCenter reject the login with a misleading "incorrect user name or password".
- Remove examples/cluster/virtualmachine/movie-scripts2.yaml (filename/resource-name mismatch + env-specific scratch VM, redundant with virtualmachine.yaml).
- gitignore /examples-generated/ (wiped + regenerated by go generate).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@patrick-hermann-sva patrick-hermann-sva merged commit d91ae19 into main Jun 13, 2026
2 checks passed
@patrick-hermann-sva patrick-hermann-sva deleted the docs/vspherevm-examples-cleanup branch June 13, 2026 20: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.

1 participant