addmergecomment

package
v1.0.0-beta.27 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(paths ...string) error

Process invokes AddMergeComment kyaml filter on the resources in input packages paths

func ProcessWithCleanup

func ProcessWithCleanup(path string) (string, func(), error)

ProcessWithCleanup copies the input directory contents to new temp directory and adds merge comment to the resources in directory it also returns the cleanup function to clean the created temp directory

Types

type AddMergeComment

type AddMergeComment struct{}

AddMergeComment adds merge comments with format "kpt-merge: namespace/name" to all resources in the package

func (*AddMergeComment) Filter

func (amc *AddMergeComment) Filter(object *kyaml.RNode) (*kyaml.RNode, error)

Filter implements kyaml.Filter this filter adds merge comment with format "kpt-merge: namespace/name" to the input resource, if the namespace field doesn't exist on the resource, it uses "default" namespace

Jump to

Keyboard shortcuts

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