Skip to content
Merged
Show file tree
Hide file tree
Changes from 63 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
1d7c69b
:seedling: Support upstream providerId format (Step1)
guettli Mar 9, 2026
9045f83
removed comment from step2
guettli Mar 9, 2026
754bb78
Fix workload secret sync scope and stabilize network tests
guettli Mar 9, 2026
fa881ba
Stabilize baremetal providerID controller test
guettli Mar 9, 2026
2b26274
Merge branch 'v1.1.x' into tg/support-provider-id-format-of-upstream-…
guettli Mar 11, 2026
2221309
...
guettli Mar 11, 2026
565e24a
make linter happy.
guettli Mar 11, 2026
4076672
Merge branch 'v1.1.x' into tg/support-provider-id-format-of-upstream-…
guettli Mar 12, 2026
7711985
Merge branch 'v1.1.x' into tg/support-provider-id-format-of-upstream-…
guettli Mar 25, 2026
b1db27f
test/e2e: switch baremetal to upstream ccm
guettli Mar 25, 2026
f52a463
test/e2e: tolerate early node taints in hcloud ccm
guettli Mar 25, 2026
0256ed7
test/e2e: normalize rendered ccm yaml
guettli Mar 25, 2026
4b8e3ce
test/e2e: commit rendered ccm yaml updates
guettli Mar 25, 2026
46d0eb5
fixed docs.
guettli Mar 25, 2026
e64277e
fix typo.
guettli Mar 25, 2026
e2d0dc4
renamed vars.
guettli Mar 26, 2026
d6d700c
moved parts from step2 here.
guettli Mar 26, 2026
5b254b3
Merge branch 'v1.1.x' into tg/support-provider-id-format-of-upstream-…
guettli Mar 26, 2026
dab01e2
Merge branch 'v1.1.x' into tg/support-provider-id-format-of-upstream-…
guettli Mar 30, 2026
ce71208
Merge remote-tracking branch 'origin/v1.1.x' into tg/support-provider…
guettli Mar 31, 2026
e273531
moved const up.
guettli Mar 31, 2026
cc0ec43
simplify baremetal provider ID generation
guettli Mar 31, 2026
9995edf
drop workload secret helper rename from step1
guettli Apr 1, 2026
e7ae474
Merge branch 'v1.1.x' into tg/support-provider-id-format-of-upstream-…
guettli Apr 1, 2026
f8a1f8f
Merge branch 'v1.1.x' into tg/support-provider-id-format-of-upstream-…
guettli Apr 2, 2026
5fcbe30
Merge branch 'v1.1.x' into tg/support-provider-id-format-of-upstream-…
guettli Apr 2, 2026
b593759
Merge branch 'v1.1.x' into tg/support-provider-id-format-of-upstream-…
guettli Apr 2, 2026
77bac89
:seedling: Step 2: support upstream hcloud-ccm secret/key conventions…
guettli Apr 2, 2026
b52d849
revert changes to hetzner robot defaults, too.
guettli Apr 2, 2026
994265f
Merge branch 'v1.1.x' into tg/support-provider-id-format-of-upstream-…
guettli Apr 3, 2026
100c3ea
Merge branch 'tg/support-provider-id-format-of-upstream-ccm-step1' in…
guettli Apr 3, 2026
5e54931
:seedling: fix LastUpdated field description (#1923)
guettli Apr 7, 2026
e4a0f53
:seedling: Set ServerCreateSucceededCondition (#1925)
guettli Apr 7, 2026
2648f61
don't set networking features (hcloud ccm args), when networking=false.
guettli Apr 7, 2026
3ee7ead
fix typo.
guettli Apr 7, 2026
753d380
add hint how files get updated.
guettli Apr 7, 2026
c7c93e1
set HCLOUD_DEBUG.
guettli Apr 7, 2026
b678259
use old name for ccm.
guettli Apr 7, 2026
7b9150d
don't make `make verify-boilerplate` fail.
guettli Apr 7, 2026
cfe1283
Merge remote-tracking branch 'origin/v1.1.x' into tg/support-provider…
guettli Apr 7, 2026
077529e
Merge remote-tracking branch 'origin/tg/support-provider-id-format-of…
guettli Apr 7, 2026
78650ee
updated wording.
guettli Apr 7, 2026
76c492c
use container image from ghcr.io, not docker.
guettli Apr 7, 2026
a778f9d
Adapt workload secret migration keys
guettli Apr 7, 2026
5b80084
...
guettli Apr 7, 2026
1f86185
Use require in workload secret tests
guettli Apr 7, 2026
ce511d1
Keep hcloud compatibility secret lean
guettli Apr 7, 2026
6cea60a
adapted comment.
guettli Apr 7, 2026
67c7153
Merge branch 'tg/support-provider-id-format-of-upstream-ccm-step1' in…
guettli Apr 7, 2026
df86d8d
Merge remote-tracking branch 'origin/v1.1.x' into tg/support-provider…
guettli Apr 8, 2026
3f5c7fe
use our image, because docker.io is known for rate-limiting unauth re…
guettli Apr 8, 2026
c69c6a3
Merge remote-tracking branch 'origin/tg/support-provider-id-format-of…
guettli Apr 8, 2026
2e7f9a3
Merge remote-tracking branch 'origin/v1.1.x' into tg/support-provider…
guettli Apr 8, 2026
2aeee8f
wording.
guettli Apr 8, 2026
50d838e
Add robot secret compatibility keys
guettli Apr 8, 2026
199007b
Explain workloadClusterCompatibilityKeys
guettli Apr 9, 2026
b8cc56b
Remove advisory workload-secret notes
guettli Apr 9, 2026
60e9d47
Clarify new workload-secret tests
guettli Apr 9, 2026
f96f293
comment for workloadClusterCompatibilityKeys
guettli Apr 9, 2026
0cf506d
Revert "Remove advisory workload-secret notes"
guettli Apr 9, 2026
5a82110
Remove workload secret notes
guettli Apr 9, 2026
bb28fe3
Merge branch 'v1.1.x' into tg/support-provider-id-format-of-upstream-…
guettli Apr 9, 2026
1582375
Merge remote-tracking branch 'origin/v1.1.x' into tg/support-provider…
guettli Apr 9, 2026
a158bef
wording.
guettli Apr 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 40 additions & 6 deletions api/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,23 @@ type HCloudPlacementGroupStatus struct {

// HetznerSecretRef defines all the names of the secret and the relevant keys needed to access Hetzner API.
type HetznerSecretRef struct {
// Name defines the name of the secret.
// Name defines the name of the secret. The controller reads the credential from the
// management-cluster secret with this name and creates a workload-cluster secret with the same
// name. The upstream hcloud-ccm helm chart expects the secret name "hcloud", while the Syself
// ccm fork defaults to "hetzner".
//
// To facilitate migrations to the upstream hcloud-ccm, it is ensured that the secret it expects
// is created in the proper way. This means that CAPH ensures that in the secret called "hcloud"
// there is the hcloud token stored under the key "token". This might lead to the same value
// being stored in two different keys of the same secret, depending on the configuration used
// here.
//
// We recommend to use the value "hcloud". Set `spec.skipCreatingHetznerSecretInWorkloadCluster`
// if you don't want workload-cluster secrets to be created.
//
// +kubebuilder:default=hetzner
Name string `json:"name"`

// Key defines the keys that are used in the secret.
// Need to specify either HCloudToken or both HetznerRobotUser and HetznerRobotPassword.
Key HetznerSecretKeyRef `json:"key"`
Expand All @@ -113,18 +127,38 @@ type HetznerSecretRef struct {
// 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.
// +optional
// +kubebuilder:default=hcloud-token
// The controller reads the token from the management-cluster secret using this key and writes
// it to workload-cluster secrets using the same key. Upstream hcloud-ccm expects the key
// "token", while the legacy Syself ccm fork uses "hcloud". The configured workload-cluster
// secret remains untouched. CAPH only adds the compatibility key "token" inside the
// workload-cluster secret named "hcloud", and only if this field is not already "token". If
// the configured secret name is already "hcloud", the same token value is stored under both
// keys in that single secret. We recommend to use "token".
Comment thread
janiskemper marked this conversation as resolved.
Resolved
//
// +optional +kubebuilder:default=hcloud-token
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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't we create two keys here for compatibility?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janiskemper I added a comparison to the PR description. Both CCMS use the same keys for robot-user and robot-password.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only create one secret additionally, if the specified one is NOT the one the hcloud ccm wants.

So we also only need to add another key to the secret that the hcloud ccm wants, right? We don't have to add another key to the secret that is irrelevant to hcloud ccm..

We only do this in the first place to facilitate migrations to the upstream hcloud ccm. Therefore, we can keep it lean and only focus on what that ccm wants, and that's all we need to do

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janiskemper ok, I adapted the PR accordingly.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! I think I now have a clear picture here as well. I think we should revamp the whole comments here that we added in the PR and align it around the following principle:

If the secret name is not according to what hcloud ccm expects, we create another secret with all keys as the hcloud ccm wants. The "main" secret, based on all this configuration, remains untouched. Only in the rare case where the main secret was called hcloud, but different keys where used than the ones the hcloud ccm expects, then one value will be added multiple times within that secret

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janiskemper I added a comparison to the PR description. Both CCMS use the same keys for robot-user and robot-password.

@guettli so that means that both CCMs use the same key, but here in our default we have a different one than that?

In the code I don't see that we hardcode the value that you mention "robot-user". Therefore, this secret would actually be created wrongly if I specify something else with this configuration than "robot-user".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janiskemper I can do that, but I dont think this is needed. In all our templates, and in our commercial offering we use robot-user and `robot-password. Example: hcloud-hetznerCluster.yaml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, but we should still fix the code, because we cannot rely on people just using the templates, right? Currently, our code is wrong and we need to fix it by using the right configuration

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guettli then this is left before I review again (but I think we are almost there)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janiskemper done in 50d838e . The hcloud compatibility secret now also writes robot-user / robot-password aliases when the configured robot keys differ.

// stored. It gets used for reading the credential in the mgt-cluster, and it gets used for
// creating a secret in the wl-cluster. We recommend to use "robot-user", because this is the
// default of upstream hcloud-ccm.
//
// +optional
// +kubebuilder:default=hetzner-robot-user
HetznerRobotUser string `json:"hetznerRobotUser"`
// HetznerRobotPassword defines the name of the key where the password for the Hetzner Robot API is stored.

// HetznerRobotPassword defines the name of the key where the password for the Hetzner Robot API
// is stored. It gets used for reading the credential in the mgt-cluster, and it gets used for
// creating a secret in the wl-cluster. We recommend to use "robot-password", because this is
// the default of upstream hcloud-ccm.
//
// +optional
// +kubebuilder:default=hetzner-robot-password
HetznerRobotPassword string `json:"hetznerRobotPassword"`
// SSHKey defines the name of the ssh key.

// SSHKey defines the name of the ssh key. It is only used in the mgt-cluster. It is not synced
// to the wl-cluster.
//
// +optional
// +kubebuilder:default=hcloud-ssh-key-name
SSHKey string `json:"sshKey"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,28 +246,57 @@ spec:
Need to specify either HCloudToken or both HetznerRobotUser and HetznerRobotPassword.
properties:
hcloudToken:
default: hcloud-token
description: HCloudToken defines the name of the key where
the token for the Hetzner Cloud API is stored.
description: |-
HCloudToken defines the name of the key where the token for the Hetzner Cloud API is stored.
The controller reads the token from the management-cluster secret using this key and writes
it to workload-cluster secrets using the same key. Upstream hcloud-ccm expects the key
"token", while the legacy Syself ccm fork uses "hcloud". The configured workload-cluster
secret remains untouched. CAPH only adds the compatibility key "token" inside the
workload-cluster secret named "hcloud", and only if this field is not already "token". If
the configured secret name is already "hcloud", the same token value is stored under both
keys in that single secret. We recommend to use "token".
type: string
hetznerRobotPassword:
default: hetzner-robot-password
description: HetznerRobotPassword defines the name of the
key where the password for the Hetzner Robot API is stored.
description: |-
HetznerRobotPassword defines the name of the key where the password for the Hetzner Robot API
is stored. It gets used for reading the credential in the mgt-cluster, and it gets used for
creating a secret in the wl-cluster. We recommend to use "robot-password", because this is
the default of upstream hcloud-ccm.
type: string
hetznerRobotUser:
default: hetzner-robot-user
description: HetznerRobotUser defines the name of the key
where the username for the Hetzner Robot API is stored.
description: |-
HetznerRobotUser defines the name of the key where the username for the Hetzner Robot API is
stored. It gets used for reading the credential in the mgt-cluster, and it gets used for
creating a secret in the wl-cluster. We recommend to use "robot-user", because this is the
default of upstream hcloud-ccm.
type: string
sshKey:
default: hcloud-ssh-key-name
description: SSHKey defines the name of the ssh key.
description: |-
SSHKey defines the name of the ssh key. It is only used in the mgt-cluster. It is not synced
to the wl-cluster.
type: string
required:
- hcloudToken
type: object
name:
default: hetzner
description: Name defines the name of the secret.
description: |-
Name defines the name of the secret. The controller reads the credential from the
management-cluster secret with this name and creates a workload-cluster secret with the same
name. The upstream hcloud-ccm helm chart expects the secret name "hcloud", while the Syself
ccm fork defaults to "hetzner".

To facilitate migrations to the upstream hcloud-ccm, it is ensured that the secret it expects
is created in the proper way. This means that CAPH ensures that in the secret called "hcloud"
there is the hcloud token stored under the key "token". This might lead to the same value
being stored in two different keys of the same secret, depending on the configuration used
here.

We recommend to use the value "hcloud". Set `spec.skipCreatingHetznerSecretInWorkloadCluster`
if you don't want workload-cluster secrets to be created.
type: string
required:
- key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,30 +275,57 @@ spec:
Need to specify either HCloudToken or both HetznerRobotUser and HetznerRobotPassword.
properties:
hcloudToken:
default: hcloud-token
description: HCloudToken defines the name of the key
where the token for the Hetzner Cloud API is stored.
description: |-
HCloudToken defines the name of the key where the token for the Hetzner Cloud API is stored.
The controller reads the token from the management-cluster secret using this key and writes
it to workload-cluster secrets using the same key. Upstream hcloud-ccm expects the key
"token", while the legacy Syself ccm fork uses "hcloud". The configured workload-cluster
secret remains untouched. CAPH only adds the compatibility key "token" inside the
workload-cluster secret named "hcloud", and only if this field is not already "token". If
the configured secret name is already "hcloud", the same token value is stored under both
keys in that single secret. We recommend to use "token".
type: string
hetznerRobotPassword:
default: hetzner-robot-password
description: HetznerRobotPassword defines the name
of the key where the password for the Hetzner Robot
API is stored.
description: |-
HetznerRobotPassword defines the name of the key where the password for the Hetzner Robot API
is stored. It gets used for reading the credential in the mgt-cluster, and it gets used for
creating a secret in the wl-cluster. We recommend to use "robot-password", because this is
the default of upstream hcloud-ccm.
type: string
hetznerRobotUser:
default: hetzner-robot-user
description: HetznerRobotUser defines the name of
the key where the username for the Hetzner Robot
API is stored.
description: |-
HetznerRobotUser defines the name of the key where the username for the Hetzner Robot API is
stored. It gets used for reading the credential in the mgt-cluster, and it gets used for
creating a secret in the wl-cluster. We recommend to use "robot-user", because this is the
default of upstream hcloud-ccm.
type: string
sshKey:
default: hcloud-ssh-key-name
description: SSHKey defines the name of the ssh key.
description: |-
SSHKey defines the name of the ssh key. It is only used in the mgt-cluster. It is not synced
to the wl-cluster.
type: string
required:
- hcloudToken
type: object
name:
default: hetzner
description: Name defines the name of the secret.
description: |-
Name defines the name of the secret. The controller reads the credential from the
management-cluster secret with this name and creates a workload-cluster secret with the same
name. The upstream hcloud-ccm helm chart expects the secret name "hcloud", while the Syself
ccm fork defaults to "hetzner".

To facilitate migrations to the upstream hcloud-ccm, it is ensured that the secret it expects
is created in the proper way. This means that CAPH ensures that in the secret called "hcloud"
there is the hcloud token stored under the key "token". This might lead to the same value
being stored in two different keys of the same secret, depending on the configuration used
here.

We recommend to use the value "hcloud". Set `spec.skipCreatingHetznerSecretInWorkloadCluster`
if you don't want workload-cluster secrets to be created.
type: string
required:
- key
Expand Down
70 changes: 60 additions & 10 deletions controllers/hetznercluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,11 @@ func hcloudTokenErrorResult(
return res, nil
}

// reconcileWorkloadClusterSecrets ensures that the workload-cluster has the secret needed by the
// ccm. The name of the secret is read from HetznerCluster.Spec.HetznerSecret.Name. Creating the
// secret gets skipped, if HetznerCluster.Spec.SkipCreatingHetznerSecretInWorkloadCluster is set.
// reconcileWorkloadClusterSecrets syncs Hetzner credentials from the management cluster into
// workload-cluster secrets for CCM consumption. It creates the secret named in
Comment thread
Dhairya-Arora01 marked this conversation as resolved.
Resolved
// HetznerCluster.Spec.HetznerSecret.Name and, unless that name is already "hcloud", also creates a
// second secret named "hcloud" for upstream hcloud-ccm compatibility. Secret creation is skipped
// if HetznerCluster.Spec.SkipCreatingHetznerSecretInWorkloadCluster is set.
func reconcileWorkloadClusterSecrets(ctx context.Context, clusterScope *scope.ClusterScope) (res reconcile.Result, reterr error) {
if clusterScope.HetznerCluster.Spec.SkipCreatingHetznerSecretInWorkloadCluster {
// If the secret should not be created in the workload cluster, we just return.
Expand Down Expand Up @@ -531,15 +533,57 @@ func reconcileWorkloadClusterSecrets(ctx context.Context, clusterScope *scope.Cl
return reconcile.Result{}, fmt.Errorf("failed to get client: %w", err)
}

if err := reconcileAllWorkloadClusterSecrets(ctx, clusterScope, wlClient); err != nil {
return reconcile.Result{}, err
}
return reconcile.Result{}, nil
}

func workloadClusterSecretNames(secretName string) []string {
names := []string{secretName}
if secretName != "hcloud" {
names = append(names, "hcloud")
}
return names
}

// workloadClusterCompatibilityKeys returns the configured key for every secret.
// When reconciling the secret named "hcloud", it also returns the compatibility
// key unless it matches the configured key.
func workloadClusterCompatibilityKeys(secretName, configuredKey, compatibilityKey string) []string {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz explain this function in a comment. It's not trivial at all.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janiskemper I simplified the function and added a comment.

if secretName != "hcloud" {
// Only the secret named "hcloud" gets the compatibility key.
return []string{configuredKey}
}

if configuredKey == compatibilityKey {
// Avoid duplicating the key when it already matches the compatibility key.
return []string{configuredKey}
}

// The compatibility secret exposes both the configured key and the compatibility key.
return []string{configuredKey, compatibilityKey}
}

func reconcileAllWorkloadClusterSecrets(ctx context.Context, clusterScope *scope.ClusterScope, wlClient client.Client) error {
for _, name := range workloadClusterSecretNames(clusterScope.HetznerCluster.Spec.HetznerSecret.Name) {
if err := reconcileOneWorkloadClusterSecret(ctx, clusterScope, wlClient, name); err != nil {
return fmt.Errorf("failed to reconcile wl-cluster secret %q: %w", name, err)
}
}
return nil
}

func reconcileOneWorkloadClusterSecret(ctx context.Context, clusterScope *scope.ClusterScope, wlClient client.Client, name string) error {
wlSecret := &corev1.Secret{
ObjectMeta: metav1.ObjectMeta{
Name: clusterScope.HetznerCluster.Spec.HetznerSecret.Name,
Name: name,
Namespace: metav1.NamespaceSystem,
},
}

// Make sure secret exists and has the expected values
_, err = controllerutil.CreateOrUpdate(ctx, wlClient, wlSecret, func() error {
_, err := controllerutil.CreateOrUpdate(ctx, wlClient, wlSecret, func() error {
mgtSecretName := types.NamespacedName{
Namespace: clusterScope.HetznerCluster.Namespace,
Name: clusterScope.HetznerCluster.Spec.HetznerSecret.Name,
Expand All @@ -562,14 +606,20 @@ func reconcileWorkloadClusterSecrets(ctx context.Context, clusterScope *scope.Cl
wlSecret.Data = make(map[string][]byte)
}

wlSecret.Data[clusterScope.HetznerCluster.Spec.HetznerSecret.Key.HCloudToken] = hcloudToken
for _, key := range workloadClusterCompatibilityKeys(name, clusterScope.HetznerCluster.Spec.HetznerSecret.Key.HCloudToken, "token") {
wlSecret.Data[key] = hcloudToken
}

// Save robot credentials if available
if clusterScope.HetznerCluster.Spec.HetznerSecret.Key.HetznerRobotUser != "" {
robotUserName := mgtSecret.Data[clusterScope.HetznerCluster.Spec.HetznerSecret.Key.HetznerRobotUser]
wlSecret.Data[clusterScope.HetznerCluster.Spec.HetznerSecret.Key.HetznerRobotUser] = robotUserName
for _, key := range workloadClusterCompatibilityKeys(name, clusterScope.HetznerCluster.Spec.HetznerSecret.Key.HetznerRobotUser, "robot-user") {
wlSecret.Data[key] = robotUserName
}
robotPassword := mgtSecret.Data[clusterScope.HetznerCluster.Spec.HetznerSecret.Key.HetznerRobotPassword]
wlSecret.Data[clusterScope.HetznerCluster.Spec.HetznerSecret.Key.HetznerRobotPassword] = robotPassword
for _, key := range workloadClusterCompatibilityKeys(name, clusterScope.HetznerCluster.Spec.HetznerSecret.Key.HetznerRobotPassword, "robot-password") {
wlSecret.Data[key] = robotPassword
}
}

// Save network ID in secret
Expand All @@ -583,10 +633,10 @@ func reconcileWorkloadClusterSecrets(ctx context.Context, clusterScope *scope.Cl
return nil
})
if err != nil {
return reconcile.Result{}, fmt.Errorf("failed to create or update secret: %w", err)
return fmt.Errorf("failed to create or update secret: %w", err)
}

return reconcile.Result{}, nil
return nil
}

func (r *HetznerClusterReconciler) reconcileTargetClusterManager(ctx context.Context, clusterScope *scope.ClusterScope) (res reconcile.Result, err error) {
Expand Down
Loading
Loading