-
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.
refactor kuttl tests to remove kuttl-in-kuttl
- Loading branch information
1 parent
9b929d4
commit fd20ee5
Showing
56 changed files
with
251 additions
and
265 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
e2e/linodecluster-controller/minimal-linodecluster/03-verify-nodebalancer.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,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: |- | ||
URI="nodebalancers" FILTER="{\"label\":\"cluster-sample-api-server\"}" make callLinodeApiGet | grep 'results": 1' |
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
e2e/linodecluster-controller/minimal-linodecluster/05-verify-nodebalancer-destroyed.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,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: |- | ||
URI="nodebalancers" FILTER="{\"tags\":\"cluster-sample-api-server\"}" make callLinodeApiGet | grep 'results": 0' |
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions
5
e2e/linodecluster-controller/minimal/03-verify-nodebalancer.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.
69 changes: 0 additions & 69 deletions
69
e2e/linodemachine-controller/byovpc/01-create-cluster.yaml
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
e2e/linodemachine-controller/byovpc/01-vpc-create-options.json
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
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 was deleted.
Oops, something went wrong.
File renamed without changes.
21 changes: 21 additions & 0 deletions
21
e2e/linodemachine-controller/minimal-linodemachine/01-create-cluster.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,21 @@ | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: linodemachine-cluster-sample | ||
spec: | ||
controlPlaneRef: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlane | ||
name: linodecluster-sample-control-plane | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 | ||
kind: LinodeCluster | ||
name: linodecluster-sample | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 | ||
kind: LinodeCluster | ||
metadata: | ||
name: linodecluster-sample | ||
spec: | ||
region: us-sea |
23 changes: 23 additions & 0 deletions
23
e2e/linodemachine-controller/minimal-linodemachine/02-assert.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,23 @@ | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 | ||
kind: LinodeMachine | ||
metadata: | ||
labels: | ||
cluster.x-k8s.io/cluster-name: linodemachine-cluster-sample | ||
spec: | ||
region: us-sea | ||
type: g5-nanode-1 | ||
status: | ||
ready: true | ||
instanceState: running | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Machine | ||
metadata: | ||
labels: | ||
cluster.x-k8s.io/cluster-name: linodemachine-cluster-sample | ||
spec: | ||
clusterName: cluster-sample | ||
status: | ||
bootstrapReady: true | ||
infrastructureReady: true |
32 changes: 32 additions & 0 deletions
32
e2e/linodemachine-controller/minimal-linodemachine/02-create-linodemachine.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,32 @@ | ||
--- | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlane | ||
metadata: | ||
name: linodecluster-sample-control-plane | ||
spec: | ||
kubeadmConfigSpec: | ||
clusterConfiguration: | ||
apiServer: | ||
extraArgs: | ||
cloud-provider: external | ||
controllerManager: | ||
extraArgs: | ||
cloud-provider: external | ||
machineTemplate: | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 | ||
kind: LinodeMachineTemplate | ||
name: linodemachine-sample | ||
replicas: 1 | ||
version: 1.29.1 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 | ||
kind: LinodeMachineTemplate | ||
metadata: | ||
name: linodemachine-sample | ||
spec: | ||
template: | ||
spec: | ||
region: us-sea | ||
type: g5-nanode-1 | ||
|
5 changes: 5 additions & 0 deletions
5
e2e/linodemachine-controller/minimal-linodemachine/03-verify-linode-instance.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,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: |- | ||
URI="linode/instances" FILTER="{\"tags\":\"linodecluster-sample\"}" make callLinodeApiGet | grep 'results": 1' |
6 changes: 6 additions & 0 deletions
6
e2e/linodemachine-controller/minimal-linodemachine/04-delete-cluster.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,6 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
delete: | ||
- apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
name: cluster-sample |
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
e2e/linodemachine-controller/minimal-linodemachine/05-verify-no-linode-instance.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,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: |- | ||
URI="linode/instances" FILTER="{\"tags\":\"linodecluster-sample\"}" make callLinodeApiGet | grep 'results": 0' |
5 changes: 5 additions & 0 deletions
5
e2e/linodemachine-controller/minimal-linodemachine/06-cleanup-cluster.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,5 @@ | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: cluster-sample | ||
spec: |
File renamed without changes.
43 changes: 0 additions & 43 deletions
43
e2e/linodemachine-controller/minimal/01-create-cluster.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
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.
Oops, something went wrong.