Add teleport agent update

This commit is contained in:
Jonny Ervine
2024-08-15 22:45:43 +08:00
parent c0d65a0afb
commit b76e232ac2
143 changed files with 15355 additions and 676 deletions
@@ -0,0 +1,35 @@
suite: AdminClusterRoleBinding
templates:
- admin_clusterrolebinding.yaml
tests:
- it: don't generate a admin cluster role binding when adminClusterRoleBinding.create is false
asserts:
- hasDocuments:
count: 0
- it: generate a admin cluster role binding when adminClusterRoleBinding.create is true
set:
adminClusterRoleBinding:
create: true
asserts:
- hasDocuments:
count: 1
- isKind:
of: ClusterRoleBinding
- equal:
path: subjects[0].name
value: cluster-admin
- matchSnapshot: {}
- it: generate a admin cluster role binding when adminClusterRoleBinding.create is true and adminClusterRoleBinding.name is set
set:
adminClusterRoleBinding:
create: true
name: my-cluster-admin
asserts:
- hasDocuments:
count: 1
- isKind:
of: ClusterRoleBinding
- equal:
path: subjects[0].name
value: my-cluster-admin
- matchSnapshot: {}