helm

package
v1.5.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyCliFlags

func CopyCliFlags(flags *pflag.FlagSet, defaults map[string]string, cliEnvSettings *cli.EnvSettings) error

The kubectl cert-manager plugin has a set of Global Flags that are used to create a cmdutil.Factory object. Unfortunately, this Factory is not usable by helm. Instead, we have to pass a cli.EnvSettings object. This EnvSettings object has private fields and can only be populated by setting the correct flags. Luckally, the flag names are identical, so we can copy all the flags from the kubectl flagset to a fake flagset that is linked to the helm EnvSettings. Furthermore, default values can be provided to this function. These defaults are used to initiate the EnvSettings values and are later overwritten by the kubectl flags that are set.

func CreateCRDs

func CreateCRDs(allCRDs []*resource.Info, cfg *action.Configuration) error

Create CRDs. Before calling this function, we made sure that the CRDs are not yet installed on the cluster.

func FetchResources

func FetchResources(resources []*resource.Info, kubeClient kube.Interface) ([]*resource.Info, error)

Retrieve the latest version of the resources from the kubernetes cluster.

func FilterCrdResources

func FilterCrdResources(resources []*resource.Info) []*resource.Info

Filter resources that are Custom Resource Definitions.

func ParseMultiDocumentYAML

func ParseMultiDocumentYAML(manifest string, kubeClient kube.Interface) ([]*resource.Info, error)

Build a list of resource.Info objects from a rendered manifest.

Types

This section is empty.

Jump to

Keyboard shortcuts

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