94 lines
1.8 KiB
YAML
94 lines
1.8 KiB
YAML
{
|
|
"apiVersion": "v1",
|
|
"kind": "List",
|
|
"items": [
|
|
{
|
|
"apiVersion": "v1",
|
|
"kind": "Namespace",
|
|
"metadata": {
|
|
"name": "hwlab-ci"
|
|
}
|
|
},
|
|
{
|
|
"apiVersion": "v1",
|
|
"kind": "ServiceAccount",
|
|
"metadata": {
|
|
"name": "hwlab-tekton-runner",
|
|
"namespace": "hwlab-ci"
|
|
}
|
|
},
|
|
{
|
|
"apiVersion": "rbac.authorization.k8s.io/v1",
|
|
"kind": "Role",
|
|
"metadata": {
|
|
"name": "hwlab-tekton-runtime-observer",
|
|
"namespace": "hwlab-dev"
|
|
},
|
|
"rules": [
|
|
{
|
|
"apiGroups": [
|
|
""
|
|
],
|
|
"resources": [
|
|
"pods",
|
|
"services",
|
|
"configmaps"
|
|
],
|
|
"verbs": [
|
|
"get",
|
|
"list",
|
|
"watch"
|
|
]
|
|
},
|
|
{
|
|
"apiGroups": [
|
|
"apps"
|
|
],
|
|
"resources": [
|
|
"deployments",
|
|
"statefulsets"
|
|
],
|
|
"verbs": [
|
|
"get",
|
|
"list",
|
|
"watch"
|
|
]
|
|
},
|
|
{
|
|
"apiGroups": [
|
|
"batch"
|
|
],
|
|
"resources": [
|
|
"jobs"
|
|
],
|
|
"verbs": [
|
|
"get",
|
|
"list",
|
|
"watch"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"apiVersion": "rbac.authorization.k8s.io/v1",
|
|
"kind": "RoleBinding",
|
|
"metadata": {
|
|
"name": "hwlab-tekton-runtime-observer",
|
|
"namespace": "hwlab-dev"
|
|
},
|
|
"subjects": [
|
|
{
|
|
"kind": "ServiceAccount",
|
|
"name": "hwlab-tekton-runner",
|
|
"namespace": "hwlab-ci"
|
|
}
|
|
],
|
|
"roleRef": {
|
|
"apiGroup": "rbac.authorization.k8s.io",
|
|
"kind": "Role",
|
|
"name": "hwlab-tekton-runtime-observer"
|
|
}
|
|
}
|
|
]
|
|
}
|