Skip to content

Commit 0e33e64

Browse files
committed
removed usage of our ccm fork.
Untested. First #1772 (Go Updates), then #1771 (Tooling Updates), then this PR.
1 parent 8a503bd commit 0e33e64

17 files changed

Lines changed: 147 additions & 428 deletions

File tree

.github/actions/e2e/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ runs:
7878
HETZNER_SSH_PUB: ${{ inputs.e2e_ssh_pub }}
7979
HETZNER_SSH_PRIV: ${{ inputs.e2e_ssh_priv }}
8080
SKIP_IMAGE_BUILD: "1"
81-
CAPH_LATEST_VERSION: "v1.0.1"
81+
CAPH_LATEST_VERSION: "v1.0.1" # Looks outdated.
8282
run: make ${{ inputs.e2e_make_target }}
8383

8484
- name: Upload artifact

docs/caph/02-topics/05-baremetal/03-creating-workload-cluster.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,12 @@ If you have configured your secret correctly in the previous step then you alrea
7575
Let's deploy the hetzner CCM helm chart.
7676

7777
```shell
78-
helm repo add syself https://charts.syself.com
79-
helm repo update syself
80-
81-
$ helm upgrade --install ccm syself/ccm-hetzner --version 2.0.1 \
82-
--namespace kube-system \
83-
--kubeconfig workload-kubeconfig
84-
Release "ccm" does not exist. Installing it now.
85-
NAME: ccm
86-
LAST DEPLOYED: Thu Apr 4 21:09:25 2024
87-
NAMESPACE: kube-system
88-
STATUS: deployed
89-
REVISION: 1
90-
TEST SUITE: None
78+
helm repo add hcloud https://charts.hetzner.cloud
79+
helm repo update hcloud
80+
81+
helm upgrade --install ccm \
82+
--namespace kube-system \
83+
--kubeconfig workload-kubeconfig
9184
```
9285

9386
### Installing CNI

test/e2e/Makefile

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,17 @@ e2e-cilium-templates:
6767
sed -i '1s/^/# Created by `make e2e-cilium-templates`\n/' $(REPO_ROOT)/test/e2e/data/cni/cilium/cilium.yaml
6868

6969
e2e-ccm-templates:
70-
helm repo add syself https://charts.syself.com
70+
helm repo add hcloud https://charts.hetzner.cloud
71+
helm repo update hcloud
7172

72-
helm template ccm syself/ccm-hcloud --version 1.0.11 \
73-
--namespace kube-system \
74-
--set pdb.enabled=false \
75-
--set secret.name=hetzner \
76-
--set secret.tokenKeyName=hcloud \
77-
--set privateNetwork.enabled=false > $(REPO_ROOT)/test/e2e/data/ccm/hcloud-ccm.yaml
73+
echo "# Autogenerated by 'make e2e-ccm-templates'" \
74+
> $(REPO_ROOT)/test/e2e/data/ccm/ccm.yaml
7875

79-
helm template ccm syself/ccm-hcloud --version 1.0.11 \
80-
--namespace kube-system \
81-
--set pdb.enabled=false \
82-
--set secret.name=hetzner \
83-
--set secret.tokenKeyName=hcloud \
84-
--set privateNetwork.enabled=true > $(REPO_ROOT)/test/e2e/data/ccm/hcloud-ccm-network.yaml
76+
helm template hccm hcloud/hcloud-cloud-controller-manager \
77+
--version v1.29.1 \
78+
--namespace kube-system \
79+
>> $(REPO_ROOT)/test/e2e/data/ccm/ccm.yaml
8580

86-
helm template ccm syself/ccm-hetzner --version 2.0.1 \
87-
--namespace kube-system \
88-
--set pdb.enabled=false \
89-
--set privateNetwork.enabled=false > $(REPO_ROOT)/test/e2e/data/ccm/hcloud-ccm-hetzner.yaml
9081

9182
.PHONY: cluster-templates
9283
cluster-templates: $(KUSTOMIZE) cluster-templates-v1beta1 ## Generate cluster templates for all versions

test/e2e/cluster-templates-v1beta1.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ kustomize build "$HETZNER_TEMPLATES"/v1beta1/cluster-template-hcloud-feature-loa
5757

5858
kustomize build "$HETZNER_TEMPLATES"/v1beta1/cluster-template-hcloud-feature-placement-groups --load-restrictor LoadRestrictionsNone >"$HETZNER_TEMPLATES"/v1beta1/cluster-template-hcloud-feature-placement-groups.yaml
5959

60-
kustomize build "$HETZNER_TEMPLATES"/v1beta1/cluster-template-network --load-restrictor LoadRestrictionsNone >"$HETZNER_TEMPLATES"/v1beta1/cluster-template-network.yaml
61-
6260
kustomize build "$HETZNER_TEMPLATES"/v1beta1/cluster-template-kcp-remediation --load-restrictor LoadRestrictionsNone >"$HETZNER_TEMPLATES"/v1beta1/cluster-template-kcp-remediation.yaml
6361

6462
kustomize build "$HETZNER_TEMPLATES"/v1beta1/cluster-template-md-remediation --load-restrictor LoadRestrictionsNone >"$HETZNER_TEMPLATES"/v1beta1/cluster-template-md-remediation.yaml

test/e2e/common.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,8 @@ const (
4444
// Currently (in this context) "hetzner" means the syself-ccm,
4545
// and "hcloud" means the hcloud ccm (which now supports bare-metal, too)
4646
// Nevertheless, the hcloud/hetzner ccm is not supported.
47-
CCMPath = "CCM"
48-
CCMResources = "CCM_RESOURCES"
49-
CCMNetworkPath = "CCM_NETWORK"
50-
CCMNetworkResources = "CCM_RESOURCES_NETWORK"
51-
CCMHetznerPath = "CCM_HETZNER"
52-
CCMHetznerResources = "CCM_RESOURCES_HETZNER"
47+
CCMPath = "CCM"
48+
CCMResources = "CCM_RESOURCES"
5349
)
5450

5551
// Byf implements Ginkgo's By with fmt.Sprintf.

test/e2e/config/hetzner.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ providers:
7676
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-hcloud-feature-load-balancer-extra-services.yaml"
7777
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-hcloud-feature-placement-groups.yaml"
7878
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-hcloud-feature-loadbalancer-off.yaml"
79-
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-network.yaml"
8079
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-node-drain.yaml"
8180
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-md-remediation.yaml"
8281
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-kcp-remediation.yaml"
@@ -100,7 +99,6 @@ providers:
10099
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-hcloud-feature-load-balancer-extra-services.yaml"
101100
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-hcloud-feature-placement-groups.yaml"
102101
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-hcloud-feature-loadbalancer-off.yaml"
103-
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-network.yaml"
104102
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-node-drain.yaml"
105103
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-md-remediation.yaml"
106104
- sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-kcp-remediation.yaml"
@@ -126,7 +124,6 @@ providers:
126124
# - sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-hcloud-feature-load-balancer-extra-services.yaml"
127125
# - sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-hcloud-feature-placement-groups.yaml"
128126
# - sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-hcloud-feature-loadbalancer-off.yaml"
129-
# - sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-network.yaml"
130127
# - sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-node-drain.yaml"
131128
# - sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-md-remediation.yaml"
132129
# - sourcePath: "../data/infrastructure-hetzner/v1beta1/cluster-template-kcp-remediation.yaml"
@@ -156,9 +153,7 @@ variables:
156153

157154
# Cluster Addons
158155
CILIUM: "./data/cni/cilium/cilium.yaml"
159-
CCM: "./data/ccm/hcloud-ccm.yaml"
160-
CCM_NETWORK: "./data/ccm/hcloud-ccm-network.yaml"
161-
CCM_HETZNER: "./data/ccm/hcloud-ccm-hetzner.yaml"
156+
CCM: "./data/ccm/ccm.yaml"
162157

163158
# Conformance testing variables
164159
CONFORMANCE_WORKER_MACHINE_COUNT: 3

test/e2e/data/ccm/hcloud-ccm-hetzner.yaml

Lines changed: 0 additions & 114 deletions
This file was deleted.

test/e2e/data/ccm/hcloud-ccm-network.yaml

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)