Skip to content

Commit

Permalink
🌱 Installimage: create event containing debug.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
guettli committed Oct 10, 2023
1 parent f95aa6b commit ac1539f
Show file tree
Hide file tree
Showing 14 changed files with 1,274 additions and 64 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,5 @@ __pycache__/
/_output
tmp_*

# baremetal hosts
baremetalhosts*yaml
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ install-cilium-in-wl-cluster:
install-ccm-in-wl-cluster:
helm repo add syself https://charts.syself.com
helm repo update syself
KUBECONFIG=$(WORKER_CLUSTER_KUBECONFIG) helm upgrade --install ccm syself/ccm-hetzner --version 1.1.8 \
KUBECONFIG=$(WORKER_CLUSTER_KUBECONFIG) helm upgrade --install ccm syself/ccm-hetzner --version 1.1.10 \
--namespace kube-system \
--set privateNetwork.enabled=$(PRIVATE_NETWORK)
@echo 'run "kubectl --kubeconfig=$(WORKER_CLUSTER_KUBECONFIG) ..." to work with the new target cluster'
Expand Down Expand Up @@ -749,8 +749,12 @@ lint: lint-golang lint-yaml lint-dockerfile lint-links ## Lint Codebase
.PHONY: format
format: format-starlark format-golang format-yaml ## Format Codebase

.PHONY: generate-mocks
generate-mocks: ## Generate Mocks
cd pkg/services/baremetal/client; go run github.com/vektra/mockery/[email protected]

.PHONY: generate
generate: generate-manifests generate-go-deepcopy generate-boilerplate generate-modules ## Generate Files
generate: generate-manifests generate-go-deepcopy generate-boilerplate generate-modules generate-mocks ## Generate Files

ALL_VERIFY_CHECKS = boilerplate shellcheck starlark
.PHONY: verify
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/hetznerbaremetalhost_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const (
// StateProvisioning means we are sending userData to the host and boot the machine.
StateProvisioning ProvisioningState = "provisioning"

// StateEnsureProvisioned means we are ensuring the reboot worked and cloud init is installed.
// StateEnsureProvisioned means we are ensuring the reboot worked and cloud init was executed successfully.
StateEnsureProvisioned ProvisioningState = "ensure-provisioned"

// StateProvisioned means we have sent userData to the host and booted the machine.
Expand Down
2 changes: 1 addition & 1 deletion docs/topics/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ KUBECONFIG=$CAPH_WORKER_CLUSTER_KUBECONFIG helm upgrade --install ccm syself/ccm
helm repo add syself https://charts.syself.com
helm repo update syself

KUBECONFIG=$CAPH_WORKER_CLUSTER_KUBECONFIG helm upgrade --install ccm syself/ccm-hetzner --version 1.1.8 \
KUBECONFIG=$CAPH_WORKER_CLUSTER_KUBECONFIG helm upgrade --install ccm syself/ccm-hetzner --version 1.1.10 \
--namespace kube-system \
--set privateNetwork.enabled=false
```
Expand Down
16 changes: 16 additions & 0 deletions pkg/services/baremetal/client/.mockery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This config was choosen, so that the output matches to old structure (pre config file .mockery.yaml).
# If you are here to copy this config to a new project, then it might
# make sense to choose a structure which needs less config by using
# the default values of Mockery.
all: True
filename: "{{.InterfaceName}}.go"
mockname: "{{.InterfaceName}}"
outpkg: mocks
packages:
github.com/syself/cluster-api-provider-hetzner/pkg/services/baremetal/client/ssh:
config:
dir: mocks/ssh

github.com/syself/cluster-api-provider-hetzner/pkg/services/baremetal/client/robot:
config:
dir: mocks/robot
Loading

0 comments on commit ac1539f

Please sign in to comment.