Skip to content

Commit

Permalink
enable manual csr flow via clusterctl
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhur97 committed Sep 15, 2022
1 parent 66dd4ba commit e722c66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
containers:
- command:
- /manager
env:
- name: MANUAL_CSR_APPROVAL
value: '${MANUAL_CSR_APPROVAL}'
args:
- --enable-leader-election
- "--metrics-bind-addr=127.0.0.1:8080"
Expand Down
1 change: 1 addition & 0 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ into a management cluster by using `clusterctl init`.
```shell
clusterctl init --infrastructure byoh
```
Note: By default, CSRs generated by BYOH host agents are automatically approved during registration. If we want to disable automatic approval, then set variable `MANUAL_CSR_APPROVAL: "true"` in clusterctl config file. Reference for setting variables in clusterctl can be found [here](https://cluster-api.sigs.k8s.io/clusterctl/configuration.html#variables).

## Creating a BYOH workload cluster

Expand Down
1 change: 1 addition & 0 deletions test/e2e/config/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ variables:
INIT_WITH_BINARY: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.1.3/clusterctl-{OS}-{ARCH}"
BUNDLE_LOOKUP_TAG: "v1.23.5"
CONTROL_PLANE_ENDPOINT_IP: ""
MANUAL_CSR_APPROVAL: "abcd"

intervals:
default/wait-controllers: ["3m", "10s"]
Expand Down

0 comments on commit e722c66

Please sign in to comment.