-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate from kuttl to chainsaw
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
- Loading branch information
1 parent
4f4a534
commit 7d0b7c2
Showing
22 changed files
with
200 additions
and
99 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
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/configuration-chainsaw-v1alpha1.json | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Configuration | ||
metadata: | ||
name: configuration | ||
spec: | ||
timeouts: | ||
assert: 5m0s | ||
cleanup: 5m0s | ||
delete: 5m0s | ||
error: 5m0s | ||
exec: 5m0s |
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.
11 changes: 0 additions & 11 deletions
11
e2e/linodecluster-controller/minimal/02-create-linodecluster.tpl.yml
This file was deleted.
Oops, something went wrong.
17 changes: 11 additions & 6 deletions
17
e2e/linodecluster-controller/minimal/02-create-linodecluster.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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: |- | ||
CLUSTER_UID="$(OBJ=clusters/cluster-sample make getKubeUid)" \ | ||
TS="$(TPL="$PWD/02-create-linodecluster.tpl.yml" make renderTestCase)" make runTestSuit | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 | ||
kind: LinodeCluster | ||
metadata: | ||
name: linodecluster-sample | ||
ownerReferences: | ||
- apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
name: cluster-sample | ||
uid: (x_k8s_get($client, 'cluster.x-k8s.io/v1beta1', 'Cluster', $namespace, 'cluster-sample').metadata.uid) | ||
spec: | ||
region: us-sea |
5 changes: 0 additions & 5 deletions
5
e2e/linodecluster-controller/minimal/03-verify-nodebalancer.yaml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
e2e/linodecluster-controller/minimal/04-delete-linodecluster.yaml
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
e2e/linodecluster-controller/minimal/05-verify-nodebalancer-destroyed.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# 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: | ||
creationTimestamp: null | ||
name: minimal | ||
spec: | ||
steps: | ||
- name: step-00 | ||
try: | ||
- assert: | ||
file: 00-assert.yaml | ||
- name: step-01 | ||
try: | ||
- apply: | ||
file: 01-create-cluster.yaml | ||
- name: step-02 | ||
try: | ||
- apply: | ||
file: 02-create-linodecluster.yaml | ||
- assert: | ||
file: 02-assert.yaml | ||
- name: step-03 | ||
try: | ||
- script: | ||
content: 'URI="nodebalancers" FILTER="{\"tags\":\"$(OBJ=linodeclusters/linodecluster-sample | ||
make getKubeUid)\"}" make callLinodeApiGet | grep ''results": 1''' | ||
- name: step-04 | ||
try: | ||
- delete: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 | ||
kind: LinodeCluster | ||
name: linodecluster-sample | ||
- apply: | ||
file: 04-error.yaml | ||
- name: step-05 | ||
try: | ||
- script: | ||
content: 'URI="nodebalancers" FILTER="{\"tags\":\"$(OBJ=linodeclusters/linodecluster-sample | ||
make getKubeUid)\"}" make callLinodeApiGet | grep ''results": 0''' |
11 changes: 0 additions & 11 deletions
11
e2e/linodemachine-controller/byovpc/01-create-cluster.yaml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
e2e/linodemachine-controller/byovpc/02-create-linodemachine.yaml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
e2e/linodemachine-controller/byovpc/03-delete-linodemachine.yaml
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
e2e/linodemachine-controller/byovpc/04-verify-linode-instance.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# 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: | ||
creationTimestamp: null | ||
name: byovpc | ||
spec: | ||
steps: | ||
- name: step-00 | ||
try: | ||
- assert: | ||
file: 00-assert.yaml | ||
- name: step-01 | ||
try: | ||
- command: | ||
args: | ||
- createVPC | ||
entrypoint: make | ||
- script: | ||
content: |- | ||
VPC_ID=$(make fetchVPCID) \ | ||
TS="$(TPL="$PWD/01-create-vpc.tpl.yml" make renderTestCase)" make runTestSuit | ||
- command: | ||
args: | ||
- enableVPC | ||
entrypoint: make | ||
- script: | ||
content: |- | ||
VPC_UID="$(OBJ=linodevpcs/linodevpc-sample make getKubeUid)" \ | ||
TS="$(TPL="$PWD/01-create-cluster.tpl.yml" make renderTestCase)" make runTestSuit | ||
- apply: | ||
file: 01-create-cluster.tpl.yml | ||
- apply: | ||
file: 01-create-vpc.tpl.yml | ||
- assert: | ||
file: 01-assert.yaml | ||
- name: step-02 | ||
try: | ||
- script: | ||
content: |- | ||
MACHINE_UID="$(OBJ=machines/machine-sample make getKubeUid)" \ | ||
TS="$(TPL="$PWD/02-create-linodemachine.tpl.yml" make renderTestCase)" make runTestSuit | ||
- apply: | ||
file: 02-create-linodemachine.tpl.yml | ||
- assert: | ||
file: 02-assert.yaml | ||
- name: step-03 | ||
try: | ||
- delete: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 | ||
kind: LinodeMachine | ||
name: linodemachine-sample | ||
- apply: | ||
file: 03-error.yaml | ||
- name: step-04 | ||
try: | ||
- script: | ||
content: 'URI="linode/instances" FILTER="{\"tags\":\"$(OBJ=linodemachines/linodemachine-sample | ||
make getKubeUid)\"}" make callLinodeApiGet | grep ''results": 0''' |
6 changes: 0 additions & 6 deletions
6
e2e/linodemachine-controller/minimal/02-create-linodemachine.yaml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
e2e/linodemachine-controller/minimal/03-delete-linodemachine.yaml
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
e2e/linodemachine-controller/minimal/04-verify-linode-instance.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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: | ||
creationTimestamp: null | ||
name: minimal | ||
spec: | ||
steps: | ||
- name: step-00 | ||
try: | ||
- assert: | ||
file: 00-assert.yaml | ||
- name: step-01 | ||
try: | ||
- apply: | ||
file: 01-create-cluster.yaml | ||
- name: step-02 | ||
try: | ||
- script: | ||
content: |- | ||
MACHINE_UID="$(OBJ=machines/machine-sample make getKubeUid)" \ | ||
TS="$(TPL="$PWD/02-create-linodemachine.tpl.yml" make renderTestCase)" make runTestSuit | ||
- apply: | ||
file: 02-create-linodemachine.tpl.yml | ||
- assert: | ||
file: 02-assert.yaml | ||
- name: step-03 | ||
try: | ||
- delete: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 | ||
kind: LinodeMachine | ||
name: linodemachine-sample | ||
- apply: | ||
file: 03-error.yaml | ||
- name: step-04 | ||
try: | ||
- script: | ||
content: 'URI="linode/instances" FILTER="{\"tags\":\"$(OBJ=linodemachines/linodemachine-sample | ||
make getKubeUid)\"}" make callLinodeApiGet | grep ''results": 0''' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 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: | ||
creationTimestamp: null | ||
name: minimal | ||
spec: | ||
steps: | ||
- name: step-00 | ||
try: | ||
- assert: | ||
file: 00-assert.yaml | ||
- name: step-01 | ||
try: | ||
- apply: | ||
file: 01-create-vpc.yaml | ||
- assert: | ||
file: 01-assert.yaml | ||
- name: step-02 | ||
try: | ||
- delete: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 | ||
kind: LinodeVPC | ||
name: linodevpc-sample | ||
- apply: | ||
file: 02-error.yaml | ||
- name: step-03 | ||
try: | ||
- script: | ||
content: 'URI="vpcs" FILTER="{\"label\":\"CLi-$(OBJ=linodevpcs/linodevpc-sample | ||
make getKubeUid | sed ''s/-//g'')\"}" make callLinodeApiGet | grep ''results": | ||
0''' |