utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PreconditionSpecField = map[string][]string{
	api.ResourceKindCluster: {
		"metadata",
		"spec.cloud",
		"spec.api",
		"spec.masterInternalIp",
		"spec.masterDiskID",
		"spec.networking.dnsDomain",
	},
	api.ResourceKindNodeGroup: {
		"metadata",
		"template.spec.externalIPType",
	},
	cloudapi.ResourceKindCredential: {
		"metadata",
	},
}

TODO: Add restricted field

Functions

func CheckConditionalPrecondition

func CheckConditionalPrecondition(patchData []byte, fns ...mergepatch.PreconditionFunc) error

func GetConditionalPreconditionFunc

func GetConditionalPreconditionFunc(kind string) []mergepatch.PreconditionFunc

func GetPreconditionFunc

func GetPreconditionFunc() []mergepatch.PreconditionFunc

func IsPreconditionFailed

func IsPreconditionFailed(err error) bool

func RequireChainKeyUnchanged

func RequireChainKeyUnchanged(key string) mergepatch.PreconditionFunc

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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