Commit cb21ad1b authored by Daniel Scholl's avatar Daniel Scholl
Browse files

Merge branch 'users/kiveerap/AddingTemplatesForRbacRoles' into 'master'

Adding airflow namespace and assigning roles for airflow service account

See merge request !50
parents 00f142f5 b90ed1eb
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: v1
kind: Namespace
metadata:
name: airflow
\ No newline at end of file
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: Role
metadata:
name: airflow
namespace: airflow
rules:
- apiGroups:
- ''
resources:
- pods
verbs:
- create
- get
- delete
- list
- watch
- apiGroups:
- ''
resources:
- pods/log
verbs:
- get
- list
- apiGroups:
- ''
resources:
- pods/exec
verbs:
- create
- get
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
metadata:
name: airflow
namespace: airflow
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: airflow
subjects:
- kind: ServiceAccount
name: airflow
namespace: osdu
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment