Skip to content

Commit

Permalink
Removed kube-rbac-proxy from cluster-api
Browse files Browse the repository at this point in the history
  • Loading branch information
micahhausler committed May 19, 2021
1 parent a10e659 commit fc5f975
Show file tree
Hide file tree
Showing 27 changed files with 1 addition and 295 deletions.
4 changes: 0 additions & 4 deletions bootstrap/kubeadm/config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ patchesStrategicMerge:
# Provide customizable hook for make targets.
- manager_image_patch.yaml
- manager_pull_policy.yaml
# Protect the /metrics endpoint by putting it behind auth.
# Only one of manager_auth_proxy_patch.yaml and
# manager_prometheus_metrics_patch.yaml should be enabled.
- manager_auth_proxy_patch.yaml
# Enable webhook.
- manager_webhook_patch.yaml
# Inject certificate in the webhook definition.
Expand Down
21 changes: 0 additions & 21 deletions bootstrap/kubeadm/config/default/manager_auth_proxy_patch.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions bootstrap/kubeadm/config/rbac/auth_proxy_role.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions bootstrap/kubeadm/config/rbac/auth_proxy_role_binding.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions bootstrap/kubeadm/config/rbac/auth_proxy_service.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions bootstrap/kubeadm/config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ resources:
- service_account.yaml
- leader_election_role.yaml
- leader_election_role_binding.yaml
- auth_proxy_service.yaml
- auth_proxy_role.yaml
- auth_proxy_role_binding.yaml
3 changes: 0 additions & 3 deletions cmd/clusterctl/client/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ func Test_clusterctlClient_InitImages(t *testing.T) {
kubeconfigContext: "mgmt-context",
},
expectedImages: []string{
"gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0",
"k8s.gcr.io/cluster-api-aws/cluster-api-aws-controller:v0.5.3",
},
wantErr: false,
Expand Down Expand Up @@ -828,8 +827,6 @@ spec:
template:
spec:
containers:
- image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
name: kube-rbac-proxy
- image: k8s.gcr.io/cluster-api-aws/cluster-api-aws-controller:v0.5.3
name: manager
volumeMounts:
Expand Down
6 changes: 1 addition & 5 deletions cmd/clusterctl/internal/util/objs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ func Test_inspectImages(t *testing.T) {
"name": controllerContainerName,
"image": "gcr.io/k8s-staging-cluster-api/cluster-api-controller:master",
},
{
"name": "kube-rbac-proxy",
"image": "gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0",
},
},
},
},
Expand All @@ -90,7 +86,7 @@ func Test_inspectImages(t *testing.T) {
},
},
},
want: []string{"gcr.io/k8s-staging-cluster-api/cluster-api-controller:master", "gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0"},
want: []string{"gcr.io/k8s-staging-cluster-api/cluster-api-controller:master"},
wantErr: false,
},
{
Expand Down
4 changes: 0 additions & 4 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ patchesStrategicMerge:
# Provide customizable hook for make targets.
- manager_image_patch.yaml
- manager_pull_policy.yaml
# Protect the /metrics endpoint by putting it behind auth.
# Only one of manager_auth_proxy_patch.yaml and
# manager_prometheus_metrics_patch.yaml should be enabled.
- manager_auth_proxy_patch.yaml
# Enable webhook.
- manager_webhook_patch.yaml
# Inject certificate in the webhook definition.
Expand Down
21 changes: 0 additions & 21 deletions config/default/manager_auth_proxy_patch.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions config/rbac/auth_proxy_role.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions config/rbac/auth_proxy_role_binding.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions config/rbac/auth_proxy_service.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@ resources:
- leader_election_role.yaml
- leader_election_role_binding.yaml
- aggregated_role.yaml
- auth_proxy_service.yaml
- auth_proxy_role.yaml
- auth_proxy_role_binding.yaml
4 changes: 0 additions & 4 deletions controlplane/kubeadm/config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ patchesStrategicMerge:
# Provide customizable hook for make targets.
- manager_image_patch.yaml
- manager_pull_policy.yaml
# Protect the /metrics endpoint by putting it behind auth.
# Only one of manager_auth_proxy_patch.yaml and
# manager_prometheus_metrics_patch.yaml should be enabled.
- manager_auth_proxy_patch.yaml
# Enable webhook.
- manager_webhook_patch.yaml
# Inject certificate in the webhook definition.
Expand Down
21 changes: 0 additions & 21 deletions controlplane/kubeadm/config/default/manager_auth_proxy_patch.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions controlplane/kubeadm/config/rbac/auth_proxy_role.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions controlplane/kubeadm/config/rbac/auth_proxy_role_binding.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions controlplane/kubeadm/config/rbac/auth_proxy_service.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions controlplane/kubeadm/config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,4 @@ resources:
- service_account.yaml
- leader_election_role.yaml
- leader_election_role_binding.yaml
# Comment the following 3 lines if you want to disable
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
# which protects your /metrics endpoint.
- auth_proxy_service.yaml
- auth_proxy_role.yaml
- auth_proxy_role_binding.yaml
- aggregated_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,6 @@ And then, we have to add that patch to [`config/kustomization.yaml`][kustomizeya
```yaml
patchesStrategicMerge
- manager_image_patch.yaml
# Protect the /metrics endpoint by putting it behind auth.
# Only one of manager_auth_proxy_patch.yaml and
# manager_prometheus_metrics_patch.yaml should be enabled.
- manager_auth_proxy_patch.yaml
# If you want your controller-manager to expose the /metrics
# endpoint w/o any authn/z, uncomment the following line and
# comment manager_auth_proxy_patch.yaml.
# Only one of manager_auth_proxy_patch.yaml and
# manager_prometheus_metrics_patch.yaml should be enabled.
- manager_config.yaml
```

Expand Down
4 changes: 0 additions & 4 deletions test/infrastructure/docker/config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ patchesStrategicMerge:
# Provide customizable hook for make targets.
- manager_image_patch.yaml
- manager_pull_policy.yaml
# Protect the /metrics endpoint by putting it behind auth.
# Only one of manager_auth_proxy_patch.yaml and
# manager_prometheus_metrics_patch.yaml should be enabled.
- manager_auth_proxy_patch.yaml
# Enable webhook.
- manager_webhook_patch.yaml
# Inject certificate in the webhook definition.
Expand Down

This file was deleted.

13 changes: 0 additions & 13 deletions test/infrastructure/docker/config/rbac/auth_proxy_role.yaml

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions test/infrastructure/docker/config/rbac/auth_proxy_service.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions test/infrastructure/docker/config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,3 @@ resources:
- service_account.yaml
- leader_election_role.yaml
- leader_election_role_binding.yaml
# Comment the following 3 lines if you want to disable
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
# which protects your /metrics endpoint.
- auth_proxy_service.yaml
- auth_proxy_role.yaml
- auth_proxy_role_binding.yaml

0 comments on commit fc5f975

Please sign in to comment.