kind: sigs.k8s.io/kind/pkg/cluster/internal/patch Index | Files

package patch

import "sigs.k8s.io/kind/pkg/cluster/internal/patch"

Package patch contains helpers for applying patches

Index

Package Files

doc.go json6902patch.go kubeyaml.go matchinfo.go mergepatch.go resource.go toml.go

func KubeYAML Uses

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 Uses

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)

Package patch imports 12 packages (graph) and is imported by 1 packages. Updated 2020-04-03. Refresh now. Tools for package owners.