adamant-kite-43734
03/29/2024, 3:17 AMclever-mouse-42560
03/29/2024, 10:34 AMclever-mouse-42560
03/29/2024, 10:35 AMrole
and then click on side menu -> edit YAMLsilly-jelly-27487
03/29/2024, 1:39 PMrules {
api_groups = ["*"]
resources = ["customresourcedefinitions"]
verbs = ["get", "list", "watch"]
}
rules {
api_groups = ["*"]
resources = ["customresourcedefinitions"]
resource_names = ["<http://agents.agent.k8s.elastic.co|agents.agent.k8s.elastic.co>"]
verbs = ["create", "delete"]
}
I might doing it wrong , but what i want to achieve is to allow list/get/watch all CRDs, but be able to install only the CRD with name agents.agent.k8s.elastic.cosilly-jelly-27487
03/29/2024, 1:39 PMclever-mouse-42560
04/02/2024, 1:27 PMapiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: test-role-creation
rules:
- apiGroups:
- agent.k8s.elastic.co/v1alpha1
resources:
- agent
verbs:
- create
- get
...
Not sure how to define the same using Terraform.
https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-api-agent-k8s-elastic-co-v1alpha1.html