types

package
v0.0.0-...-b0cf2fb Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const FromFileSecret = "from-file"
View Source
const KubernetesGenericSecret = "generic"
View Source
const StringLiteralSecret = "string-literal"

Variables

This section is empty.

Functions

This section is empty.

Types

type HelmConfig

type HelmConfig struct {
	Repo       *HelmRepo
	Helm3      bool
	HelmPath   string
	Overrides  map[string]string
	UpdateRepo bool
	Wait       bool
	ValuesFile string
}

type HelmRepo

type HelmRepo struct {
	Name    string
	URL     string
	Version string
}

type InstallerOptions

type InstallerOptions struct {
	Namespace       string
	CreateNamespace bool
	KubeconfigPath  string
	NodeArch        string
	Helm            *HelmConfig
	Verbose         bool
	Secrets         []K8sSecret
}

func DefaultInstallOptions

func DefaultInstallOptions() *InstallerOptions

func (*InstallerOptions) WithHelmRepo

func (o *InstallerOptions) WithHelmRepo(s string) *InstallerOptions

func (*InstallerOptions) WithHelmRepoVersion

func (o *InstallerOptions) WithHelmRepoVersion(s string) *InstallerOptions

func (*InstallerOptions) WithHelmURL

func (o *InstallerOptions) WithHelmURL(s string) *InstallerOptions

func (*InstallerOptions) WithHelmUpdateRepo

func (o *InstallerOptions) WithHelmUpdateRepo(update bool) *InstallerOptions

func (*InstallerOptions) WithInstallNamespace

func (o *InstallerOptions) WithInstallNamespace(b bool) *InstallerOptions

func (*InstallerOptions) WithKubeconfigPath

func (o *InstallerOptions) WithKubeconfigPath(path string) *InstallerOptions

func (*InstallerOptions) WithNamespace

func (o *InstallerOptions) WithNamespace(namespace string) *InstallerOptions

func (*InstallerOptions) WithOverrides

func (o *InstallerOptions) WithOverrides(overrides map[string]string) *InstallerOptions

func (*InstallerOptions) WithSecret

func (o *InstallerOptions) WithSecret(secret K8sSecret) *InstallerOptions

func (*InstallerOptions) WithValuesFile

func (o *InstallerOptions) WithValuesFile(filename string) *InstallerOptions

func (*InstallerOptions) WithWait

func (o *InstallerOptions) WithWait(wait bool) *InstallerOptions

type InstallerOutput

type InstallerOutput struct {
}

type K8sSecret

type K8sSecret struct {
	Type       string
	Name       string
	SecretData []SecretsData
	Namespace  string
}

func NewGenericSecret

func NewGenericSecret(name, namespace string, secretData []SecretsData) K8sSecret

type SecretsData

type SecretsData struct {
	Type  string // file or literal
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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