changestateintospec

package
v1.120.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(parent *cobra.Command)

func Run

func Run(ctx context.Context, stdout io.Writer, stderr io.Writer, options Options) error

Types

type Options

type Options struct {
	kubecli.ClusterOptions
	kubecli.ObjectOptions

	// NewStateIntoSpecAnnotation is the new value for the state-into-spec annotation
	NewStateIntoSpecAnnotation string

	// FieldOwner is the field-manager owner value to use when making changes
	FieldOwner string

	// DryRun is true if we should not actually make changes, just print the changes we would make
	DryRun bool

	// KeepFields is a list of additional spec fields we should preserve
	KeepFields []string
}

Options configures the behaviour of the ChangeStateIntoSpec operation.

func (*Options) PopulateDefaults

func (o *Options) PopulateDefaults()

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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