Skip to content

Commit 1718b96

Browse files
committed
Remove kube-rbac-proxy from cluster-api
1 parent a10e659 commit 1718b96

34 files changed

+40
-326
lines changed

bootstrap/kubeadm/config/default/kustomization.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ patchesStrategicMerge:
2020
# Provide customizable hook for make targets.
2121
- manager_image_patch.yaml
2222
- manager_pull_policy.yaml
23-
# Protect the /metrics endpoint by putting it behind auth.
24-
# Only one of manager_auth_proxy_patch.yaml and
25-
# manager_prometheus_metrics_patch.yaml should be enabled.
26-
- manager_auth_proxy_patch.yaml
2723
# Enable webhook.
2824
- manager_webhook_patch.yaml
2925
# Inject certificate in the webhook definition.

bootstrap/kubeadm/config/default/manager_auth_proxy_patch.yaml

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

bootstrap/kubeadm/config/manager/manager.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,17 @@ spec:
2020
- /manager
2121
args:
2222
- "--leader-elect"
23-
- "--metrics-bind-addr=127.0.0.1:8080"
23+
- "--metrics-bind-addr=:8080"
2424
- "--feature-gates=MachinePool=${EXP_MACHINE_POOL:=false}"
2525
image: controller:latest
2626
name: manager
2727
ports:
2828
- containerPort: 9440
2929
name: healthz
3030
protocol: TCP
31+
- containerPort: 8080
32+
name: metrics
33+
protocol: TCP
3134
readinessProbe:
3235
httpGet:
3336
path: /readyz

bootstrap/kubeadm/config/rbac/auth_proxy_role.yaml

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

bootstrap/kubeadm/config/rbac/auth_proxy_role_binding.yaml

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

bootstrap/kubeadm/config/rbac/auth_proxy_service.yaml

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

bootstrap/kubeadm/config/rbac/kustomization.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ resources:
44
- service_account.yaml
55
- leader_election_role.yaml
66
- leader_election_role_binding.yaml
7-
- auth_proxy_service.yaml
8-
- auth_proxy_role.yaml
9-
- auth_proxy_role_binding.yaml

cmd/clusterctl/client/init_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ func Test_clusterctlClient_InitImages(t *testing.T) {
8080
kubeconfigContext: "mgmt-context",
8181
},
8282
expectedImages: []string{
83-
"gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0",
8483
"k8s.gcr.io/cluster-api-aws/cluster-api-aws-controller:v0.5.3",
8584
},
8685
wantErr: false,
@@ -828,8 +827,6 @@ spec:
828827
template:
829828
spec:
830829
containers:
831-
- image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
832-
name: kube-rbac-proxy
833830
- image: k8s.gcr.io/cluster-api-aws/cluster-api-aws-controller:v0.5.3
834831
name: manager
835832
volumeMounts:

cmd/clusterctl/internal/util/objs_test.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ func Test_inspectImages(t *testing.T) {
7878
"name": controllerContainerName,
7979
"image": "gcr.io/k8s-staging-cluster-api/cluster-api-controller:master",
8080
},
81-
{
82-
"name": "kube-rbac-proxy",
83-
"image": "gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0",
84-
},
8581
},
8682
},
8783
},
@@ -90,7 +86,7 @@ func Test_inspectImages(t *testing.T) {
9086
},
9187
},
9288
},
93-
want: []string{"gcr.io/k8s-staging-cluster-api/cluster-api-controller:master", "gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0"},
89+
want: []string{"gcr.io/k8s-staging-cluster-api/cluster-api-controller:master"},
9490
wantErr: false,
9591
},
9692
{

config/default/kustomization.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ patchesStrategicMerge:
1919
# Provide customizable hook for make targets.
2020
- manager_image_patch.yaml
2121
- manager_pull_policy.yaml
22-
# Protect the /metrics endpoint by putting it behind auth.
23-
# Only one of manager_auth_proxy_patch.yaml and
24-
# manager_prometheus_metrics_patch.yaml should be enabled.
25-
- manager_auth_proxy_patch.yaml
2622
# Enable webhook.
2723
- manager_webhook_patch.yaml
2824
# Inject certificate in the webhook definition.

0 commit comments

Comments
 (0)