package
0.45.0
Repository: https://github.com/siderolabs/omni.git
Documentation: pkg.go.dev

# Functions

AcceptInfraMachines asserts that there are a certain number of machines that are not accepted, provisioned by the static infra provider with the given ID.
AssertAllInfraMachinesAreUnallocated asserts that all infra machines are unallocated.
AssertAnonymousAuthenication tests the authentication without any credentials.
AssertAPIAuthz tests the authorization checks of the API endpoints.
AssertAPIInvalidSignature tests the authentication with invalid credentials.
AssertBreakAndDestroyControlPlane breaks the control plane of the given cluster by freezing all control plane machines, then destroys its control plane.
AssertClusterBootstrapManifestStatus verifies that Kubernetes boostrap manifests are in sync.
AssertClusterKubernetesUsage verifies that Kubernetes usage matches expectations.
AssertClusterKubernetesVersion verifies that Kubernetes version matches expectations.
AssertClusterLoadBalancerReady verifies that cluster load balancer reaches ready state.
AssertClusterMachinesReady verifies that cluster machines reach ready state.
AssertClusterMachinesStage verifies that cluster machines reach a specified phase.
AssertClusterStatusReady verifies that cluster status reaches ready state.
AssertClusterTemplateFlow verifies cluster template operations.
AssertConfigPatchMachineSet applies config patch on a single machine set.
AssertConfigPatchSingleClusterMachine applies a config patch on a single cluster machine.
AssertConfigPatchWithInvalidConfig tests that a machine is able to recover from a patch with broken config when the broken patch is deleted.
AssertConfigPatchWithReboot tests that config patch that requires reboot gets applied to a single node, the node reboots and gets back.
AssertControlPlaneCanBeRestoredFromBackup asserts that the control plane is recreated with the bootstrap spec pointing to the most recent etcd backup.
AssertControlPlaneForceReplaceMachine freezes a control plane machine, scales controlplane by one, destroys and wipes frozen machine.
AssertDestroyCluster destroys a cluster and verifies that all dependent resources are gone.
AssertDownloadUsingCLI verifies generated image download using omnictl.
AssertEtcdAutomaticBackupIsCreated asserts that automatic etcd backups are created.
AssertEtcdManualBackupIsCreated creates a manual etcd backup and asserts the status.
AssertEtcdMembershipMatchesOmniResources checks that etcd members are in sync with the Omni MachineStatus information.
AssertExtensionIsPresent asserts that the extension "hello-world-service" is present on all machines in the cluster.
AssertForceRemoveWorkerNode destroys a Link for the worker node and verifies that allocated Machine is removed as part of a cluster.
AssertInfraMachinesAreAllocated asserts that the machines that belong to the given cluster and managed by a static infra provider are marked as allocated in the related resources.
AssertKubernetesAPIAccessViaOmni verifies that cluster kubeconfig works.
AssertKubernetesDeploymentHasRunningPods verifies that a deployment has running pods.
AssertKubernetesDeploymentIsCreated verifies that a test deployment either already exists or otherwise gets created.
AssertKubernetesNodeAudit tests the Kubernetes node audit feature (KubernetesNodeAuditController) by doing the following: 1.
AssertKubernetesNodesState asserts two things for the given new cluster name: 1.
AssertKubernetesSecretHasValue verifies that a test secret has a specific value.
AssertKubernetesSecretIsCreated verifies that a test secret either already exists or otherwise gets created.
AssertKubernetesUpgradeFlow verifies Kubernetes upgrade flow.
AssertKubernetesUpgradeIsRevertible verifies reverting a failed Kubernetes upgrade.
AssertLargeImmediateConfigApplied tests that config patch that be applied immediately (without reboot) gets applied to all the nodes.
AssertLinksConnected verifies that all SideroLink connections are operational.
AssertMachinesHaveLogs verifies that all machines have their kernel logs coming.
AssertMachineShouldBeUpgradedInMaintenanceMode verifies machine upgrade in maintenance mode.
AssertMachinesMatchLinks verifies that all SideroLink connections are discovered as Machines.
AssertMachinesShouldBeDeprovisioned removes the machine request set and checks that all related links were deleted.
AssertMachinesShouldBeProvisioned creates a machine request set and waits until all requests are fulfilled.
AssertMachineStatus verifies that all machines have their MachineStatus populated.
AssertMaintenanceTestConfigIsPresent asserts that the test configuration is present on a machine in maintenance mode.
AssertNumberOfLinks verifies that machines are discovered by the SideroLink.
AssertOmniconfigDownload verifies getting Omni client configuration (omniconfig).
AssertPublicKeyWithLongLifetimeNotRegistered tests the registration of a public key with a longer than maximum allowed lifetime.
AssertPublicKeyWithoutLifetimeNotRegistered tests the registration of a public key without a lifetime.
AssertRegisterPublicKeyWithUnknownEmail tests the registration of a public key with an unknown email.
AssertResourceAuthz tests the authorization checks of the resources (state).
AssertResourceAuthzWithACL tests the authorization checks of with ACLs.
AssertServiceAccountAPIFlow tests the service account lifecycle and API calls using it.
AssertSomeImagesAreDownloadable verifies generated image download.
AssertStatsLimits checks that metrics don't show any spikes of resource reads/writes, controller wakeups.
AssertSupportBundleContents tries to upgrade get Talos/Omni support bundle, and verifies that it has some contents.
AssertTalosAPIAccessViaOmni verifies that both instance-wide and cluster-wide `talosconfig`s work with Omni Talos API proxy.
AssertTalosMaintenanceAPIAccessViaOmni verifies that cluster-wide `talosconfig` gives access to Talos nodes running in maintenance mode.
AssertTalosMembersMatchOmni checks that Talos discovery service members are in sync with the machines attached to the cluster.
AssertTalosSchematicUpdateFlow verifies Talos schematic update flow.
AssertTalosServiceIsRestarted verifies that Talos service is restarted on the nodes that match given cluster machine label query options.
AssertTalosUpgradeFlow verifies Talos upgrade flow to the new Talos version.
AssertTalosUpgradeIsCancelable tries to upgrade Talos version, and verifies that upgrade starts on one of the nodes and immediately reverts it back.
AssertTalosUpgradeIsRevertible tries to upgrade to invalid Talos version, and verifies that upgrade starts, fails, and can be reverted.
AssertTalosVersion verifies Talos version on the nodes.
AssertUnallocatedMachineDestroyFlow destroys a siderolink.Link resource and verifies that unallocated Machine is removed.
AssertUserCLI verifies user management cli commands.
AssertWorkerNodesRollingConfigUpdate tests that config patch rollout parallelism is respected.
AssertWorkerNodesRollingScaleDown tests that config patch rollout parallelism is respected.
AssertWorkloadProxy tests the workload proxy feature.
CreateCluster verifies cluster creation.
CreateClusterWithMachineClass verifies cluster creation.
DestroyAllClusterRelatedResources cleans up the state from the previous runs.
DestroyCluster destroys a cluster and waits for it to be destroyed.
DestroyInfraMachines removes siderolink.Link resources for all machines managed by a static infra provider, and asserts that the related infra.Machine and infra.MachineStatus resources are deleted.
KubernetesBootstrapManifestSync syncs kubernetes bootstrap manifests.
ReplaceControlPlanes replaces controlplane nodes.
Run the integration tests.
ScaleClusterDown scales cluster down.
ScaleClusterMachineSets scales the cluster with machine sets which are using machine classes.
ScaleClusterUp scales up the cluster.
TestBlockClusterAndTalosAPIAndKubernetesShouldBeReady is a reusable block of assertions that can be used to verify that a cluster is fully ready and that Omni API proxies work, and Kubernetes version is correct, and Kubernetes usage metrics were collected.
TestBlockClusterShouldBeReady is a reusable block of assertions that can be used to verify that a cluster is fully ready.
TestBlockCreateClusterFromEtcdBackup is a reusable block of assertions that can be used to verify that a new cluster can be created from another cluster's etcd backup.
TestBlockKubernetesDeploymentCreateAndRunning is a reusable block of assertions that can be used to verify that a Kubernetes deployment is created and has running pods.
TestBlockProxyAPIAccessShouldWork is a reusable block of assertions that can be used to verify that Omni API proxies work.
TestBlockRestoreEtcdFromLatestBackup is a reusable block of assertions that can be used to verify that a cluster's control plane can be broken, destroyed and then restored from an etcd backup.
TestGroupClusterCreateAndReady is a reusable group of tests that can be used to verify that a cluster is created and ready.
UpdateExtensions updates the extensions on all the machines of the given cluster.

# Constants

HelloWorldServiceExtensionName is the name of the sample hello world extension used for testing.
QemuGuestAgentExtensionName is the name of the qemu guest agent extension used for testing.

# Structs

ClusterOptions are the options for cluster creation.
MachineOptions are the options for machine creation.
MachineProviderConfig keeps the configuration of the infra provider for the machine provision config.
MachineProvisionConfig tells the test to provision machines from the infra provider.
Options for the test runner.

# Type aliases

BeforeClusterCreateFunc is a function that is called before a cluster is created.
FreezeAMachineFunc is a function to freeze a machine by UUID.
HTTPRequestSignerFunc is function to sign the HTTP request.
RestartAMachineFunc is a function to restart a machine by UUID.
TalosAPIKeyPrepareFunc is a function to prepare a public key for Talos API auth.
TestFunc is a testing function prototype.
WipeAMachineFunc is a function to wipe a machine by UUID.