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 ¶
- func NewAnnotationsTransformerPlugin() resmap.TransformerPlugin
- func NewConfigMapGeneratorPlugin() resmap.GeneratorPlugin
- func NewHashTransformerPlugin() resmap.TransformerPlugin
- func NewImageTagTransformerPlugin() resmap.TransformerPlugin
- func NewInventoryTransformerPlugin() resmap.TransformerPlugin
- func NewLabelTransformerPlugin() resmap.TransformerPlugin
- func NewLegacyOrderTransformerPlugin() resmap.TransformerPlugin
- func NewNamespaceTransformerPlugin() resmap.TransformerPlugin
- func NewPatchJson6902TransformerPlugin() resmap.TransformerPlugin
- func NewPatchStrategicMergeTransformerPlugin() resmap.TransformerPlugin
- func NewPatchTransformerPlugin() resmap.TransformerPlugin
- func NewPrefixSuffixTransformerPlugin() resmap.TransformerPlugin
- func NewReplicaCountTransformerPlugin() resmap.TransformerPlugin
- func NewSecretGeneratorPlugin() resmap.GeneratorPlugin
- type AnnotationsTransformerPlugin
- type ConfigMapGeneratorPlugin
- type HashTransformerPlugin
- type ImageTagTransformerPlugin
- type InventoryTransformerPlugin
- type LabelTransformerPlugin
- type LegacyOrderTransformerPlugin
- type NamespaceTransformerPlugin
- type PatchJson6902TransformerPlugin
- type PatchStrategicMergeTransformerPlugin
- type PatchTransformerPlugin
- type PrefixSuffixTransformerPlugin
- type ReplicaCountTransformerPlugin
- type SecretGeneratorPlugin
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.
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 }
type HashTransformerPlugin ¶
type HashTransformerPlugin struct {
// contains filtered or unexported fields
}
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.
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) Transform ¶
func (p *InventoryTransformerPlugin) Transform(m resmap.ResMap) error
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
- Keys in a ConfigMap's data field are too constrained for this purpose.
- 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.
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.
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.
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 }
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 }
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 }
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.
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.
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 }
Source Files ¶
- AnnotationsTransformer.go
- ConfigMapGenerator.go
- HashTransformer.go
- ImageTagTransformer.go
- InventoryTransformer.go
- LabelTransformer.go
- LegacyOrderTransformer.go
- NamespaceTransformer.go
- PatchJson6902Transformer.go
- PatchStrategicMergeTransformer.go
- PatchTransformer.go
- PrefixSuffixTransformer.go
- ReplicaCountTransformer.go
- SecretGenerator.go