plugins

package
v0.7.24 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// HelmPluginName the default name of the helm plugin
	HelmPluginName = "helm"

	// HelmfilePluginName the default name of the helmfile plugin
	HelmfilePluginName = "helmfile"

	// KptPluginName the default name of the kpt plugin
	KptPluginName = "kpt"

	// KubectlPluginName the default name of the kubectl plugin
	KubectlPluginName = "kubectl"

	// KappPluginName the default name of the kapp plugin
	KappPluginName = "kapp"

	// KustomizePluginName the default name of the kustomize plugin
	KustomizePluginName = "kustomize"

	// HelmVersion the default version of helm to use
	HelmVersion = "3.7.2"

	// HelmfileVersion the default version of helmfile to use
	HelmfileVersion = "0.143.0"

	// KptVersion the default version of kpt to use
	KptVersion = "1.0.0-beta.17"

	// KubectlVersion the default version of kpt to use
	KubectlVersion = "1.21.0"

	// KappVersion the default version of kapp to use
	KappVersion = "0.35.1-cmfork"

	// KustomizeVersion the default version of kustomize to use
	KustomizeVersion = "4.4.1"
)

Variables

View Source
var (
	// Plugins default plugins
	Plugins = []jenkinsv1.Plugin{
		CreateHelmPlugin(HelmVersion),
		CreateHelmfilePlugin(HelmfileVersion),
		CreateKptPlugin(KptVersion),
		CreateKubectlPlugin(KubectlVersion),
		CreateKappPlugin(KappVersion),
		CreateKustomizePlugin(KustomizeVersion),
	}

	// HelmPlugins to install and upgrade
	HelmPlugins = []HelmPlugin{
		{"https://github.com/mumoshu/helm-x", "x"},
		{"https://github.com/hypnoglow/helm-s3", "s3"},
	}
)

Functions

func CreateHelmPlugin

func CreateHelmPlugin(version string) jenkinsv1.Plugin

CreateHelmPlugin creates the helm 3 plugin

func CreateHelmfilePlugin

func CreateHelmfilePlugin(version string) jenkinsv1.Plugin

CreateHelmfilePlugin creates the helmfile plugin

func CreateKappPlugin

func CreateKappPlugin(version string) jenkinsv1.Plugin

CreateKappPlugin creates the kpt 3 plugin

func CreateKptPlugin

func CreateKptPlugin(version string) jenkinsv1.Plugin

CreateKptPlugin creates the kpt 3 plugin

func CreateKubectlPlugin

func CreateKubectlPlugin(version string) jenkinsv1.Plugin

CreateKubectlPlugin creates the kpt 3 plugin

func CreateKustomizePlugin added in v0.6.5

func CreateKustomizePlugin(version string) jenkinsv1.Plugin

CreateKustomizePlugin creates the kustomize plugin

func GetHelmBinary

func GetHelmBinary(version string) (string, error)

GetHelmBinary returns the path to the locally installed helm 3 extension

func GetHelmfileBinary

func GetHelmfileBinary(version string) (string, error)

GetHelmfileBinary returns the path to the locally installed helmfile extension

func GetKappBinary

func GetKappBinary(version string) (string, error)

GetKappBinary returns the path to the locally installed kpt 3 extension

func GetKptBinary

func GetKptBinary(version string) (string, error)

GetKptBinary returns the path to the locally installed kpt 3 extension

func GetKubectlBinary

func GetKubectlBinary(version string) (string, error)

GetKubectlBinary returns the path to the locally installed kpt 3 extension

func PluginBinDir added in v0.2.58

func PluginBinDir() (string, error)

PluginBinDir returns the plugin dir

func PluginBinDirFunc added in v0.2.58

func PluginBinDirFunc(fn func(string) string) (string, error)

PluginBinDirFunc uses a function for looking up env vars for easier testing

Types

type HelmPlugin added in v0.3.24

type HelmPlugin struct {
	URL  string
	Name string
}

Jump to

Keyboard shortcuts

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