sfyra

module
v0.0.0-...-997eeb3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2020 License: MPL-2.0

README

sfyra

Integration test for Sidero/Arges.

Running

Build the test binary:

make integration-test

Run the test:

make run-integration-test

Registry mirrors could be dropped if not being used. Test uses CIDR 172.24.0.0/24 by default.

Sequence of steps:

  • build initial bootstrap Talos cluster of one node
  • build management set of VMs (PXE-boot enabled)
  • install Cluster API, Sidero and Talos providers
  • run the unit-tests

With -skip-teardown flag test leaves the bootstrap cluster running so that next iteration of the test can be run without waiting for the boostrap actions to be finished.

Running with Talos HEAD

Build the artifacts in Talos:

make initramfs kernel talosctl-linux

From Sfyra directory run:

(cd ../talos/; sudo -E ../sfyra/_out/integration-test -skip-teardown)

This command doesn't tear down the cluster after the test run, so it can be re-run any time for quick another round of testing.

To destroy Sfyra environment use talosctl:

sudo -E talosctl cluster destroy --provisioner=qemu --name=sfyra
sudo -E talosctl cluster destroy --provisioner=qemu --name=sfyra-management

Running with Sidero HEAD

Build Sidero and push to registry under your username:

make USERNAME=smira PUSH=true
make release USERNAME=smira PUSH=true

Create/update clusterctl config file to install Sidero for that version:

$ cat ~/.cluster-api/clusterctl.yaml
providers:
- name: "sidero"
    url: "file:///home/smira/Documents/sidero/_out/infrastructure-sidero/v0.1.0-alpha.1-12-g8f9ba14-dirty/infrastructure-components.yaml"
    type: "InfrastructureProvider"

Update the path to match your directory layout.

Directories

Path Synopsis
cmd
pkg
bootstrap
Package bootstrap provides tools to build the initial bootstrap Talos cluster without CAPI.
Package bootstrap provides tools to build the initial bootstrap Talos cluster without CAPI.
capi
Package capi manages CAPI installation, provides default client for CAPI CRDs.
Package capi manages CAPI installation, provides default client for CAPI CRDs.
constants
Package constants provides default values for some parameters.
Package constants provides default values for some parameters.
loadbalancer
Package loadbalancer provides dynamic loadbalancer for the controlplane of the CAPI cluster.
Package loadbalancer provides dynamic loadbalancer for the controlplane of the CAPI cluster.
talos
Package talos provides interfaces for Talos objects.
Package talos provides interfaces for Talos objects.
tests
Package tests provides the Sidero tests.
Package tests provides the Sidero tests.
vm
Package vm provides tools to build a set of PXE-booted VMs for Sidero testing.
Package vm provides tools to build a set of PXE-booted VMs for Sidero testing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL