clientutil

package
v0.40.1 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateDaemonSet added in v0.19.0

func CreateOrUpdateDaemonSet(ctx context.Context, c client.Client, ss *apps_v1.DaemonSet, l log.Logger) error

CreateOrUpdateDaemonSet applies the given DaemonSet against the client.

func CreateOrUpdateDeployment added in v0.25.0

func CreateOrUpdateDeployment(ctx context.Context, c client.Client, d *apps_v1.Deployment, l log.Logger) error

CreateOrUpdateDeployment applies the given DaemonSet against the client.

func CreateOrUpdateEndpoints added in v0.20.0

func CreateOrUpdateEndpoints(ctx context.Context, c client.Client, eps *v1.Endpoints) error

CreateOrUpdateEndpoints applies the given eps against the client.

func CreateOrUpdateSecret

func CreateOrUpdateSecret(ctx context.Context, c client.Client, s *v1.Secret) error

CreateOrUpdateSecret applies the given secret against the client.

func CreateOrUpdateService

func CreateOrUpdateService(ctx context.Context, c client.Client, svc *v1.Service) error

CreateOrUpdateService applies the given svc against the client.

func CreateOrUpdateStatefulSet

func CreateOrUpdateStatefulSet(ctx context.Context, c client.Client, ss *apps_v1.StatefulSet, l log.Logger) error

CreateOrUpdateStatefulSet applies the given StatefulSet against the client.

func MergePatchContainers

func MergePatchContainers(base, patches []v1.Container) ([]v1.Container, error)

MergePatchContainers adds patches to base using a strategic merge patch and iterating by container name, failing on the first error.

Copied from github.com/prometheus-operator/prometheus-operator/pkg/k8sutil.

func SanitizeVolumeName

func SanitizeVolumeName(name string) string

SanitizeVolumeName ensures that the given volume name is a valid DNS-1123 label accepted by Kubernetes.

Copied from github.com/prometheus-operator/prometheus-operator/pkg/k8sutil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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