mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-17 20:17:03 +02:00
Add sonobuoy runner code with log fetching on failure. Use hand-picked set of e2e tests to run: verify basic pod functionality, verify service connectivity. Add option `--run-e2e` to the `talosctl health` to run quick e2e test to verify cluster health. Add option to run provision tests with custom CNI, run one track of provision tests with Cilium. Bump Cilium to 1.8.2. Talos 0.6 won't uncordon node automatically after upgrade from 0.5, as 0.5 doesn't put annotation. Workaround that in upgrade tests. Bump upgrade test version to 0.6.0 release. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
54 lines
1.6 KiB
Go
54 lines
1.6 KiB
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
// Package cluster provides functions to access, check and inspect Talos clusters.
|
|
package cluster
|
|
|
|
import (
|
|
"context"
|
|
"io"
|
|
|
|
"k8s.io/client-go/kubernetes"
|
|
"k8s.io/client-go/rest"
|
|
|
|
"github.com/talos-systems/talos/pkg/machinery/client"
|
|
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
|
)
|
|
|
|
// ClientProvider builds Talos client by endpoint.
|
|
//
|
|
// Client instance should be cached and closed when Close() is called.
|
|
type ClientProvider interface {
|
|
// Client returns Talos client instance for default (if no endpoints are given) or
|
|
// specific endpoint.
|
|
Client(endpoints ...string) (*client.Client, error)
|
|
// Close client connections.
|
|
Close() error
|
|
}
|
|
|
|
// K8sProvider builds Kubernetes client to access Talos cluster.
|
|
type K8sProvider interface {
|
|
Kubeconfig(ctx context.Context) ([]byte, error)
|
|
K8sRestConfig(ctx context.Context) (*rest.Config, error)
|
|
K8sClient(ctx context.Context) (*kubernetes.Clientset, error)
|
|
}
|
|
|
|
// CrashDumper captures Talos cluster state to the specified writer for debugging.
|
|
type CrashDumper interface {
|
|
CrashDump(ctx context.Context, out io.Writer)
|
|
}
|
|
|
|
// Info describes the Talos cluster.
|
|
type Info interface {
|
|
// Nodes returns list of all node endpoints (IPs).
|
|
Nodes() []string
|
|
// NodesByType return list of node endpoints by type.
|
|
NodesByType(machine.Type) []string
|
|
}
|
|
|
|
// Bootstrapper performs Talos cluster bootstrap.
|
|
type Bootstrapper interface {
|
|
Bootstrap(ctx context.Context, out io.Writer) error
|
|
}
|