k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/test/fixtures/pkg/kubectl/cmd/auth/rbac-resource-plus.yaml (about) 1 apiVersion: v1 2 items: 3 - apiVersion: rbac.authorization.k8s.io/v1 4 kind: ClusterRole 5 metadata: 6 labels: 7 test-cmd: auth 8 name: testing-CR 9 rules: 10 - apiGroups: 11 - "" 12 resources: 13 - pods 14 verbs: 15 - create 16 - delete 17 - deletecollection 18 - get 19 - list 20 - patch 21 - update 22 - watch 23 24 - apiVersion: v1 25 kind: Pod 26 metadata: 27 name: valid-pod 28 labels: 29 name: valid-pod 30 spec: 31 containers: 32 - name: kubernetes-serve-hostname 33 image: registry.k8s.io/e2e-test-images/agnhost:2.32 34 command: ["/agnhost", "serve-hostname"] 35 resources: 36 limits: 37 cpu: "1" 38 memory: 512Mi 39 40 - apiVersion: rbac.authorization.k8s.io/v1 41 kind: ClusterRoleBinding 42 metadata: 43 labels: 44 test-cmd: auth 45 name: testing-CRB 46 roleRef: 47 apiGroup: rbac.authorization.k8s.io 48 kind: ClusterRole 49 name: testing-CR 50 subjects: 51 - apiGroup: rbac.authorization.k8s.io 52 kind: Group 53 name: system:masters 54 55 - apiVersion: rbac.authorization.k8s.io/v1 56 kind: RoleBinding 57 metadata: 58 labels: 59 test-cmd: auth 60 name: testing-RB 61 namespace: some-other-random 62 roleRef: 63 apiGroup: rbac.authorization.k8s.io 64 kind: ClusterRole 65 name: testing-CR 66 subjects: 67 - apiGroup: rbac.authorization.k8s.io 68 kind: Group 69 name: system:masters 70 71 - apiVersion: rbac.authorization.k8s.io/v1 72 kind: Role 73 metadata: 74 labels: 75 test-cmd: auth 76 name: testing-R 77 namespace: some-other-random 78 rules: 79 - apiGroups: 80 - "" 81 resources: 82 - configmaps 83 verbs: 84 - get 85 - list 86 - watch 87 88 kind: List 89 metadata: {}