util

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const WarnMessageRemovalV1beta1 = "The v1beta1 API version for CRDs and Webhooks is deprecated and is no longer offered since " +
	"Kubernetes 1.22. This flag will be removed in a future release. We " +
	"recommend that you no longer use the v1beta1 API version" +
	"More info: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22"

Variables

This section is empty.

Functions

func IsGolangLegacyLayout added in v1.23.0

func IsGolangLegacyLayout(c config.Config) bool

IsGolangLegacyLayout returns true if c's does not have the plugins configuration.

func RemoveKustomizeCRDManifests added in v1.7.0

func RemoveKustomizeCRDManifests() error

RemoveKustomizeCRDManifests removes items in config/crd relating to CRD conversion webhooks.

func UpdateIfLegacyKey

func UpdateIfLegacyKey(c config.Config) bool

UpdateIfLegacyKey returns true if c's "plugins" map or "layout" value contains a legacy key that may require this plugin be executed, even if the "manifests" key isn't in "plugins".

func UpdateKustomizationsCreateAPI added in v1.7.0

func UpdateKustomizationsCreateAPI() error

UpdateKustomizationsCreateAPI updates certain parts of or removes entire kustomization.yaml files that are either not used by certain CreateAPI plugins or are created by preceding CreateAPI plugins.

func UpdateKustomizationsInit added in v1.7.0

func UpdateKustomizationsInit() error

UpdateKustomizationsInit updates certain parts of or removes entire kustomization.yaml files that are either not used by certain Init plugins or are created by preceding Init plugins.

Types

This section is empty.

Jump to

Keyboard shortcuts

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