helper

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DontReplicateFor

func DontReplicateFor(annotations map[string]string, controller string) (result map[string]string, changed bool)

DontReplicateFor ensures the controller string is not part of the separated list of controller names in the internal.kcp.io/replicate label. This function changes the annotations in-place.

func DontReplicateForValue

func DontReplicateForValue(replicateValue, controller string) (result string, changed bool)

DontReplicateForValue returns the replicate value for the given controller removed.

func ReplicateFor

func ReplicateFor(annotations map[string]string, controller string) (result map[string]string, changed bool)

ReplicateFor ensures the controller string is part of the separated list of controller names in the internal.kcp.io/replicate label. This function changes the annotations in-place.

func ReplicateForValue

func ReplicateForValue(replicateValue, controller string) (result string, changed bool)

ReplicateForValue returns the replicate value for the given controller added.

Types

This section is empty.

Jump to

Keyboard shortcuts

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