Documentation ¶
Index ¶
- Constants
- func GetClientSetWithKubeConfig(kubeConfigFile, context string) *kubernetes.Clientset
- func ReplaceManifestData(mapMetadata *mapping.Metadata, modifiedManifest string, kubeVersionStr string) (string, error)
- func ReplaceManifestUnSupportedAPIs(origManifest, mapFile string, kubeConfig KubeConfig) (string, error)
- type KubeConfig
- type MapOptions
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 ¶
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
Click to show internal directories.
Click to hide internal directories.