utils

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureHTTPClientForEtcdBR

func ConfigureHTTPClientForEtcdBR(ctx context.Context, k8sClient client.Client, etcd *druidv1alpha1.Etcd, defaultClient http.Client, phase druidapicommon.LastOperationType) (httpClient http.Client, httpScheme string, errResult *taskhandler.Result)

ConfigureHTTPClientForEtcdBR configures the HTTP client with TLS if backup TLS is enabled. It returns the configured HTTP client, the HTTP scheme to use, and any error result.

func GetEtcd

func GetEtcd(ctx context.Context, k8sClient client.Client, etcdReference types.NamespacedName, phase druidapicommon.LastOperationType) (etcd *druidv1alpha1.Etcd, errResult *taskhandler.Result)

GetEtcd fetches the Etcd object with the given etcdReference.

Types

This section is empty.

Jump to

Keyboard shortcuts

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