Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Revert "Revert "RBAC: rollout [2/2]""" #2864

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions cluster/config-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,3 @@ custom_dns_zone_nameservers: "" # space seperated list of nameserver IP addresse

# prefix prepended to ownership TXT records for external-dns
external_dns_ownership_prefix: ""

# enable legacy serviceaccounts for smooth RBAC migration
enable_operator_sa: "false"
enable_default_sa: "false"
enable_cdp_sa: "false"
6 changes: 0 additions & 6 deletions cluster/manifests/deletions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,3 @@ post_apply:
- name: ingress-template-controller
kind: ClusterRoleBinding
{{ end }}
- name: poweruser-new
kind: ClusterRoleBinding
- name: readonly-new
kind: ClusterRoleBinding
- name: zmon-external-new
kind: ClusterRoleBinding
2 changes: 1 addition & 1 deletion cluster/manifests/roles/poweruser-binding.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: poweruser
name: poweruser-new # TODO: migrate name
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
15 changes: 0 additions & 15 deletions cluster/manifests/roles/poweruser-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -838,18 +838,3 @@ rules:
- create
- update
- patch
- apiGroups:
- rbac.authorization.k8s.io
resources:
- roles
- rolebindings
- clusterroles
- clusterrolebindings
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
2 changes: 1 addition & 1 deletion cluster/manifests/roles/readonly-binding.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: readonly
name: readonly-new # TODO: migrate name
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
2 changes: 1 addition & 1 deletion cluster/manifests/roles/zmon-binding.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: zmon-external
name: zmon-external-new
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
14 changes: 2 additions & 12 deletions cluster/node-pools/master-default/userdata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ write_files:
- mountPath: /etc/kubernetes/ssl
name: ssl-certs-kubernetes
readOnly: true
- image: registry.opensource.zalan.do/teapot/k8s-authnz-webhook:v0.7.2
- image: registry.opensource.zalan.do/teapot/k8s-authnz-webhook:v0.7.0
name: webhook
ports:
- containerPort: 8081
Expand Down Expand Up @@ -271,17 +271,7 @@ write_files:
- --role-mapping=PowerUser=cn=PowerUser,ou={{.Cluster.ID}},ou=Kubernetes,ou=apps,dc=zalando,dc=net
{{- end }}
- --role-mapping=ReadOnly=cn=ReadOnly,ou={{.Cluster.ID}},ou=Kubernetes,ou=apps,dc=zalando,dc=net
# enable legacy serviceaccounts for smooth RBAC migration
{{ if eq .Cluster.ConfigItems.enable_operator_sa "true"}}
- --enable-operator-sa
{{ end }}
{{ if eq .Cluster.ConfigItems.enable_default_sa "true"}}
- --enable-default-sa
{{ end }}
{{ if eq .Cluster.ConfigItems.enable_cdp_sa "true"}}
- --enable-cdp-sa
{{ end }}
- --system-users=zalando-iam:zalando:service:credentials-provider

env:
- name: TEAMS_API_URL
value: https://teams.auth.zalando.com
Expand Down
Loading