kubernetesk8s.io/kubernetes/pkg/kubectl/apply/strategy Index | Files

package strategy

import "k8s.io/kubernetes/pkg/kubectl/apply/strategy"

Index

Functions

func Create

func Create(options Options) apply.Strategy

Create returns a new apply.Visitor for merging multiple objects together

Types

type Options

type Options struct {
	// FailOnConflict when true will fail patch creation if the recorded and remote
	// have 2 fields set for the same value that cannot be merged.
	// e.g. primitive values, list values with replace strategy, and map values with do
	// strategy
	FailOnConflict bool
}

Options controls how a merge will be executed

Source Files

doc.go merge.go merge_visitor.go replace_visitor.go retain_keys_visitor.go strategic_visitor.go

Version
v1.14.6
Published
Aug 16, 2019
Platform
js/wasm
Imports
2 packages
Last checked
49 seconds ago

Tools for package owners.