crds

package
Version: v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Upgrader

type Upgrader struct {
	// contains filtered or unexported fields
}

Upgrader is a utility to update the CRDs in a helm chart's pre-upgrade hook

func New

func New(namespace string) (*Upgrader, error)

New returns a new Upgrader client

func NewWithClient

func NewWithClient(c client.Client) (*Upgrader, error)

NewWithClient returns a new Upgrader client using the given controller-runtime client.Client

func (*Upgrader) Upgrade

func (u *Upgrader) Upgrade(targetVersion string) ([]unstructured.Unstructured, error)

Upgrade installs the missing CRDs or updates them if they exists already

Source Files

Jump to

Keyboard shortcuts

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