Documentation
¶
Index ¶
- func CheckInstallScheme(t *testing.T, c client.Client)
- func NewClient(t *testing.T) (client.Client, *rest.Config)
- type KubeActions
- func (ka *KubeActions) CheckDeploymentReplicas(ctx context.Context, prefix, namespace string, expectedReplicas int, ...) error
- func (ka *KubeActions) GetElectedLeader(ctx context.Context, namespace, leaseName string, afterTime metav1.Time, ...) (string, error)
- func (ka *KubeActions) ManageEgress(ctx context.Context, ip, namespace, policyName string, blockTraffic bool, ...) (*networkingv1.NetworkPolicy, error)
- func (ka *KubeActions) MarkAsLeader(namespace, podName string)
- func (ka *KubeActions) ScaleDeploymentAndWait(ctx context.Context, deploymentName, namespace string, replicas int32, ...) error
- func (ka *KubeActions) ScaleEnvoyProxy(envoyProxyName, namespace string, replicas int32) error
- func (ka *KubeActions) WaitForDeploymentReplicaCount(ctx context.Context, deploymentName, namespace string, replicas int32, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KubeActions ¶ added in v1.3.0
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 (*KubeActions) GetElectedLeader ¶ added in v1.3.0
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 (*KubeActions) ScaleEnvoyProxy ¶ added in v1.3.0
func (ka *KubeActions) ScaleEnvoyProxy(envoyProxyName, namespace string, replicas int32) error
Click to show internal directories.
Click to hide internal directories.