patch

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package patch contains helpers for applying patches

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KubeYAML

func KubeYAML(toPatch string, patches []string, patches6902 []config.PatchJSON6902) (string, error)

KubeYAML takes a Kubernetes object YAML document stream to patch, merge patches, and JSON 6902 patches.

It returns a patched a YAML document stream.

Matching is performed on Kubernetes style v1 TypeMeta fields (kind and apiVersion), between the YAML documents and the patches.

Patches match if their kind and apiVersion match a document, with the exception that if the patch does not set apiVersion it will be ignored.

func TOML

func TOML(toPatch string, patches []string, patches6902 []string) (string, error)

TOML patches toPatch with the patches (should be TOML merge patches) and patches6902 (should be JSON 6902 patches)

Types

This section is empty.

Jump to

Keyboard shortcuts

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