types

package
v2.24.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Overview

Package types contains types used in Kluctl projects +kubebuilder:object:generate=true

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateConflictResolutionConfig added in v2.24.0

func ValidateConflictResolutionConfig(sl validator.StructLevel)

func ValidateDeleteObjectItemConfig

func ValidateDeleteObjectItemConfig(sl validator.StructLevel)

func ValidateDeploymentItemConfig

func ValidateDeploymentItemConfig(sl validator.StructLevel)

func ValidateFixedImage added in v2.21.0

func ValidateFixedImage(sl validator.StructLevel)

func ValidateGitProject

func ValidateGitProject(sl validator.StructLevel)

func ValidateHelmChartConfig2 added in v2.18.0

func ValidateHelmChartConfig2(sl validator.StructLevel)

func ValidateIgnoreForDiffItemConfig added in v2.19.4

func ValidateIgnoreForDiffItemConfig(sl validator.StructLevel)

func ValidateOciProject added in v2.22.0

func ValidateOciProject(sl validator.StructLevel)

func ValidateVarsSource added in v2.11.0

func ValidateVarsSource(sl validator.StructLevel)

func ValidateVarsSourceClusterConfigMapOrSecret added in v2.13.0

func ValidateVarsSourceClusterConfigMapOrSecret(sl validator.StructLevel)

func ValidateVarsSourceClusterObject added in v2.23.0

func ValidateVarsSourceClusterObject(sl validator.StructLevel)

func ValidateWaitReadinessObjectItemConfig added in v2.23.0

func ValidateWaitReadinessObjectItemConfig(sl validator.StructLevel)

Types

type AwsConfig added in v2.22.0

type AwsConfig struct {
	Profile        *string            `json:"profile,omitempty"`
	ServiceAccount *ServiceAccountRef `json:"serviceAccount,omitempty"`
}

func (*AwsConfig) DeepCopy added in v2.22.0

func (in *AwsConfig) DeepCopy() *AwsConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsConfig.

func (*AwsConfig) DeepCopyInto added in v2.22.0

func (in *AwsConfig) DeepCopyInto(out *AwsConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConflictResolutionAction added in v2.24.0

type ConflictResolutionAction string
const (
	ConflictResolutionIgnore     ConflictResolutionAction = "ignore"
	ConflictResolutionForceApply ConflictResolutionAction = "force-apply"
)

type ConflictResolutionConfig added in v2.24.0

type ConflictResolutionConfig struct {
	FieldPath      SingleStringOrList       `json:"fieldPath,omitempty"`
	FieldPathRegex SingleStringOrList       `json:"fieldPathRegex,omitempty"`
	Manager        SingleStringOrList       `json:"manager,omitempty"`
	Group          *string                  `json:"group,omitempty"`
	Kind           *string                  `json:"kind,omitempty"`
	Name           *string                  `json:"name,omitempty"`
	Namespace      *string                  `json:"namespace,omitempty"`
	Action         ConflictResolutionAction `json:"action" validate:"required,oneof=ignore force-apply"`
}

func (*ConflictResolutionConfig) DeepCopy added in v2.24.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConflictResolutionConfig.

func (*ConflictResolutionConfig) DeepCopyInto added in v2.24.0

func (in *ConflictResolutionConfig) DeepCopyInto(out *ConflictResolutionConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DeleteObjectItemConfig

type DeleteObjectItemConfig struct {
	ObjectRefItem
}

func (*DeleteObjectItemConfig) DeepCopy added in v2.20.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeleteObjectItemConfig.

func (*DeleteObjectItemConfig) DeepCopyInto added in v2.20.0

func (in *DeleteObjectItemConfig) DeepCopyInto(out *DeleteObjectItemConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DeploymentArg

type DeploymentArg struct {
	Name    string                `json:"name" validate:"required"`
	Default *apiextensionsv1.JSON `json:"default,omitempty"`
}

func (*DeploymentArg) DeepCopy added in v2.20.0

func (in *DeploymentArg) DeepCopy() *DeploymentArg

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentArg.

func (*DeploymentArg) DeepCopyInto added in v2.20.0

func (in *DeploymentArg) DeepCopyInto(out *DeploymentArg)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DeploymentItemConfig

type DeploymentItemConfig struct {
	Path          *string                  `json:"path,omitempty"`
	Include       *string                  `json:"include,omitempty"`
	Git           *GitProject              `json:"git,omitempty"`
	Oci           *OciProject              `json:"oci,omitempty"`
	DeleteObjects []DeleteObjectItemConfig `json:"deleteObjects,omitempty"`

	Tags    []string `json:"tags,omitempty"`
	Barrier bool     `json:"barrier,omitempty"`
	Message *string  `json:"message,omitempty"`

	WaitReadiness        bool                            `json:"waitReadiness,omitempty"`
	WaitReadinessObjects []WaitReadinessObjectItemConfig `json:"waitReadinessObjects,omitempty"`

	Args     *uo.UnstructuredObject `json:"args,omitempty"`
	PassVars bool                   `json:"passVars,omitempty"`
	Vars     []VarsSource           `json:"vars,omitempty"`

	SkipDeleteIfTags bool   `json:"skipDeleteIfTags,omitempty"`
	OnlyRender       bool   `json:"onlyRender,omitempty"`
	AlwaysDeploy     bool   `json:"alwaysDeploy,omitempty"`
	When             string `json:"when,omitempty"`

	// these are only allowed when writing the command result
	RenderedHelmChartConfig *HelmChartConfig         `json:"renderedHelmChartConfig,omitempty"`
	RenderedObjects         []k8s.ObjectRef          `json:"renderedObjects,omitempty"`
	RenderedInclude         *DeploymentProjectConfig `json:"renderedInclude,omitempty"`
}

func (*DeploymentItemConfig) DeepCopy added in v2.20.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentItemConfig.

func (*DeploymentItemConfig) DeepCopyInto added in v2.20.0

func (in *DeploymentItemConfig) DeepCopyInto(out *DeploymentItemConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DeploymentProjectConfig

type DeploymentProjectConfig struct {
	Vars          []VarsSource         `json:"vars,omitempty"`
	SealedSecrets *SealedSecretsConfig `json:"sealedSecrets,omitempty"`

	When string `json:"when,omitempty"`

	Deployments []DeploymentItemConfig `json:"deployments,omitempty"`

	CommonLabels      map[string]string `json:"commonLabels,omitempty"`
	CommonAnnotations map[string]string `json:"commonAnnotations,omitempty"`
	OverrideNamespace *string           `json:"overrideNamespace,omitempty"`
	Tags              []string          `json:"tags,omitempty"`

	IgnoreForDiff      []IgnoreForDiffItemConfig  `json:"ignoreForDiff,omitempty"`
	ConflictResolution []ConflictResolutionConfig `json:"conflictResolution,omitempty"`
}

func (*DeploymentProjectConfig) DeepCopy added in v2.20.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentProjectConfig.

func (*DeploymentProjectConfig) DeepCopyInto added in v2.20.0

func (in *DeploymentProjectConfig) DeepCopyInto(out *DeploymentProjectConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FixedImage

type FixedImage struct {
	Image         *string        `json:"image,omitempty"`
	ImageRegex    *string        `json:"imageRegex,omitempty"`
	ResultImage   string         `json:"resultImage" validate:"required"`
	DeployedImage *string        `json:"deployedImage,omitempty"`
	Namespace     *string        `json:"namespace,omitempty"`
	Object        *k8s.ObjectRef `json:"object,omitempty"`
	Deployment    *string        `json:"deployment,omitempty"`
	Container     *string        `json:"container,omitempty"`
	DeployTags    []string       `json:"deployTags,omitempty"`
	DeploymentDir *string        `json:"deploymentDir,omitempty"`
}

func (*FixedImage) DeepCopy added in v2.20.0

func (in *FixedImage) DeepCopy() *FixedImage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FixedImage.

func (*FixedImage) DeepCopyInto added in v2.20.0

func (in *FixedImage) DeepCopyInto(out *FixedImage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FixedImagesConfig

type FixedImagesConfig struct {
	Images []FixedImage `json:"images,omitempty"`
}

func (*FixedImagesConfig) DeepCopy added in v2.20.0

func (in *FixedImagesConfig) DeepCopy() *FixedImagesConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FixedImagesConfig.

func (*FixedImagesConfig) DeepCopyInto added in v2.20.0

func (in *FixedImagesConfig) DeepCopyInto(out *FixedImagesConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GitFile added in v2.23.0

type GitFile struct {
	Glob         string `json:"glob" validate:"required"`
	Render       bool   `json:"render,omitempty"`
	ParseYaml    bool   `json:"parseYaml,omitempty"`
	YamlMultiDoc bool   `json:"yamlMultiDoc,omitempty"`
}

func (*GitFile) DeepCopy added in v2.23.0

func (in *GitFile) DeepCopy() *GitFile

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitFile.

func (*GitFile) DeepCopyInto added in v2.23.0

func (in *GitFile) DeepCopyInto(out *GitFile)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GitFileMatch added in v2.23.0

type GitFileMatch struct {
	File    GitFile               `json:"file"`
	Path    string                `json:"path"`
	Size    int32                 `json:"size"`
	Content string                `json:"content"`
	Parsed  *runtime.RawExtension `json:"parsed,omitempty"`
}

func (*GitFileMatch) DeepCopy added in v2.23.0

func (in *GitFileMatch) DeepCopy() *GitFileMatch

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitFileMatch.

func (*GitFileMatch) DeepCopyInto added in v2.23.0

func (in *GitFileMatch) DeepCopyInto(out *GitFileMatch)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GitFilesRefMatch added in v2.23.0

type GitFilesRefMatch struct {
	Ref    GitRef `json:"ref"`
	RefStr string `json:"refStr"`

	Files       []GitFileMatch          `json:"files"`
	FilesByPath map[string]GitFileMatch `json:"filesByPath"`
	FilesTree   *uo.UnstructuredObject  `json:"filesTree"`
}

func (*GitFilesRefMatch) DeepCopy added in v2.23.0

func (in *GitFilesRefMatch) DeepCopy() *GitFilesRefMatch

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitFilesRefMatch.

func (*GitFilesRefMatch) DeepCopyInto added in v2.23.0

func (in *GitFilesRefMatch) DeepCopyInto(out *GitFilesRefMatch)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GitProject

type GitProject struct {
	Url    GitUrl  `json:"url" validate:"required"`
	Ref    *GitRef `json:"ref,omitempty"`
	SubDir string  `json:"subDir,omitempty"`
}

func (*GitProject) DeepCopy added in v2.20.0

func (in *GitProject) DeepCopy() *GitProject

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitProject.

func (*GitProject) DeepCopyInto added in v2.20.0

func (in *GitProject) DeepCopyInto(out *GitProject)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GitProject) UnmarshalJSON added in v2.20.0

func (gp *GitProject) UnmarshalJSON(b []byte) error

type GitRef added in v2.21.0

type GitRef struct {
	// Branch to use.
	// +optional
	Branch string `json:"branch,omitempty"`

	// Tag to use.
	// +optional
	Tag string `json:"tag,omitempty"`

	// Ref is only used to keep compatibility to the old string based ref field in GitProject
	// You are not allowed to use it directly
	Ref string `json:"-"`

	// Commit SHA to use.
	// +optional
	Commit string `json:"commit,omitempty"`
}

func ParseGitRef added in v2.21.0

func ParseGitRef(s string) (GitRef, error)

func (*GitRef) DeepCopy added in v2.21.0

func (in *GitRef) DeepCopy() *GitRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRef.

func (*GitRef) DeepCopyInto added in v2.21.0

func (in *GitRef) DeepCopyInto(out *GitRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (GitRef) MarshalJSON added in v2.21.0

func (ref GitRef) MarshalJSON() ([]byte, error)

func (*GitRef) String added in v2.21.0

func (ref *GitRef) String() string

func (*GitRef) UnmarshalJSON added in v2.21.0

func (ref *GitRef) UnmarshalJSON(b []byte) error

type GitUrl added in v2.20.0

type GitUrl struct {
	url.URL `json:"-"`
}

+kubebuilder:validation:Type=string

func ParseGitUrl added in v2.20.0

func ParseGitUrl(u string) (*GitUrl, error)

func ParseGitUrlMust added in v2.20.0

func ParseGitUrlMust(u string) *GitUrl

func (*GitUrl) DeepCopy added in v2.20.0

func (in *GitUrl) DeepCopy() *GitUrl

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitUrl.

func (*GitUrl) DeepCopyInto added in v2.20.0

func (in *GitUrl) DeepCopyInto(out *GitUrl)

func (*GitUrl) IsSsh added in v2.20.0

func (u *GitUrl) IsSsh() bool

func (GitUrl) MarshalJSON added in v2.20.0

func (u GitUrl) MarshalJSON() ([]byte, error)

func (*GitUrl) Normalize added in v2.20.0

func (u *GitUrl) Normalize() *GitUrl

func (*GitUrl) NormalizePort added in v2.20.0

func (u *GitUrl) NormalizePort() string

func (*GitUrl) RepoKey added in v2.20.0

func (u *GitUrl) RepoKey() RepoKey

func (*GitUrl) UnmarshalJSON added in v2.20.0

func (u *GitUrl) UnmarshalJSON(b []byte) error

type GlobalSealedSecretsConfig

type GlobalSealedSecretsConfig struct {
	Bootstrap      *bool   `json:"bootstrap,omitempty"`
	Namespace      *string `json:"namespace,omitempty"`
	ControllerName *string `json:"controllerName,omitempty"`
}

func (*GlobalSealedSecretsConfig) DeepCopy added in v2.20.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalSealedSecretsConfig.

func (*GlobalSealedSecretsConfig) DeepCopyInto added in v2.20.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HelmChartConfig

type HelmChartConfig struct {
	HelmChartConfig2 `json:"helmChart" validate:"required"`
}

func (*HelmChartConfig) DeepCopy added in v2.20.0

func (in *HelmChartConfig) DeepCopy() *HelmChartConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChartConfig.

func (*HelmChartConfig) DeepCopyInto added in v2.20.0

func (in *HelmChartConfig) DeepCopyInto(out *HelmChartConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HelmChartConfig2

type HelmChartConfig2 struct {
	Repo              string  `json:"repo,omitempty"`
	Path              string  `json:"path,omitempty"`
	CredentialsId     *string `json:"credentialsId,omitempty"`
	ChartName         string  `json:"chartName,omitempty"`
	ChartVersion      string  `json:"chartVersion,omitempty"`
	UpdateConstraints *string `json:"updateConstraints,omitempty"`
	ReleaseName       string  `json:"releaseName" validate:"required"`
	Namespace         *string `json:"namespace,omitempty"`
	Output            *string `json:"output,omitempty"`
	SkipCRDs          bool    `json:"skipCRDs,omitempty"`
	SkipUpdate        bool    `json:"skipUpdate,omitempty"`
	SkipPrePull       bool    `json:"skipPrePull,omitempty"`
}

func (*HelmChartConfig2) DeepCopy added in v2.20.0

func (in *HelmChartConfig2) DeepCopy() *HelmChartConfig2

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChartConfig2.

func (*HelmChartConfig2) DeepCopyInto added in v2.20.0

func (in *HelmChartConfig2) DeepCopyInto(out *HelmChartConfig2)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IgnoreForDiffItemConfig

type IgnoreForDiffItemConfig struct {
	FieldPath      SingleStringOrList `json:"fieldPath,omitempty"`
	FieldPathRegex SingleStringOrList `json:"fieldPathRegex,omitempty"`
	Group          *string            `json:"group,omitempty"`
	Kind           *string            `json:"kind,omitempty"`
	Name           *string            `json:"name,omitempty"`
	Namespace      *string            `json:"namespace,omitempty"`
}

func (*IgnoreForDiffItemConfig) DeepCopy added in v2.20.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IgnoreForDiffItemConfig.

func (*IgnoreForDiffItemConfig) DeepCopyInto added in v2.20.0

func (in *IgnoreForDiffItemConfig) DeepCopyInto(out *IgnoreForDiffItemConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KluctlLibraryProject added in v2.22.0

type KluctlLibraryProject struct {
	Args []DeploymentArg `json:"args,omitempty"`
}

func (*KluctlLibraryProject) DeepCopy added in v2.22.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KluctlLibraryProject.

func (*KluctlLibraryProject) DeepCopyInto added in v2.22.0

func (in *KluctlLibraryProject) DeepCopyInto(out *KluctlLibraryProject)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KluctlProject

type KluctlProject struct {
	Targets       []Target        `json:"targets,omitempty"`
	Args          []DeploymentArg `json:"args,omitempty"`
	SecretsConfig *SecretsConfig  `json:"secretsConfig,omitempty"`
	Discriminator string          `json:"discriminator,omitempty"`
	Aws           *AwsConfig      `json:"aws,omitempty"`
}

func (*KluctlProject) DeepCopy added in v2.20.0

func (in *KluctlProject) DeepCopy() *KluctlProject

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KluctlProject.

func (*KluctlProject) DeepCopyInto added in v2.20.0

func (in *KluctlProject) DeepCopyInto(out *KluctlProject)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ObjectRefItem added in v2.23.0

type ObjectRefItem struct {
	Group     *string `json:"group,omitempty"`
	Kind      *string `json:"kind,omitempty"`
	Name      string  `json:"name" validate:"required"`
	Namespace string  `json:"namespace,omitempty"`
}

func (*ObjectRefItem) DeepCopy added in v2.23.0

func (in *ObjectRefItem) DeepCopy() *ObjectRefItem

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectRefItem.

func (*ObjectRefItem) DeepCopyInto added in v2.23.0

func (in *ObjectRefItem) DeepCopyInto(out *ObjectRefItem)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OciProject added in v2.22.0

type OciProject struct {
	Url    string  `json:"url" validate:"required"`
	Ref    *OciRef `json:"ref,omitempty"`
	SubDir string  `json:"subDir,omitempty"`
}

func (*OciProject) DeepCopy added in v2.22.0

func (in *OciProject) DeepCopy() *OciProject

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OciProject.

func (*OciProject) DeepCopyInto added in v2.22.0

func (in *OciProject) DeepCopyInto(out *OciProject)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OciRef added in v2.22.0

type OciRef struct {
	// Digest is the image digest to pull, takes precedence over SemVer.
	// The value should be in the format 'sha256:<HASH>'.
	// +optional
	Digest string `json:"digest,omitempty"`

	// Tag is the image tag to pull, defaults to latest.
	// +optional
	Tag string `json:"tag,omitempty"`
}

func (*OciRef) DeepCopy added in v2.22.0

func (in *OciRef) DeepCopy() *OciRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OciRef.

func (*OciRef) DeepCopyInto added in v2.22.0

func (in *OciRef) DeepCopyInto(out *OciRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OciRef) String added in v2.22.0

func (ref *OciRef) String() string

type RepoKey added in v2.22.0

type RepoKey struct {
	Type string `json:"-"`
	Host string `json:"-"`
	Path string `json:"-"`
}

+kubebuilder:validation:Type=string

func NewRepoKey added in v2.22.0

func NewRepoKey(type_ string, host string, path string) RepoKey

func NewRepoKeyFromGitUrl added in v2.22.0

func NewRepoKeyFromGitUrl(urlIn string) (RepoKey, error)

func NewRepoKeyFromUrl added in v2.22.0

func NewRepoKeyFromUrl(urlIn string) (RepoKey, error)

func ParseRepoKey added in v2.22.0

func ParseRepoKey(s string, defaultType string) (RepoKey, error)

func (*RepoKey) DeepCopy added in v2.22.0

func (in *RepoKey) DeepCopy() *RepoKey

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepoKey.

func (*RepoKey) DeepCopyInto added in v2.22.0

func (in *RepoKey) DeepCopyInto(out *RepoKey)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (RepoKey) MarshalJSON added in v2.22.0

func (u RepoKey) MarshalJSON() ([]byte, error)

func (RepoKey) String added in v2.22.0

func (u RepoKey) String() string

func (*RepoKey) UnmarshalJSON added in v2.22.0

func (u *RepoKey) UnmarshalJSON(b []byte) error

type SealedSecretsConfig

type SealedSecretsConfig struct {
	OutputPattern *string `json:"outputPattern,omitempty"`
}

func (*SealedSecretsConfig) DeepCopy added in v2.20.0

func (in *SealedSecretsConfig) DeepCopy() *SealedSecretsConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SealedSecretsConfig.

func (*SealedSecretsConfig) DeepCopyInto added in v2.20.0

func (in *SealedSecretsConfig) DeepCopyInto(out *SealedSecretsConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SealingConfig

type SealingConfig struct {
	Args       *uo.UnstructuredObject `json:"args,omitempty"`
	SecretSets []string               `json:"secretSets,omitempty"`
	CertFile   *string                `json:"certFile,omitempty"`
}

func (*SealingConfig) DeepCopy added in v2.20.0

func (in *SealingConfig) DeepCopy() *SealingConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SealingConfig.

func (*SealingConfig) DeepCopyInto added in v2.20.0

func (in *SealingConfig) DeepCopyInto(out *SealingConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretSet

type SecretSet struct {
	Name string       `json:"name" validate:"required"`
	Vars []VarsSource `json:"vars,omitempty"`
}

func (*SecretSet) DeepCopy added in v2.20.0

func (in *SecretSet) DeepCopy() *SecretSet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretSet.

func (*SecretSet) DeepCopyInto added in v2.20.0

func (in *SecretSet) DeepCopyInto(out *SecretSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretsConfig

type SecretsConfig struct {
	SealedSecrets *GlobalSealedSecretsConfig `json:"sealedSecrets,omitempty"`
	SecretSets    []SecretSet                `json:"secretSets,omitempty"`
}

func (*SecretsConfig) DeepCopy added in v2.20.0

func (in *SecretsConfig) DeepCopy() *SecretsConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretsConfig.

func (*SecretsConfig) DeepCopyInto added in v2.20.0

func (in *SecretsConfig) DeepCopyInto(out *SecretsConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceAccountRef added in v2.22.0

type ServiceAccountRef struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

func (*ServiceAccountRef) DeepCopy added in v2.22.0

func (in *ServiceAccountRef) DeepCopy() *ServiceAccountRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountRef.

func (*ServiceAccountRef) DeepCopyInto added in v2.22.0

func (in *ServiceAccountRef) DeepCopyInto(out *ServiceAccountRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SingleStringOrList

type SingleStringOrList []string

func (SingleStringOrList) DeepCopy added in v2.20.0

func (in SingleStringOrList) DeepCopy() SingleStringOrList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SingleStringOrList.

func (SingleStringOrList) DeepCopyInto added in v2.20.0

func (in SingleStringOrList) DeepCopyInto(out *SingleStringOrList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SingleStringOrList) UnmarshalJSON added in v2.20.0

func (s *SingleStringOrList) UnmarshalJSON(b []byte) error

type Target

type Target struct {
	Name          string                 `json:"name"`
	Context       *string                `json:"context,omitempty"`
	Args          *uo.UnstructuredObject `json:"args,omitempty"`
	SealingConfig *SealingConfig         `json:"sealingConfig,omitempty"`
	Aws           *AwsConfig             `json:"aws,omitempty"`
	Images        []FixedImage           `json:"images,omitempty"`
	Discriminator string                 `json:"discriminator,omitempty"`
}

func (*Target) DeepCopy added in v2.20.0

func (in *Target) DeepCopy() *Target

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.

func (*Target) DeepCopyInto added in v2.20.0

func (in *Target) DeepCopyInto(out *Target)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VarSourceAzureKeyVault added in v2.22.0

type VarSourceAzureKeyVault struct {
	// Name or ARN of the secret. In case a name is given, the region must be specified as well
	VaultUri string `json:"vaultUri" validate:"required"`
	// Name of the secret
	SecretName string `json:"secretName" validate:"required"`
}

func (*VarSourceAzureKeyVault) DeepCopy added in v2.22.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VarSourceAzureKeyVault.

func (*VarSourceAzureKeyVault) DeepCopyInto added in v2.22.0

func (in *VarSourceAzureKeyVault) DeepCopyInto(out *VarSourceAzureKeyVault)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VarsSource added in v2.11.0

type VarsSource struct {
	IgnoreMissing *bool `json:"ignoreMissing,omitempty"`
	NoOverride    *bool `json:"noOverride,omitempty"`
	Sensitive     *bool `json:"sensitive,omitempty"`

	Values            *uo.UnstructuredObject              `json:"values,omitempty" isVarsSource:"true"`
	File              *string                             `json:"file,omitempty" isVarsSource:"true"`
	Git               *VarsSourceGit                      `json:"git,omitempty" isVarsSource:"true"`
	GitFiles          *VarsSourceGitFiles                 `json:"gitFiles,omitempty" isVarsSource:"true"`
	ClusterConfigMap  *VarsSourceClusterConfigMapOrSecret `json:"clusterConfigMap,omitempty" isVarsSource:"true"`
	ClusterSecret     *VarsSourceClusterConfigMapOrSecret `json:"clusterSecret,omitempty" isVarsSource:"true"`
	ClusterObject     *VarsSourceClusterObject            `json:"clusterObject,omitempty" isVarsSource:"true"`
	SystemEnvVars     *uo.UnstructuredObject              `json:"systemEnvVars,omitempty" isVarsSource:"true"`
	Http              *VarsSourceHttp                     `json:"http,omitempty" isVarsSource:"true" isVarsSource:"true"`
	AwsSecretsManager *VarsSourceAwsSecretsManager        `json:"awsSecretsManager,omitempty" isVarsSource:"true"`
	GcpSecretManager  *VarsSourceGcpSecretManager         `json:"gcpSecretManager,omitempty" isVarsSource:"true"`
	Vault             *VarsSourceVault                    `json:"vault,omitempty" isVarsSource:"true"`
	AzureKeyVault     *VarSourceAzureKeyVault             `json:"azureKeyVault,omitempty" isVarsSource:"true"`

	TargetPath string `json:"targetPath,omitempty"`

	When string `json:"when,omitempty"`

	// these are only allowed when writing the command result
	RenderedSensitive bool                   `json:"renderedSensitive,omitempty"`
	RenderedVars      *uo.UnstructuredObject `json:"renderedVars,omitempty"`
}

func (*VarsSource) DeepCopy added in v2.20.0

func (in *VarsSource) DeepCopy() *VarsSource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VarsSource.

func (*VarsSource) DeepCopyInto added in v2.20.0

func (in *VarsSource) DeepCopyInto(out *VarsSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VarsSourceAwsSecretsManager added in v2.11.0

type VarsSourceAwsSecretsManager struct {
	// Name or ARN of the secret. In case a name is given, the region must be specified as well
	SecretName string `json:"secretName" validate:"required"`
	// The aws region
	Region *string `json:"region,omitempty"`
	// AWS credentials profile to use. The AWS_PROFILE environemnt variables will take precedence in case it is also set
	Profile *string `json:"profile,omitempty"`
}

func (*VarsSourceAwsSecretsManager) DeepCopy added in v2.20.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VarsSourceAwsSecretsManager.

func (*VarsSourceAwsSecretsManager) DeepCopyInto added in v2.20.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VarsSourceClusterConfigMapOrSecret added in v2.11.0

type VarsSourceClusterConfigMapOrSecret struct {
	Name       string            `json:"name,omitempty"`
	Labels     map[string]string `json:"labels,omitempty"`
	Namespace  string            `json:"namespace" validate:"required"`
	Key        string            `json:"key" validate:"required"`
	TargetPath string            `json:"targetPath,omitempty"`
}

func (*VarsSourceClusterConfigMapOrSecret) DeepCopy added in v2.20.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VarsSourceClusterConfigMapOrSecret.

func (*VarsSourceClusterConfigMapOrSecret) DeepCopyInto added in v2.20.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VarsSourceClusterObject added in v2.23.0

type VarsSourceClusterObject struct {
	Kind       string `json:"kind" validate:"required"`
	ApiVersion string `json:"apiVersion,omitempty"`

	Namespace string `json:"namespace"`

	Name   string            `json:"name,omitempty"`
	Labels map[string]string `json:"labels,omitempty"`
	List   bool              `json:"list,omitempty"`

	Path      string `json:"path" validate:"required"`
	Render    bool   `json:"render,omitempty"`
	ParseYaml bool   `json:"parseYaml,omitempty"`
}

func (*VarsSourceClusterObject) DeepCopy added in v2.23.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VarsSourceClusterObject.

func (*VarsSourceClusterObject) DeepCopyInto added in v2.23.0

func (in *VarsSourceClusterObject) DeepCopyInto(out *VarsSourceClusterObject)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VarsSourceGcpSecretManager added in v2.22.0

type VarsSourceGcpSecretManager struct {
	// Name of the secret. Should be provided in relative resource name format: "projects/my-project/secrets/secret/versions/latest"
	SecretName string `json:"secretName" validate:"required"`
}

func (*VarsSourceGcpSecretManager) DeepCopy added in v2.22.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VarsSourceGcpSecretManager.

func (*VarsSourceGcpSecretManager) DeepCopyInto added in v2.22.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VarsSourceGit added in v2.11.0

type VarsSourceGit struct {
	Url  GitUrl  `json:"url" validate:"required"`
	Ref  *GitRef `json:"ref,omitempty"`
	Path string  `json:"path" validate:"required"`
}

func (*VarsSourceGit) DeepCopy added in v2.20.0

func (in *VarsSourceGit) DeepCopy() *VarsSourceGit

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VarsSourceGit.

func (*VarsSourceGit) DeepCopyInto added in v2.20.0

func (in *VarsSourceGit) DeepCopyInto(out *VarsSourceGit)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VarsSourceGitFiles added in v2.23.0

type VarsSourceGitFiles struct {
	Url GitUrl  `json:"url" validate:"required"`
	Ref *GitRef `json:"ref,omitempty"`

	Files []GitFile `json:"files,omitempty"`
}

func (*VarsSourceGitFiles) DeepCopy added in v2.23.0

func (in *VarsSourceGitFiles) DeepCopy() *VarsSourceGitFiles

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VarsSourceGitFiles.

func (*VarsSourceGitFiles) DeepCopyInto added in v2.23.0

func (in *VarsSourceGitFiles) DeepCopyInto(out *VarsSourceGitFiles)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VarsSourceHttp added in v2.11.0

type VarsSourceHttp struct {
	Url      YamlUrl           `json:"url,omitempty" validate:"required"`
	Method   *string           `json:"method,omitempty"`
	Body     *string           `json:"body,omitempty"`
	Headers  map[string]string `json:"headers,omitempty"`
	JsonPath *string           `json:"jsonPath,omitempty"`
}

func (*VarsSourceHttp) DeepCopy added in v2.20.0

func (in *VarsSourceHttp) DeepCopy() *VarsSourceHttp

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VarsSourceHttp.

func (*VarsSourceHttp) DeepCopyInto added in v2.20.0

func (in *VarsSourceHttp) DeepCopyInto(out *VarsSourceHttp)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VarsSourceVault added in v2.11.2

type VarsSourceVault struct {
	Address string `json:"address" validate:"required"`
	Path    string `json:"path" validate:"required"`
}

func (*VarsSourceVault) DeepCopy added in v2.20.0

func (in *VarsSourceVault) DeepCopy() *VarsSourceVault

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VarsSourceVault.

func (*VarsSourceVault) DeepCopyInto added in v2.20.0

func (in *VarsSourceVault) DeepCopyInto(out *VarsSourceVault)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WaitReadinessObjectItemConfig added in v2.23.0

type WaitReadinessObjectItemConfig struct {
	ObjectRefItem
}

func (*WaitReadinessObjectItemConfig) DeepCopy added in v2.23.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WaitReadinessObjectItemConfig.

func (*WaitReadinessObjectItemConfig) DeepCopyInto added in v2.23.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type YamlUrl added in v2.8.0

type YamlUrl struct {
	url.URL
}

func (*YamlUrl) DeepCopy added in v2.20.0

func (in *YamlUrl) DeepCopy() *YamlUrl

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YamlUrl.

func (*YamlUrl) DeepCopyInto added in v2.20.0

func (in *YamlUrl) DeepCopyInto(out *YamlUrl)

func (YamlUrl) MarshalJSON added in v2.20.0

func (u YamlUrl) MarshalJSON() ([]byte, error)

func (*YamlUrl) UnmarshalJSON added in v2.20.0

func (u *YamlUrl) UnmarshalJSON(b []byte) error

Directories

Path Synopsis
+kubebuilder:object:generate=true
+kubebuilder:object:generate=true
Package result contains result types used in Kluctl projects +kubebuilder:object:generate=true
Package result contains result types used in Kluctl projects +kubebuilder:object:generate=true

Jump to

Keyboard shortcuts

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