builtin

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 19 Imported by: 3

Documentation

Overview

Code generated by pluginator on AnnotationsTransformer; DO NOT EDIT.

Code generated by pluginator on ConfigMapGenerator; DO NOT EDIT.

Code generated by pluginator on HashTransformer; DO NOT EDIT.

Code generated by pluginator on ImageTagTransformer; DO NOT EDIT.

Code generated by pluginator on InventoryTransformer; DO NOT EDIT.

Code generated by pluginator on LabelTransformer; DO NOT EDIT.

Code generated by pluginator on LegacyOrderTransformer; DO NOT EDIT.

Code generated by pluginator on NamespaceTransformer; DO NOT EDIT.

Code generated by pluginator on PatchJson6902Transformer; DO NOT EDIT.

Code generated by pluginator on PatchStrategicMergeTransformer; DO NOT EDIT.

Code generated by pluginator on PatchTransformer; DO NOT EDIT.

Code generated by pluginator on PrefixSuffixTransformer; DO NOT EDIT.

Code generated by pluginator on ReplicaCountTransformer; DO NOT EDIT.

Code generated by pluginator on SecretGenerator; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnnotationsTransformerPlugin

func NewAnnotationsTransformerPlugin() resmap.TransformerPlugin

func NewConfigMapGeneratorPlugin

func NewConfigMapGeneratorPlugin() resmap.GeneratorPlugin

func NewHashTransformerPlugin

func NewHashTransformerPlugin() resmap.TransformerPlugin

func NewImageTagTransformerPlugin

func NewImageTagTransformerPlugin() resmap.TransformerPlugin

func NewInventoryTransformerPlugin

func NewInventoryTransformerPlugin() resmap.TransformerPlugin

func NewLabelTransformerPlugin

func NewLabelTransformerPlugin() resmap.TransformerPlugin

func NewLegacyOrderTransformerPlugin

func NewLegacyOrderTransformerPlugin() resmap.TransformerPlugin

func NewNamespaceTransformerPlugin

func NewNamespaceTransformerPlugin() resmap.TransformerPlugin

func NewPatchJson6902TransformerPlugin

func NewPatchJson6902TransformerPlugin() resmap.TransformerPlugin

func NewPatchStrategicMergeTransformerPlugin added in v3.0.2

func NewPatchStrategicMergeTransformerPlugin() resmap.TransformerPlugin

func NewPatchTransformerPlugin added in v3.0.3

func NewPatchTransformerPlugin() resmap.TransformerPlugin

func NewPrefixSuffixTransformerPlugin

func NewPrefixSuffixTransformerPlugin() resmap.TransformerPlugin

func NewReplicaCountTransformerPlugin

func NewReplicaCountTransformerPlugin() resmap.TransformerPlugin

func NewSecretGeneratorPlugin

func NewSecretGeneratorPlugin() resmap.GeneratorPlugin

Types

type AnnotationsTransformerPlugin

type AnnotationsTransformerPlugin struct {
	Annotations map[string]string  `json:"annotations,omitempty" yaml:"annotations,omitempty"`
	FieldSpecs  []config.FieldSpec `json:"fieldSpecs,omitempty" yaml:"fieldSpecs,omitempty"`
}

Add the given annotations to the given field specifications.

func (*AnnotationsTransformerPlugin) Config

func (p *AnnotationsTransformerPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, c []byte) (err error)

func (*AnnotationsTransformerPlugin) Transform

type ConfigMapGeneratorPlugin

type ConfigMapGeneratorPlugin struct {
	types.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	types.GeneratorOptions
	types.ConfigMapArgs
	// contains filtered or unexported fields
}

func (*ConfigMapGeneratorPlugin) Config

func (p *ConfigMapGeneratorPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, config []byte) (err error)

func (*ConfigMapGeneratorPlugin) Generate

func (p *ConfigMapGeneratorPlugin) Generate() (resmap.ResMap, error)

type HashTransformerPlugin

type HashTransformerPlugin struct {
	// contains filtered or unexported fields
}

func (*HashTransformerPlugin) Config

func (p *HashTransformerPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, config []byte) (err error)

func (*HashTransformerPlugin) Transform

func (p *HashTransformerPlugin) Transform(m resmap.ResMap) error

Transform appends hash to generated resources.

type ImageTagTransformerPlugin

type ImageTagTransformerPlugin struct {
	ImageTag   image.Image        `json:"imageTag,omitempty" yaml:"imageTag,omitempty"`
	FieldSpecs []config.FieldSpec `json:"fieldSpecs,omitempty" yaml:"fieldSpecs,omitempty"`
}

Find matching image declarations and replace the name, tag and/or digest.

func (*ImageTagTransformerPlugin) Config

func (p *ImageTagTransformerPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, c []byte) (err error)

func (*ImageTagTransformerPlugin) Transform

func (p *ImageTagTransformerPlugin) Transform(m resmap.ResMap) error

type InventoryTransformerPlugin

type InventoryTransformerPlugin struct {
	types.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Policy           string `json:"policy,omitempty" yaml:"policy,omitempty"`
	// contains filtered or unexported fields
}

func (*InventoryTransformerPlugin) Config

func (p *InventoryTransformerPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, c []byte) (err error)

func (*InventoryTransformerPlugin) Transform

Transform generates an inventory object from the input ResMap. This ConfigMap supports the pruning command in the client side tool proposed here: https://github.com/kubernetes/enhancements/pull/810

The inventory data is written to the ConfigMap's annotations, rather than to the key-value pairs in the ConfigMap's data field, since

  1. Keys in a ConfigMap's data field are too constrained for this purpose.
  2. Using annotations allow any object to be used, not just a ConfigMap, should some other object (e.g. some App object) become more desirable for this purpose.

type LabelTransformerPlugin

type LabelTransformerPlugin struct {
	Labels     map[string]string  `json:"labels,omitempty" yaml:"labels,omitempty"`
	FieldSpecs []config.FieldSpec `json:"fieldSpecs,omitempty" yaml:"fieldSpecs,omitempty"`
}

Add the given labels to the given field specifications.

func (*LabelTransformerPlugin) Config

func (p *LabelTransformerPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, c []byte) (err error)

func (*LabelTransformerPlugin) Transform

func (p *LabelTransformerPlugin) Transform(m resmap.ResMap) error

type LegacyOrderTransformerPlugin

type LegacyOrderTransformerPlugin struct{}

Sort the resources using an ordering defined in the Gvk class. This puts cluster-wide basic resources with no dependencies (like Namespace, StorageClass, etc.) first, and resources with a high number of dependencies (like ValidatingWebhookConfiguration) last.

func (*LegacyOrderTransformerPlugin) Config

func (p *LegacyOrderTransformerPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, c []byte) (err error)

Nothing needed for configuration.

func (*LegacyOrderTransformerPlugin) Transform

func (p *LegacyOrderTransformerPlugin) Transform(m resmap.ResMap) (err error)

type NamespaceTransformerPlugin

type NamespaceTransformerPlugin struct {
	types.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	FieldSpecs       []config.FieldSpec `json:"fieldSpecs,omitempty" yaml:"fieldSpecs,omitempty"`
}

Change or set the namespace of non-cluster level resources.

func (*NamespaceTransformerPlugin) Config

func (p *NamespaceTransformerPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, c []byte) (err error)

func (*NamespaceTransformerPlugin) Transform

type PatchJson6902TransformerPlugin

type PatchJson6902TransformerPlugin struct {
	Target types.PatchTarget `json:"target,omitempty" yaml:"target,omitempty"`
	Path   string            `json:"path,omitempty" yaml:"path,omitempty"`
	JsonOp string            `json:"jsonOp,omitempty" yaml:"jsonOp,omitempty"`
	// contains filtered or unexported fields
}

func (*PatchJson6902TransformerPlugin) Config

func (p *PatchJson6902TransformerPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, c []byte) (err error)

func (*PatchJson6902TransformerPlugin) Transform

type PatchStrategicMergeTransformerPlugin added in v3.0.2

type PatchStrategicMergeTransformerPlugin struct {
	Paths   []types.PatchStrategicMerge `json:"paths,omitempty" yaml:"paths,omitempty"`
	Patches string                      `json:"patches,omitempty" yaml:"patches,omitempty"`
	// contains filtered or unexported fields
}

func (*PatchStrategicMergeTransformerPlugin) Config added in v3.0.2

func (p *PatchStrategicMergeTransformerPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, c []byte) (err error)

func (*PatchStrategicMergeTransformerPlugin) Transform added in v3.0.2

type PatchTransformerPlugin added in v3.0.3

type PatchTransformerPlugin struct {
	Path   string          `json:"path,omitempty" yaml:"path,omitempty"`
	Patch  string          `json:"patch,omitempty" yaml:"patch,omitempty"`
	Target *types.Selector `json:"target,omitempty" yaml:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*PatchTransformerPlugin) Config added in v3.0.3

func (p *PatchTransformerPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, c []byte) (err error)

func (*PatchTransformerPlugin) Transform added in v3.0.3

func (p *PatchTransformerPlugin) Transform(m resmap.ResMap) error

type PrefixSuffixTransformerPlugin

type PrefixSuffixTransformerPlugin struct {
	Prefix     string             `json:"prefix,omitempty" yaml:"prefix,omitempty"`
	Suffix     string             `json:"suffix,omitempty" yaml:"suffix,omitempty"`
	FieldSpecs []config.FieldSpec `json:"fieldSpecs,omitempty" yaml:"fieldSpecs,omitempty"`
}

Add the given prefix and suffix to the field.

func (*PrefixSuffixTransformerPlugin) Config

func (p *PrefixSuffixTransformerPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, c []byte) (err error)

func (*PrefixSuffixTransformerPlugin) Transform

type ReplicaCountTransformerPlugin

type ReplicaCountTransformerPlugin struct {
	Replica    types.Replica      `json:"replica,omitempty" yaml:"replica,omitempty"`
	FieldSpecs []config.FieldSpec `json:"fieldSpecs,omitempty" yaml:"fieldSpecs,omitempty"`
}

Find matching replicas declarations and replace the count. Eases the kustomization configuration of replica changes.

func (*ReplicaCountTransformerPlugin) Config

func (p *ReplicaCountTransformerPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, c []byte) (err error)

func (*ReplicaCountTransformerPlugin) Transform

type SecretGeneratorPlugin

type SecretGeneratorPlugin struct {
	types.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	types.GeneratorOptions
	types.SecretArgs
	// contains filtered or unexported fields
}

func (*SecretGeneratorPlugin) Config

func (p *SecretGeneratorPlugin) Config(
	ldr ifc.Loader, rf *resmap.Factory, config []byte) (err error)

func (*SecretGeneratorPlugin) Generate

func (p *SecretGeneratorPlugin) Generate() (resmap.ResMap, error)

Jump to

Keyboard shortcuts

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