hydrate

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterName

func ClusterName(objs *fileobjects.Raw) status.MultiError

ClusterName annotates the given Raw objects with the name of the current cluster.

func ClusterSelectors

func ClusterSelectors(objs *fileobjects.Raw) status.MultiError

ClusterSelectors hydrates the given Raw objects by performing cluster selection to filter out objects which are not specified for the current cluster.

func DeclaredFields

func DeclaredFields(objs *fileobjects.Raw) status.MultiError

DeclaredFields hydrates the given Raw objects by annotating each object with its fields that are declared in Git. This annotation is what enables the Config Sync admission controller webhook to protect these declared fields from being changed by another controller or user.

func DeclaredVersion

func DeclaredVersion(objs *fileobjects.Raw) status.MultiError

DeclaredVersion annotates the given Raw objects with the API Version the object was declared in the repository.

func Filepath

func Filepath(objs *fileobjects.Raw) status.MultiError

Filepath annotates the given Raw objects with the path from the Git repo policy directory to the files which declare them.

func HNCDepth

func HNCDepth(objs *fileobjects.Raw) status.MultiError

HNCDepth hydrates the given Raw objects by annotating each Namespace with its depth to be compatible with the Hierarchy Namespace Controller.

func ObjectNamespaces

func ObjectNamespaces(objs *fileobjects.Raw) status.MultiError

ObjectNamespaces hydrates the given raw Objects by setting the metadata namespace field for objects that are located in a namespace directory but do not have their namespace specified yet.

func PreventDeletion

func PreventDeletion(objs *fileobjects.Raw) status.MultiError

PreventDeletion adds the `client.lifecycle.config.k8s.io/deletion: detach` annotation to special namespaces, which include `default`, `kube-system`, `kube-public`, `kube-node-lease`, and `gatekeeper-system`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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