upsyncer

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const UpsyncDiffAnnotationPrefix = "internal.workload.kcp.dev/upsyncdiff"

UpsyncDiffAnnotationPrefix is an internal annotation used on downstream resources to specify a transformation that should be applied during the Upsyncing of the resource to upstream. Format of the annotation is JSONPatch

Variables

This section is empty.

Functions

func WithStaticLabelSelectorAndInWriteCallsCheck

func WithStaticLabelSelectorAndInWriteCallsCheck(labelSelector labels.Requirements) forwardingregistry.StorageWrapper

WithStaticLabelSelectorAndInWriteCallsCheck returns a StorageWrapper that adds the given label selector to the reading calls (Get, List and Watch), but also checks that write calls (Create or Update) are refused with an error if the resource would not not matched by the given label selector

Types

type UpsyncerResourceTransformer

type UpsyncerResourceTransformer struct{}

UpsyncerResourceTransformer defines a very simple transformer which transforms the resource by applying a the JSON patch found in the `internal.workload.kcp.dev/upsyncdiff` annotation

func (*UpsyncerResourceTransformer) AfterRead

func (*UpsyncerResourceTransformer) BeforeWrite

Jump to

Keyboard shortcuts

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