kubeutil

package
v0.0.0-...-0a82dba 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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnotateService

func AnnotateService(
	ctx context.Context,
	client kubernetes.Interface,
	service *v1.Service,
	kv ...string,
) error

AnnotateService takes a list of key/value pairs and applies them as annotations using JSON patch (https://jsonpatch.com/).

func PatchService

func PatchService(
	ctx context.Context,
	client kubernetes.Interface,
	service *v1.Service,
	operations []map[string]any,
) error

PatchServices applies the given patch operations on the given service

func PatchServiceExternalTrafficPolicy

func PatchServiceExternalTrafficPolicy(
	ctx context.Context,
	client kubernetes.Interface,
	service *v1.Service,
	policy v1.ServiceExternalTrafficPolicy,
) error

PatchServiceExternalTrafficPolicy patches the external traffic policy of the given service

Types

This section is empty.

Jump to

Keyboard shortcuts

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