kubernetes

package
v1.4.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckInstallScheme

func CheckInstallScheme(t *testing.T, c client.Client)

func NewClient

func NewClient(t *testing.T) (client.Client, *rest.Config)

Types

type KubeActions added in v1.3.0

type KubeActions struct {
	client.Client
	kube.CLIClient
}

func NewKubeHelper added in v1.3.0

func NewKubeHelper(client client.Client, kubeClient kube.CLIClient) *KubeActions

NewKubeHelper consolidates common Kubernetes operations, including deployments, traffic management, and log probing.

func (*KubeActions) CheckDeploymentReplicas added in v1.3.0

func (ka *KubeActions) CheckDeploymentReplicas(ctx context.Context, prefix, namespace string, expectedReplicas int, timeout time.Duration) error

func (*KubeActions) GetElectedLeader added in v1.3.0

func (ka *KubeActions) GetElectedLeader(ctx context.Context, namespace, leaseName string, afterTime metav1.Time, timeout time.Duration) (string, error)

func (*KubeActions) ManageEgress added in v1.3.0

func (ka *KubeActions) ManageEgress(ctx context.Context, ip, namespace, policyName string, blockTraffic bool, scope map[string]string) (*networkingv1.NetworkPolicy, error)

func (*KubeActions) MarkAsLeader added in v1.3.0

func (ka *KubeActions) MarkAsLeader(namespace, podName string)

func (*KubeActions) ScaleDeploymentAndWait added in v1.3.0

func (ka *KubeActions) ScaleDeploymentAndWait(ctx context.Context, deploymentName, namespace string, replicas int32, timeout time.Duration, prefix bool) error

func (*KubeActions) ScaleEnvoyProxy added in v1.3.0

func (ka *KubeActions) ScaleEnvoyProxy(envoyProxyName, namespace string, replicas int32) error

func (*KubeActions) WaitForDeploymentReplicaCount added in v1.3.0

func (ka *KubeActions) WaitForDeploymentReplicaCount(ctx context.Context, deploymentName, namespace string, replicas int32, timeout time.Duration, prefix bool) error

Jump to

Keyboard shortcuts

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