-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b5e4d2
commit 2fbc8ca
Showing
12 changed files
with
254 additions
and
0 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,20 @@ | ||
name: e2e | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
e2e: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17.9 | ||
|
||
- run: make e2e |
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,4 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
networking: | ||
disableDefaultCNI: true |
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: virt.virtink.smartx.com/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
name: ubuntu-container-disk | ||
status: | ||
phase: Running |
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,27 @@ | ||
apiVersion: virt.virtink.smartx.com/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
name: ubuntu-container-disk | ||
spec: | ||
instance: | ||
memory: | ||
size: 1Gi | ||
disks: | ||
- name: ubuntu | ||
- name: cloud-init | ||
interfaces: | ||
- name: pod | ||
volumes: | ||
- name: ubuntu | ||
containerDisk: | ||
image: smartxworks/virtink-container-disk-ubuntu | ||
- name: cloud-init | ||
cloudInit: | ||
userData: |- | ||
#cloud-config | ||
password: password | ||
chpasswd: { expire: False } | ||
ssh_pwauth: True | ||
networks: | ||
- name: pod | ||
pod: {} |
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: virt.virtink.smartx.com/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
name: ubuntu-container-rootfs | ||
status: | ||
phase: Running |
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,31 @@ | ||
apiVersion: virt.virtink.smartx.com/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
name: ubuntu-container-rootfs | ||
spec: | ||
instance: | ||
memory: | ||
size: 1Gi | ||
kernel: | ||
image: smartxworks/virtink-kernel-5.15.12 | ||
cmdline: "console=ttyS0 root=/dev/vda rw" | ||
disks: | ||
- name: ubuntu | ||
- name: cloud-init | ||
interfaces: | ||
- name: pod | ||
volumes: | ||
- name: ubuntu | ||
containerRootfs: | ||
image: smartxworks/virtink-container-rootfs-ubuntu | ||
size: 4Gi | ||
- name: cloud-init | ||
cloudInit: | ||
userData: |- | ||
#cloud-config | ||
password: password | ||
chpasswd: { expire: False } | ||
ssh_pwauth: True | ||
networks: | ||
- name: pod | ||
pod: {} |
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: virt.virtink.smartx.com/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
name: ubuntu-datavolume | ||
status: | ||
phase: Running |
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,43 @@ | ||
apiVersion: virt.virtink.smartx.com/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
name: ubuntu-datavolume | ||
spec: | ||
instance: | ||
memory: | ||
size: 1Gi | ||
disks: | ||
- name: ubuntu | ||
- name: cloud-init | ||
interfaces: | ||
- name: pod | ||
volumes: | ||
- name: ubuntu | ||
dataVolume: | ||
volumeName: ubuntu | ||
- name: cloud-init | ||
cloudInit: | ||
userData: |- | ||
#cloud-config | ||
password: password | ||
chpasswd: { expire: False } | ||
ssh_pwauth: True | ||
networks: | ||
- name: pod | ||
pod: {} | ||
--- | ||
apiVersion: cdi.kubevirt.io/v1beta1 | ||
kind: DataVolume | ||
metadata: | ||
name: ubuntu | ||
spec: | ||
source: | ||
http: | ||
#url: https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img | ||
url: http://192.168.17.20/kubrid/images/jammy-server-cloudimg-amd64.img | ||
pvc: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 8Gi |
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: virt.virtink.smartx.com/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
name: ubuntu-masquerade | ||
status: | ||
phase: Running |
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: virt.virtink.smartx.com/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
name: ubuntu-masquerade | ||
spec: | ||
instance: | ||
memory: | ||
size: 1Gi | ||
kernel: | ||
image: smartxworks/virtink-kernel-5.15.12 | ||
cmdline: "console=ttyS0 root=/dev/vda rw" | ||
disks: | ||
- name: ubuntu | ||
- name: cloud-init | ||
interfaces: | ||
- name: pod | ||
masquerade: {} | ||
volumes: | ||
- name: ubuntu | ||
containerRootfs: | ||
image: smartxworks/virtink-container-rootfs-ubuntu | ||
size: 4Gi | ||
- name: cloud-init | ||
cloudInit: | ||
userData: |- | ||
#cloud-config | ||
password: password | ||
chpasswd: { expire: False } | ||
ssh_pwauth: True | ||
networks: | ||
- name: pod | ||
pod: {} |
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: TestSuite | ||
testDirs: | ||
- test/e2e | ||
timeout: 300 | ||
parallel: 1 |