Skip to content

Commit

Permalink
hotfix yaml agent rbac: add rbac to yaml (#3651)
Browse files Browse the repository at this point in the history
Signed-off-by: Alix Cook <[email protected]>
  • Loading branch information
acookin authored Aug 2, 2021
1 parent 51f1efe commit e448c45
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docs/yaml/aes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,45 @@ rules:
# Source: ambassador/templates/ambassador-agent.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: ambassador-agent-deployments
labels:
rbac.getambassador.io/role-group: ambassador-agent
product: aes
rules:
- apiGroups: [apps, extensions]
resources: [deployments]
verbs: [get, list, watch]
---
# Source: ambassador/templates/ambassador-agent.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: ambassador-agent-endpoints
labels:
rbac.getambassador.io/role-group: ambassador-agent
product: aes
rules:
- apiGroups: ['']
resources: [endpoints]
verbs: [get, list, watch]
---
# Source: ambassador/templates/ambassador-agent.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: ambassador-agent-configmaps
labels:
rbac.getambassador.io/role-group: ambassador-agent
product: aes
rules:
- apiGroups: ['']
resources: [configmaps]
verbs: [get, list, watch]
---
# Source: ambassador/templates/ambassador-agent.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: ambassador-agent-rollouts
labels:
Expand Down
39 changes: 39 additions & 0 deletions docs/yaml/ambassador/ambassador-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,45 @@ rules:
---
# Source: ambassador/templates/ambassador-agent.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: ambassador-agent-deployments
labels:
rbac.getambassador.io/role-group: ambassador-agent
product: aes
rules:
- apiGroups: [apps, extensions]
resources: [deployments]
verbs: [get, list, watch]
---
# Source: ambassador/templates/ambassador-agent.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: ambassador-agent-endpoints
labels:
rbac.getambassador.io/role-group: ambassador-agent
product: aes
rules:
- apiGroups: ['']
resources: [endpoints]
verbs: [get, list, watch]
---
# Source: ambassador/templates/ambassador-agent.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: ambassador-agent-configmaps
labels:
rbac.getambassador.io/role-group: ambassador-agent
product: aes
rules:
- apiGroups: ['']
resources: [configmaps]
verbs: [get, list, watch]
---
# Source: ambassador/templates/ambassador-agent.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: Role
metadata:
name: ambassador-agent-config
Expand Down
6 changes: 6 additions & 0 deletions k8s-config/aes/require.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ resources:
name: ambassador-agent
- kind: ClusterRole
name: ambassador-agent-pods
- kind: ClusterRole
name: ambassador-agent-deployments
- kind: ClusterRole
name: ambassador-agent-endpoints
- kind: ClusterRole
name: ambassador-agent-configmaps
- kind: ClusterRole
name: ambassador-agent-rollouts
- kind: ClusterRole
Expand Down
6 changes: 6 additions & 0 deletions k8s-config/ambassador-rbac/require.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ resources:
name: ambassador-agent-rollouts
- kind: ClusterRole
name: ambassador-agent-applications
- kind: ClusterRole
name: ambassador-agent-deployments
- kind: ClusterRole
name: ambassador-agent-endpoints
- kind: ClusterRole
name: ambassador-agent-configmaps
- kind: Role
name: ambassador-agent-config
namespace: default
Expand Down
39 changes: 39 additions & 0 deletions manifests/ambassador/ambassador.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,45 @@ rules:
---
# Source: ambassador/templates/ambassador-agent.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: ambassador-agent-deployments
labels:
rbac.getambassador.io/role-group: ambassador-agent
product: aes
rules:
- apiGroups: [apps, extensions]
resources: [deployments]
verbs: [get, list, watch]
---
# Source: ambassador/templates/ambassador-agent.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: ambassador-agent-endpoints
labels:
rbac.getambassador.io/role-group: ambassador-agent
product: aes
rules:
- apiGroups: ['']
resources: [endpoints]
verbs: [get, list, watch]
---
# Source: ambassador/templates/ambassador-agent.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: ambassador-agent-configmaps
labels:
rbac.getambassador.io/role-group: ambassador-agent
product: aes
rules:
- apiGroups: ['']
resources: [configmaps]
verbs: [get, list, watch]
---
# Source: ambassador/templates/ambassador-agent.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: Role
metadata:
name: ambassador-agent-config
Expand Down

0 comments on commit e448c45

Please sign in to comment.