process

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagerFieldsAppender

type ManagerFieldsAppender struct {
}

ManagerFieldsAppender is a processor that appends manager and source fields to a resource. It will return an error if the resource is already managed by another manager.

func (*ManagerFieldsAppender) Process

type NamespaceOverrider

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

NamespaceOverrider is a processor that overrides the namespace of a resource with a target namespace. This is useful when pushing resources to a different context/org than the one they were pulled from.

func NewNamespaceOverrider

func NewNamespaceOverrider(targetNamespace string) *NamespaceOverrider

NewNamespaceOverrider creates a new NamespaceOverrider that will set the namespace of all processed resources to the given target namespace.

func (*NamespaceOverrider) Process

func (n *NamespaceOverrider) Process(r *resources.Resource) error

Process overrides the namespace of the resource with the target namespace. If the resource is empty, it returns immediately without error.

type ServerFieldsStripper

type ServerFieldsStripper struct{}

ServerFieldsStripper is a processor that strips server-side fields from resources.

func (*ServerFieldsStripper) Name

func (m *ServerFieldsStripper) Name() string

Name returns the name of the processor.

func (*ServerFieldsStripper) Process

Process strips server-side fields from resources.

Jump to

Keyboard shortcuts

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