patcher

package
v0.0.0-...-2735486 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Patcher

func Patcher[T meta.Object](ctx context.Context, client Client[T], in T, opts meta.PatchOptions, functions ...Patch[T]) (T, bool, error)

Types

type Client

type Client[T meta.Object] interface {
	generic.PatchInterface[T]
}

type Patch

type Patch[T meta.Object] func(in T) []patch.Item

func Finalizers

func Finalizers[T meta.Object](finalizers []string) Patch[T]

func Optional

func Optional[T meta.Object](p Patch[T], enabled bool) Patch[T]

func PatchConfigMapData

func PatchConfigMapData(data map[string]string) Patch[*core.ConfigMap]

func PatchMetadata

func PatchMetadata[T meta.Object](expected T) Patch[T]

func PatchServiceOnlyPorts

func PatchServiceOnlyPorts(ports ...core.ServicePort) Patch[*core.Service]

func PatchServicePorts

func PatchServicePorts(ports []core.ServicePort) Patch[*core.Service]

func PatchServicePublishNotReadyAddresses

func PatchServicePublishNotReadyAddresses(publishNotReadyAddresses bool) Patch[*core.Service]

func PatchServiceSelector

func PatchServiceSelector(selector map[string]string) Patch[*core.Service]

func PatchServiceType

func PatchServiceType(t core.ServiceType) Patch[*core.Service]

Jump to

Keyboard shortcuts

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