patchtmpl

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplier

func NewApplier(pt *PatcherScheme, opts *filter.Options, includeTemplates bool, templateOpts ...string) options.Applier

NewApplier creates a new options applier instance. The filter indicates keep-only options for what subsets of patches to look for.

func NewApplierWithConfig added in v0.12.0

func NewApplierWithConfig(opts ...ApplierConfig) options.Applier

NewApplierWithConfig creates a new options applier instance with the specified config options.

func NewDefaultApplier

func NewDefaultApplier() options.Applier

NewDefaultApplier creates a default patch template applier.

Types

type ApplierConfig added in v0.12.0

type ApplierConfig func(*applier)

ApplierConfig is a config option that can be passed to NewApplier.

func WithFilterOpts added in v0.12.0

func WithFilterOpts(filterOpts *filter.Options) ApplierConfig

WithFilterOpts modifies NewApplierWithConfig so that the returned Applier uses the specified filter options.

func WithGoTmplOptions added in v0.12.0

func WithGoTmplOptions(goTmplOptions ...string) ApplierConfig

WithGoTmplOptions modifies NewApplierWithConfig so that the returned Applier uses the specified text/template options.

func WithIncludeTemplates added in v0.12.0

func WithIncludeTemplates(include bool) ApplierConfig

WithIncludeTemplates modifies NewApplierWithConfig so that the returned Applier to include or not include patch templates.

func WithPatcherScheme added in v0.12.0

func WithPatcherScheme(pt *PatcherScheme) ApplierConfig

WithPatcherScheme modifies NewApplierWithConfig so that the returned Applier uses the specified patcher scheme.

type PatcherScheme

type PatcherScheme struct {
	KubeScheme *runtime.Scheme
	Codecs     serializer.CodecFactory
}

PatcherScheme wraps Kubernetes schema constructs.

func DefaultPatcherScheme

func DefaultPatcherScheme() *PatcherScheme

DefaultPatcherScheme returns a default scheme with several types built-in.

Jump to

Keyboard shortcuts

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