Skip to content

Commit

Permalink
Merge pull request hrak#1 from Leaseweb/tilt_metrics_fix
Browse files Browse the repository at this point in the history
Tilt metrics fix
  • Loading branch information
hrak authored Nov 24, 2023
2 parents 0c5fad4 + 6009a1c commit b00ac1d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 26 deletions.
1 change: 0 additions & 1 deletion config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ patchesStrategicMerge:
- manager_image_patch_edited.yaml
- manager_webhook_patch.yaml
- webhookcainjection_patch.yaml
- manager_prometheus_metrics_patch.yaml

# Protect the /metrics endpoint by putting it behind auth.
# If you want your controller-manager to expose the /metrics
Expand Down
19 changes: 0 additions & 19 deletions config/default/manager_prometheus_metrics_patch.yaml

This file was deleted.

7 changes: 4 additions & 3 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ spec:
- command:
- /manager
args:
- --leader-elect
- --cloudstackcluster-concurrency=${CAPC_CLOUDSTACKCLUSTER_CONCURRENCY:=10}
- --cloudstackmachine-concurrency=${CAPC_CLOUDSTACKMACHINE_CONCURRENCY:=10}
- "--leader-elect"
- "--metrics-bind-addr=localhost:8080"
- "--cloudstackcluster-concurrency=${CAPC_CLOUDSTACKCLUSTER_CONCURRENCY:=10}"
- "--cloudstackmachine-concurrency=${CAPC_CLOUDSTACKMACHINE_CONCURRENCY:=10}"
image: controller:latest
name: manager
securityContext:
Expand Down
12 changes: 11 additions & 1 deletion docs/book/src/development/tilt.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,23 @@ Next, create a `tilt-settings.json` file and place it in your local copy of `clu

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

```json
{
"default_registry": "gcr.io/your-project-name-here",
"provider_repos": ["../cluster-api-provider-cloudstack"],
"enable_providers": ["kubeadm-bootstrap", "kubeadm-control-plane", "cloudstack"]
}
```

**Example `tilt-settings.json` for CAPC clusters with experimental feature gate:**

```json
{
"default_registry": "gcr.io/your-project-name-here",
"provider_repos": ["../cluster-api-provider-cloudstack"],
"enable_providers": ["kubeadm-bootstrap", "kubeadm-control-plane", "cloudstack"],
"kustomize_substitutions": {
"CLOUDSTACK_B64ENCODED_CREDENTIALS": "RANDOM_STRING==",
"EXP_KUBEADM_BOOTSTRAP_FORMAT_IGNITION": "true",
}
}
```
Expand Down
2 changes: 0 additions & 2 deletions test/e2e/config/cloudstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ providers:
replacements:
- old: --metrics-bind-addr=localhost:8080
new: --metrics-bind-addr=:8080
- old: "--leader-elect"
new: "--leader-elect\n - --metrics-bind-addr=:8080"

variables:
KUBERNETES_VERSION_MANAGEMENT: "v1.25.3"
Expand Down

0 comments on commit b00ac1d

Please sign in to comment.