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 PrefixSuffixTransformer; DO NOT EDIT.
Code generated by pluginator on ReplicaCountTransformer; DO NOT EDIT.
Code generated by pluginator on SecretGenerator; DO NOT EDIT.
Index ¶
- type AnnotationsTransformerPlugin
- type ConfigMapGeneratorPlugin
- type HashTransformerPlugin
- type ImageTagTransformerPlugin
- type InventoryTransformerPlugin
- type LabelTransformerPlugin
- type LegacyOrderTransformerPlugin
- type NamespaceTransformerPlugin
- type PatchJson6902TransformerPlugin
- type PrefixSuffixTransformerPlugin
- type ReplicaCountTransformerPlugin
- type SecretGeneratorPlugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 NewAnnotationsTransformerPlugin ¶
func NewAnnotationsTransformerPlugin() *AnnotationsTransformerPlugin
noinspection GoUnusedGlobalVariable
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 NewConfigMapGeneratorPlugin ¶
func NewConfigMapGeneratorPlugin() *ConfigMapGeneratorPlugin
noinspection GoUnusedGlobalVariable
type HashTransformerPlugin ¶
type HashTransformerPlugin struct {
// contains filtered or unexported fields
}
func NewHashTransformerPlugin ¶
func NewHashTransformerPlugin() *HashTransformerPlugin
noinspection GoUnusedGlobalVariable
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 NewImageTagTransformerPlugin ¶
func NewImageTagTransformerPlugin() *ImageTagTransformerPlugin
noinspection GoUnusedGlobalVariable
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 NewInventoryTransformerPlugin ¶
func NewInventoryTransformerPlugin() *InventoryTransformerPlugin
noinspection GoUnusedGlobalVariable
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.
func NewLabelTransformerPlugin ¶
func NewLabelTransformerPlugin() *LabelTransformerPlugin
noinspection GoUnusedGlobalVariable
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 NewLegacyOrderTransformerPlugin ¶
func NewLegacyOrderTransformerPlugin() *LegacyOrderTransformerPlugin
noinspection GoUnusedGlobalVariable
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 NewNamespaceTransformerPlugin ¶
func NewNamespaceTransformerPlugin() *NamespaceTransformerPlugin
noinspection GoUnusedGlobalVariable
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 NewPatchJson6902TransformerPlugin ¶
func NewPatchJson6902TransformerPlugin() *PatchJson6902TransformerPlugin
noinspection GoUnusedGlobalVariable
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 NewPrefixSuffixTransformerPlugin ¶
func NewPrefixSuffixTransformerPlugin() *PrefixSuffixTransformerPlugin
noinspection GoUnusedGlobalVariable
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 NewReplicaCountTransformerPlugin ¶
func NewReplicaCountTransformerPlugin() *ReplicaCountTransformerPlugin
noinspection GoUnusedGlobalVariable
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 NewSecretGeneratorPlugin ¶
func NewSecretGeneratorPlugin() *SecretGeneratorPlugin
noinspection GoUnusedGlobalVariable