LoginSignup
2
1

More than 3 years have passed since last update.

KubebuilderでCore API GroupのSecretsにアクセスするRBACのRoleを生成するMarkerを指定する方法

Last updated at Posted at 2020-11-26
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch

verbsには、get, list, watch の3つを指定する必要がある。

生成されるYAML

config/rbac/role.yaml
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  creationTimestamp: null
  name: manager-role
rules:
- apiGroups:
  - ""
  resources:
  - secrets
  verbs:
  - get
  - list
  - watch
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1