Documentation ¶
Index ¶
- func CopyCliFlags(flags *pflag.FlagSet, defaults map[string]string, ...) error
- func CreateCRDs(allCRDs []*resource.Info, cfg *action.Configuration) error
- func FetchResources(resources []*resource.Info, kubeClient kube.Interface) ([]*resource.Info, error)
- func FilterCrdResources(resources []*resource.Info) []*resource.Info
- func ParseMultiDocumentYAML(manifest string, kubeClient kube.Interface) ([]*resource.Info, error)
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 ¶
Filter resources that are Custom Resource Definitions.
Types ¶
This section is empty.