
Version 0.14.1 has been used as a basis for this function Change-Id: If7b48d021f7b5dbb680000a0500d7c23a23263de
20 lines
605 B
YAML
20 lines
605 B
YAML
---
|
|
# Source: cert-manager/templates/cainjector-rbac.yaml
|
|
# leader election rules
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
kind: Role
|
|
metadata:
|
|
name: cert-manager-cainjector:leaderelection
|
|
namespace: kube-system
|
|
labels:
|
|
app: cainjector
|
|
app.kubernetes.io/name: cainjector
|
|
app.kubernetes.io/instance: cert-manager
|
|
app.kubernetes.io/component: "cainjector"
|
|
rules:
|
|
# Used for leader election by the controller
|
|
# TODO: refine the permission to *just* the leader election configmap
|
|
- apiGroups: [""]
|
|
resources: ["configmaps"]
|
|
verbs: ["get", "create", "update", "patch"]
|