util

package
v0.0.0-...-c804474 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 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

func IsGolangLegacyLayout(c config.Config) bool

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

func RemoveKustomizeCRDManifests

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

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

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