2020-09-10 02:06:39 +00:00
|
|
|
#! Copyright 2020 VMware, Inc.
|
|
|
|
#! SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
#@ load("@ytt:data", "data")
|
|
|
|
|
|
|
|
#! Give permission to various objects within the app's own namespace
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: Role
|
|
|
|
metadata:
|
2020-09-10 22:20:02 +00:00
|
|
|
name: local-user-authenticator-aggregated-api-server-role
|
|
|
|
namespace: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: [secrets]
|
|
|
|
verbs: [create, get, list, patch, update, watch]
|
|
|
|
---
|
|
|
|
kind: RoleBinding
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
2020-09-10 22:20:02 +00:00
|
|
|
name: local-user-authenticator-aggregated-api-server-role-binding
|
|
|
|
namespace: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
2020-09-10 22:20:02 +00:00
|
|
|
name: local-user-authenticator-service-account
|
|
|
|
namespace: local-user-authenticator
|
2020-09-10 02:06:39 +00:00
|
|
|
roleRef:
|
|
|
|
kind: Role
|
2020-09-10 22:20:02 +00:00
|
|
|
name: local-user-authenticator-aggregated-api-server-role
|
2020-09-10 02:06:39 +00:00
|
|
|
apiGroup: rbac.authorization.k8s.io
|