Repository navigation
Conversation
Co-authored-by: guettli <414336+guettli@users.noreply.github.com>
…format-of-upstream-ccm
| // Need to specify either HCloudToken or both HetznerRobotUser and HetznerRobotPassword. | ||
| type HetznerSecretKeyRef struct { | ||
| // HCloudToken defines the name of the key where the token for the Hetzner Cloud API is stored. | ||
| // We recommend to use "token", because this is the default of upstream hcloud-ccm, while the |
| type HetznerSecretKeyRef struct { | ||
| // HCloudToken defines the name of the key where the token for the Hetzner Cloud API is stored. | ||
| // We recommend to use "token", because this is the default of upstream hcloud-ccm, while the | ||
| // legacy Syself ccm fork uses "hcloud". For maximal compatibility up to three keys get created in the |
There was a problem hiding this comment.
the current Syself CCM does NOT use the default that we set here?! I would expect this to be the case. If it is, I would leave the default and only create the one the upstream CCM expects.
There was a problem hiding this comment.
@janiskemper yes, strange but true. The ccm itself (Go code) does not read K8s secret. It is up to the deployment to either set env-vars or a file. They key our ccm uses is "hcloud".
| HCloudToken string `json:"hcloudToken"` | ||
| // HetznerRobotUser defines the name of the key where the username for the Hetzner Robot API is stored. | ||
|
|
||
| // HetznerRobotUser defines the name of the key where the username for the Hetzner Robot API is |
There was a problem hiding this comment.
This is our API and if people use the default, then this would be unnecessarily breaking. I would leave the default
…-upstream-ccm-step1' into tg/support-provider-id-format-of-upstream-ccm
|
@guettli this PR is huge. I think it takes a long time to even find the comments. Do you just wanna close this and create a new one? Maybe with fewer commits? Please incorporate my comments though. |
This reverts commit 9995edf.
…lper-rename' into tg/support-provider-id-format-of-upstream-ccm
…-upstream-ccm-step1' into tg/support-provider-id-format-of-upstream-ccm
…-upstream-ccm-step1' into tg/support-provider-id-format-of-upstream-ccm
…to tg/support-provider-id-format-of-upstream-ccm
New PR:
🌱 Step 2: support upstream hcloud-ccm secret/key conventions (II) by guettli · Pull Request #1920 · syself/cluster-api-provider-hetzner
Old:
Previous PR: 🌱 Support upstream providerId format (Step1) #1850
Next PR: 🌱 Set v1.1.x to main branch, and release. #1781
This PR is step 2 of the work to support the upstream hcloud CCM for bare-metal clusters.
The core ProviderID migration work was moved to #1850. The refactor-only helper rename now lives in #1914.
This PR contains the follow-up changes that make the upstream CCM easier to use in practice.
Changes
tokenandhcloud, in addition to the configured key, so both CCM variants can read itspec.hetznerSecret.nameis nothcloud, create an additional workload-cluster secret namedhcloudfor upstream compatibilityhcloud, token keytoken, and Robot keysrobot-user/robot-passwordnoteentry to the workload-cluster secret to make it obvious that CAPH reconciles it