config

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KCLRun

type KCLRun struct {
	config.KCLRun `json:",inline" yaml:",inline"`
	Repositories  []RepositorySpec `yaml:"repositories,omitempty"`
}

KCLRun is a custom resource to provider Helm kcl config including KCL source and params.

func FromFile

func FromFile(file string) (*KCLRun, error)

type RepositorySpec

type RepositorySpec struct {
	Name            string `yaml:"name,omitempty"`
	Path            string `yaml:"path,omitempty"`
	URL             string `yaml:"url,omitempty"`
	CaFile          string `yaml:"caFile,omitempty"`
	CertFile        string `yaml:"certFile,omitempty"`
	KeyFile         string `yaml:"keyFile,omitempty"`
	Username        string `yaml:"username,omitempty"`
	Password        string `yaml:"password,omitempty"`
	Managed         string `yaml:"managed,omitempty"`
	OCI             bool   `yaml:"oci,omitempty"`
	PassCredentials string `yaml:"passCredentials,omitempty"`
	SkipTLSVerify   string `yaml:"skipTLSVerify,omitempty"`
}

RepositorySpec that defines values for a helm repo

type TemplateImpl

type TemplateImpl struct {
	*TemplateOptions
}

TemplateImpl is impl for applyOptions

func NewTemplateImpl

func NewTemplateImpl(t *TemplateOptions) *TemplateImpl

NewTemplateImpl creates a new TemplateImpl

func (*TemplateImpl) Concurrency

func (t *TemplateImpl) Concurrency() int

Concurrency returns the concurrency

func (*TemplateImpl) IncludeCRDs

func (t *TemplateImpl) IncludeCRDs() bool

IncludeCRDs returns the include crds

func (*TemplateImpl) IncludeNeeds

func (t *TemplateImpl) IncludeNeeds() bool

IncludeNeeds returns the include needs

func (*TemplateImpl) IncludeTransitiveNeeds

func (t *TemplateImpl) IncludeTransitiveNeeds() bool

IncludeTransitiveNeeds returns the include transitive needs

func (*TemplateImpl) OutputDir

func (t *TemplateImpl) OutputDir() string

OutputDir returns the output dir

func (*TemplateImpl) OutputDirTemplate

func (t *TemplateImpl) OutputDirTemplate() string

OutputDirTemplate returns the output dir template

func (*TemplateImpl) PostRenderer

func (t *TemplateImpl) PostRenderer() string

PostRenderer returns the PostRenderer.

func (*TemplateImpl) Set

func (t *TemplateImpl) Set() []string

Set returns the Set

func (*TemplateImpl) SkipCleanup

func (t *TemplateImpl) SkipCleanup() bool

SkipCleanup returns the skip cleanup

func (*TemplateImpl) SkipDeps

func (t *TemplateImpl) SkipDeps() bool

SkipDeps returns the skip deps

func (*TemplateImpl) SkipNeeds

func (t *TemplateImpl) SkipNeeds() bool

SkipNeeds returns the skip needs

func (*TemplateImpl) SkipTests

func (t *TemplateImpl) SkipTests() bool

SkipTests returns the skip tests

func (*TemplateImpl) Validate

func (t *TemplateImpl) Validate() bool

Validate returns the validate

func (*TemplateImpl) Values

func (t *TemplateImpl) Values() []string

Values returns the values

type TemplateOptions

type TemplateOptions struct {
	// File is the file flag
	File string
	// Set is the set flag
	Set []string
	// Values is the values flag
	Values []string
	// OutputDir is the output dir flag
	OutputDir string
	// OutputDirTemplate is the output dir template flag
	OutputDirTemplate string
	// Concurrency is the concurrency flag
	Concurrency int
	// Validate is the validate flag
	Validate bool
	// IncludeCRDs is the include crds flag
	IncludeCRDs bool
	// SkipTests is the skip tests flag
	SkipTests bool
	// SkipNeeds is the skip needs flag
	SkipNeeds bool
	// IncludeNeeds is the include needs flag
	IncludeNeeds bool
	// IncludeTransitiveNeeds is the include transitive needs flag
	IncludeTransitiveNeeds bool
	// SkipDeps is the skip deps flag
	SkipDeps bool
	// SkipCleanup is the skip cleanup flag
	SkipCleanup bool
	// Propagate '--post-renderer' to helmv3 template and helm install
	PostRenderer string
}

TemplateOptions is the options for the build command

func NewTemplateOptions

func NewTemplateOptions() *TemplateOptions

NewTemplateOptions creates a new Apply

Jump to

Keyboard shortcuts

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