deprecation

package
v0.19.6-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDeprecated

func IsDeprecated(obj runtime.Object, currentMajor, currentMinor int) bool

IsDeprecated returns true if obj implements APILifecycleDeprecated() and returns a major/minor version that is non-zero and is <= the specified current major/minor version.

func MajorMinor

func MajorMinor(v version.Info) (int, int, error)

MajorMinor parses a numeric major/minor version from the provided version info. The minor version drops all characters after the first non-digit character:

version.Info{Major:"1", Minor:"2+"} -> 1,2
version.Info{Major:"1", Minor:"2.3-build4"} -> 1,2

func RemovedRelease

func RemovedRelease(obj runtime.Object) string

RemovedRelease returns the major/minor version in which the given object is unavailable (in the form "<major>.<minor>") if the object implements APILifecycleRemoved() to indicate a non-zero removal version, and returns an empty string otherwise.

func WarningMessage

func WarningMessage(obj runtime.Object) string

WarningMessage returns a human-readable deprecation warning if the object implements APILifecycleDeprecated() to indicate a non-zero deprecated major/minor version and has a populated GetObjectKind().GroupVersionKind().

Types

This section is empty.

Jump to

Keyboard shortcuts

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