Skip to content

Commit b00ac1d

Browse files
authored
Merge pull request hrak#1 from Leaseweb/tilt_metrics_fix
Tilt metrics fix
2 parents 0c5fad4 + 6009a1c commit b00ac1d

5 files changed

Lines changed: 15 additions & 26 deletions

File tree

config/default/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ patchesStrategicMerge:
2828
- manager_image_patch_edited.yaml
2929
- manager_webhook_patch.yaml
3030
- webhookcainjection_patch.yaml
31-
- manager_prometheus_metrics_patch.yaml
3231

3332
# Protect the /metrics endpoint by putting it behind auth.
3433
# If you want your controller-manager to expose the /metrics

config/default/manager_prometheus_metrics_patch.yaml

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

config/manager/manager.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ spec:
2121
- command:
2222
- /manager
2323
args:
24-
- --leader-elect
25-
- --cloudstackcluster-concurrency=${CAPC_CLOUDSTACKCLUSTER_CONCURRENCY:=10}
26-
- --cloudstackmachine-concurrency=${CAPC_CLOUDSTACKMACHINE_CONCURRENCY:=10}
24+
- "--leader-elect"
25+
- "--metrics-bind-addr=localhost:8080"
26+
- "--cloudstackcluster-concurrency=${CAPC_CLOUDSTACKCLUSTER_CONCURRENCY:=10}"
27+
- "--cloudstackmachine-concurrency=${CAPC_CLOUDSTACKMACHINE_CONCURRENCY:=10}"
2728
image: controller:latest
2829
name: manager
2930
securityContext:

docs/book/src/development/tilt.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,23 @@ Next, create a `tilt-settings.json` file and place it in your local copy of `clu
3535

3636
**Example `tilt-settings.json` for CAPC clusters:**
3737

38+
```json
39+
{
40+
"default_registry": "gcr.io/your-project-name-here",
41+
"provider_repos": ["../cluster-api-provider-cloudstack"],
42+
"enable_providers": ["kubeadm-bootstrap", "kubeadm-control-plane", "cloudstack"]
43+
}
44+
```
45+
46+
**Example `tilt-settings.json` for CAPC clusters with experimental feature gate:**
47+
3848
```json
3949
{
4050
"default_registry": "gcr.io/your-project-name-here",
4151
"provider_repos": ["../cluster-api-provider-cloudstack"],
4252
"enable_providers": ["kubeadm-bootstrap", "kubeadm-control-plane", "cloudstack"],
4353
"kustomize_substitutions": {
44-
"CLOUDSTACK_B64ENCODED_CREDENTIALS": "RANDOM_STRING==",
54+
"EXP_KUBEADM_BOOTSTRAP_FORMAT_IGNITION": "true",
4555
}
4656
}
4757
```

test/e2e/config/cloudstack.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ providers:
105105
replacements:
106106
- old: --metrics-bind-addr=localhost:8080
107107
new: --metrics-bind-addr=:8080
108-
- old: "--leader-elect"
109-
new: "--leader-elect\n - --metrics-bind-addr=:8080"
110108

111109
variables:
112110
KUBERNETES_VERSION_MANAGEMENT: "v1.25.3"

0 commit comments

Comments
 (0)