Skip to content

Commit c9f02ad

Browse files
authored
Merge pull request #308 from hrak/tilt_metrics_fix
Tilt metrics fix + docs update
2 parents ea9c5f6 + 6009a1c commit c9f02ad

File tree

5 files changed

+15
-26
lines changed

5 files changed

+15
-26
lines changed

config/default/kustomization.yaml

-1
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

-19
This file was deleted.

config/manager/manager.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ spec:
2323
- command:
2424
- /manager
2525
args:
26-
- --leader-elect
27-
- --cloudstackcluster-concurrency=${CAPC_CLOUDSTACKCLUSTER_CONCURRENCY:=10}
28-
- --cloudstackmachine-concurrency=${CAPC_CLOUDSTACKMACHINE_CONCURRENCY:=10}
26+
- "--leader-elect"
27+
- "--metrics-bind-addr=localhost:8080"
28+
- "--cloudstackcluster-concurrency=${CAPC_CLOUDSTACKCLUSTER_CONCURRENCY:=10}"
29+
- "--cloudstackmachine-concurrency=${CAPC_CLOUDSTACKMACHINE_CONCURRENCY:=10}"
2930
image: controller:latest
3031
name: manager
3132
securityContext:

docs/book/src/development/tilt.md

+11-1
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

-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ providers:
106106
replacements:
107107
- old: --metrics-bind-addr=localhost:8080
108108
new: --metrics-bind-addr=:8080
109-
- old: "--leader-elect"
110-
new: "--leader-elect\n - --metrics-bind-addr=:8080"
111109

112110
variables:
113111
KUBERNETES_VERSION_MANAGEMENT: "v1.25.3"

0 commit comments

Comments
 (0)