deprecation

package
v0.0.0-...-18fdcd4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDeprecations

func CheckDeprecations(kind, apiVersion, k8sVersion, versionsFile string) map[string]string

CheckDeprecations is the main function used to check the overall deprecation status.

Types

type Version

type Version struct {
	// APIVersion is the name of the API version used by specific kind.
	APIVersion string `json:"version" yaml:"version"`
	// Kind is the Object type such as "Deployment" or "Ingress"
	Kind string `json:"kind" yaml:"kind"`
	// Kubernetes version in which the API version is deprecated in
	DeprecatedInVersion string `json:"deprecatedInVersion" yaml:"deprecatedInVersion"`
	// Kubernetes version in which the API version is removed in
	RemovedInVersion string `json:"removedInVersion" yaml:"removedInVersion"`
	// ReplacementAPI is the new supported API version
	ReplacementAPI string `json:"replacementApi" yaml:"replacementApi"`
}

Version describes the deprecated API version for different kinds

type Versions

type Versions struct {
	// DeprecatedVersions are a list of deprecated API versions.
	DeprecatedVersions []*Version `json:"deprecatedVersions" yaml:"deprecatedVersions"`
}

Versions used to map the versions.yaml file.

Jump to

Keyboard shortcuts

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