common

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const UpgradeDescription = "Kubernetes deprecated API upgrade - DO NOT rollback from this version"

UpgradeDescription is description of why release was upgraded

Variables

This section is empty.

Functions

func GetClientSetWithKubeConfig added in v0.4.0

func GetClientSetWithKubeConfig(kubeConfigFile, context string) *kubernetes.Clientset

GetClientSetWithKubeConfig returns a kubernetes ClientSet

func ReplaceManifestData added in v0.4.0

func ReplaceManifestData(mapMetadata *mapping.Metadata, modifiedManifest string, kubeVersionStr string) (string, error)

ReplaceManifestData scans the release manifest string for deprecated APIs in a given Kubernetes version and replaces their groups and versions if there is a successor, or fully removes the manifest for that specific resource if no successors exist (such as the PodSecurityPolicy API).

func ReplaceManifestUnSupportedAPIs

func ReplaceManifestUnSupportedAPIs(origManifest, mapFile string, kubeConfig KubeConfig) (string, error)

ReplaceManifestUnSupportedAPIs returns a release manifest with deprecated or removed Kubernetes APIs updated to supported APIs

Types

type KubeConfig

type KubeConfig struct {
	Context string
	File    string
}

KubeConfig are the Kubernetes configuration settings

type MapOptions

type MapOptions struct {
	DryRun           bool
	KubeConfig       KubeConfig
	MapFile          string
	ReleaseName      string
	ReleaseNamespace string
}

MapOptions are the options for mapping deprecated APIs in a release

Jump to

Keyboard shortcuts

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