-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
- Loading branch information
1 parent
7a5d788
commit 474390b
Showing
20 changed files
with
157 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/configuration-chainsaw-v1alpha1.json | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Configuration | ||
metadata: | ||
name: congiguration | ||
spec: | ||
parallel: 1 | ||
fullName: true | ||
failFast: false | ||
delayBeforeCleanup: 3s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/test-chainsaw-v1alpha1.json | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Test | ||
metadata: | ||
name: clusterrolebindings | ||
spec: | ||
steps: | ||
- try: | ||
- apply: | ||
file: resources.yaml | ||
- assert: | ||
file: expected.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
labels: | ||
rbac-manager: reactiveops | ||
ownerReferences: | ||
- apiVersion: rbacmanager.reactiveops.io/v1beta1 | ||
kind: RBACDefinition | ||
name: rbac-manager-definition | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: test-rbac-manager | ||
subjects: | ||
- kind: ServiceAccount | ||
name: test-rbac-manager | ||
namespace: rbac-manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/test-chainsaw-v1alpha1.json | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Test | ||
metadata: | ||
name: clusterrolebindings | ||
spec: | ||
steps: | ||
- description: setup rbac definition, make sure expected resources are created | ||
try: | ||
- apply: | ||
file: resources.yaml | ||
- assert: | ||
file: expected.yaml | ||
- description: delete rbac definition, make sure previously created resources are deleted | ||
try: | ||
- delete: | ||
ref: | ||
apiVersion: rbacmanager.reactiveops.io/v1beta1 | ||
kind: RBACDefinition | ||
name: rbac-manager-definition | ||
- error: | ||
file: expected.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
labels: | ||
rbac-manager: reactiveops | ||
ownerReferences: | ||
- apiVersion: rbacmanager.reactiveops.io/v1beta1 | ||
kind: RBACDefinition | ||
name: rbac-manager-definition | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: test-rbac-manager | ||
subjects: | ||
- kind: ServiceAccount | ||
name: test-rbac-manager | ||
namespace: rbac-manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: rbacmanager.reactiveops.io/v1beta1 | ||
kind: RBACDefinition | ||
metadata: | ||
name: rbac-manager-definition | ||
rbacBindings: | ||
- name: admins | ||
subjects: | ||
- kind: ServiceAccount | ||
name: test-rbac-manager | ||
namespace: rbac-manager | ||
clusterRoleBindings: | ||
- clusterRole: test-rbac-manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/test-chainsaw-v1alpha1.json | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Test | ||
metadata: | ||
name: clusterrolebindings | ||
spec: | ||
steps: | ||
- try: | ||
- apply: | ||
file: resources.yaml | ||
- assert: | ||
file: expected.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
labels: | ||
rbac-manager: reactiveops | ||
ownerReferences: | ||
- apiVersion: rbacmanager.reactiveops.io/v1beta1 | ||
kind: RBACDefinition | ||
name: rbac-manager-definition-1 | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: test-rbac-manager | ||
subjects: | ||
- kind: ServiceAccount | ||
name: test-rbac-manager | ||
namespace: rbac-manager | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
imagePullSecrets: | ||
- name: robot-secret | ||
metadata: | ||
annotations: | ||
rbacmanager.reactiveops.io/managed-pull-secrets: robot-secret | ||
labels: | ||
rbac-manager: reactiveops | ||
name: test-rbac-manager | ||
namespace: rbac-manager | ||
ownerReferences: | ||
- apiVersion: rbacmanager.reactiveops.io/v1beta1 | ||
kind: RBACDefinition | ||
name: rbac-manager-definition-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters