v1alpha1

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the flux.kluctl.io v1alpha1 API group. +kubebuilder:object:generate=true +groupName=flux.kluctl.io

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=flux.kluctl.io

Index

Constants

View Source
const (
	// PruneFailedReason represents the fact that the
	// pruning of the KluctlDeployment failed.
	PruneFailedReason string = "PruneFailed"

	// ArtifactFailedReason represents the fact that the
	// source artifact download failed.
	ArtifactFailedReason string = "ArtifactFailed"

	// PrepareFailedReason represents failure in the kluctl preparation phase
	PrepareFailedReason string = "PrepareFailed"

	// DeployFailedReason represents the fact that the
	// kluctl deploy command failed.
	DeployFailedReason string = "DeployFailed"

	// DependencyNotReadyReason represents the fact that
	// one of the dependencies is not ready.
	DependencyNotReadyReason string = "DependencyNotReady"

	// ReconciliationSucceededReason represents the fact that
	// the reconciliation succeeded.
	ReconciliationSucceededReason string = "ReconciliationSucceeded"

	// ReconciliationSkippedReason represents the fact that
	// the reconciliation was skipped due to an unchanged target.
	ReconciliationSkippedReason string = "ReconciliationSkipped"
)
View Source
const (
	KluctlDeploymentKind      = "KluctlDeployment"
	KluctlDeploymentFinalizer = "finalizers.flux.kluctl.io"
	MaxConditionMessageLength = 20000
	DisabledValue             = "disabled"
	MergeValue                = "merge"
)
View Source
const (
	// HealthyCondition represents the last recorded
	// health assessment result.
	HealthyCondition string = "Healthy"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "flux.kluctl.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func ConvertFixedImageToKluctl added in v0.0.2

func ConvertFixedImageToKluctl(fi FixedImage) types.FixedImage

func ConvertFixedImagesToKluctl added in v0.0.2

func ConvertFixedImagesToKluctl(fi []FixedImage) []types.FixedImage

func ConvertResourceRefToKluctl added in v0.0.2

func ConvertResourceRefToKluctl(ref *ResourceRef) *k8s.ObjectRef

func SetKluctlDeploymentHealthiness

func SetKluctlDeploymentHealthiness(k *KluctlDeployment, status metav1.ConditionStatus, reason, message string)

SetKluctlDeploymentHealthiness sets the HealthyCondition status for a KluctlDeployment.

func SetKluctlDeploymentReadiness

func SetKluctlDeploymentReadiness(k *KluctlDeployment, status metav1.ConditionStatus, reason, message string, revision string, targetHash string, deployResult *CommandResult, pruneResult *CommandResult)

SetKluctlDeploymentReadiness sets the ReadyCondition, ObservedGeneration, and LastAttemptedReconcile, on the KluctlDeployment.

Types

type Change

type Change struct {
	Type        string `json:"type"`
	JsonPath    string `json:"jsonPath"`
	UnifiedDiff string `json:"unifiedDiff,omitempty"`
}

func (*Change) DeepCopy

func (in *Change) DeepCopy() *Change

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

func (*Change) DeepCopyInto

func (in *Change) DeepCopyInto(out *Change)

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

type CommandResult

type CommandResult struct {
	NewObjects     []ResourceRef     `json:"newObjects,omitempty"`
	ChangedObjects []ResourceRef     `json:"changedObjects,omitempty"`
	HookObjects    []ResourceRef     `json:"hookObjects,omitempty"`
	OrphanObjects  []ResourceRef     `json:"orphanObjects,omitempty"`
	DeletedObjects []ResourceRef     `json:"deletedObjects,omitempty"`
	Errors         []DeploymentError `json:"errors,omitempty"`
	Warnings       []DeploymentError `json:"warnings,omitempty"`
	SeenImages     []FixedImage      `json:"seenImages,omitempty"`
}

func ConvertCommandResult

func ConvertCommandResult(cmdResult *types.CommandResult) *CommandResult

func (*CommandResult) DeepCopy

func (in *CommandResult) DeepCopy() *CommandResult

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

func (*CommandResult) DeepCopyInto

func (in *CommandResult) DeepCopyInto(out *CommandResult)

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

type CrossNamespaceSourceReference

type CrossNamespaceSourceReference struct {
	// API version of the referent.
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind of the referent.
	// +kubebuilder:validation:Enum=GitRepository;Bucket
	// +required
	Kind string `json:"kind"`

	// Name of the referent.
	// +required
	Name string `json:"name"`

	// Namespace of the referent, defaults to the namespace of the Kubernetes resource object that contains the reference.
	// +optional
	Namespace string `json:"namespace,omitempty"`
}

CrossNamespaceSourceReference contains enough information to let you locate the typed Kubernetes resource object at cluster level.

func (*CrossNamespaceSourceReference) DeepCopy

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

func (*CrossNamespaceSourceReference) DeepCopyInto

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

func (*CrossNamespaceSourceReference) String

type DeploymentError

type DeploymentError struct {
	Ref   ResourceRef `json:"ref"`
	Error string      `json:"error"`
}

func (*DeploymentError) DeepCopy

func (in *DeploymentError) DeepCopy() *DeploymentError

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

func (*DeploymentError) DeepCopyInto

func (in *DeploymentError) DeepCopyInto(out *DeploymentError)

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"`
	ResultImage   string       `json:"resultImage"`
	DeployedImage *string      `json:"deployedImage,omitempty"`
	RegistryImage *string      `json:"registryImage,omitempty"`
	Namespace     *string      `json:"namespace,omitempty"`
	Object        *ResourceRef `json:"object,omitempty"`
	Deployment    *string      `json:"deployment,omitempty"`
	Container     *string      `json:"container,omitempty"`
	VersionFilter *string      `json:"versionFilter,omitempty"`
	DeployTags    []string     `json:"deployTags,omitempty"`
	DeploymentDir *string      `json:"deploymentDir,omitempty"`
}

func ConvertFixedImage

func ConvertFixedImage(fi types.FixedImage) *FixedImage

func (*FixedImage) DeepCopy

func (in *FixedImage) DeepCopy() *FixedImage

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

func (*FixedImage) DeepCopyInto

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

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

type InvolvedRepo

type InvolvedRepo struct {
	// URL is the url of the involved git repository
	URL string `json:"url"`

	// Patterns is a list of pattern+refs combinations
	Patterns []InvolvedRepoPattern `json:"patterns"`
}

InvolvedRepo represents a git repository and all involved refs

func (*InvolvedRepo) DeepCopy

func (in *InvolvedRepo) DeepCopy() *InvolvedRepo

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

func (*InvolvedRepo) DeepCopyInto

func (in *InvolvedRepo) DeepCopyInto(out *InvolvedRepo)

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

type InvolvedRepoPattern

type InvolvedRepoPattern struct {
	// Pattern is a regex to filter refs
	Pattern string `json:"pattern"`

	// Refs is the filtered list of refs
	Refs map[string]string `json:"refs"`
}

InvolvedRepoPattern represents a ref pattern and the found refs

func (*InvolvedRepoPattern) DeepCopy

func (in *InvolvedRepoPattern) DeepCopy() *InvolvedRepoPattern

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

func (*InvolvedRepoPattern) DeepCopyInto

func (in *InvolvedRepoPattern) DeepCopyInto(out *InvolvedRepoPattern)

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

type KluctlDeployment

type KluctlDeployment struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KluctlDeploymentSpec   `json:"spec,omitempty"`
	Status KluctlDeploymentStatus `json:"status,omitempty"`
}

KluctlDeployment is the Schema for the kluctldeployments API

func KluctlDeploymentNotReady

func KluctlDeploymentNotReady(k KluctlDeployment, revision string, targetHash string, deployResult *CommandResult, pruneResult *CommandResult, reason, message string) KluctlDeployment

KluctlDeploymentNotReady registers a failed apply attempt of the given KluctlDeployment.

func KluctlDeploymentProgressing

func KluctlDeploymentProgressing(k KluctlDeployment, message string) KluctlDeployment

KluctlDeploymentProgressing resets the conditions of the given KluctlDeployment to a single ReadyCondition with status ConditionUnknown.

func KluctlDeploymentReady

func KluctlDeploymentReady(k KluctlDeployment, revision string, targetHash string, deployResult *CommandResult, pruneResult *CommandResult, reason, message string) KluctlDeployment

KluctlDeploymentReady registers a successful deploy attempt of the given KluctlDeployment.

func (KluctlDeployment) CalcForceReconcileHash added in v0.0.2

func (in KluctlDeployment) CalcForceReconcileHash(scheme *runtime.Scheme) (string, error)

CalcForceReconcileHash calculates a hash from all values of the spec that must cause a forced reconciliation

func (*KluctlDeployment) DeepCopy

func (in *KluctlDeployment) DeepCopy() *KluctlDeployment

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

func (*KluctlDeployment) DeepCopyInto

func (in *KluctlDeployment) DeepCopyInto(out *KluctlDeployment)

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

func (*KluctlDeployment) DeepCopyObject

func (in *KluctlDeployment) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (KluctlDeployment) GetConditions

func (in KluctlDeployment) GetConditions() []metav1.Condition

GetConditions returns the status conditions of the object.

func (KluctlDeployment) GetDependsOn

func (in KluctlDeployment) GetDependsOn() []meta.NamespacedObjectReference

GetDependsOn returns the list of dependencies across-namespaces.

func (KluctlDeployment) GetRequeueAfter

func (in KluctlDeployment) GetRequeueAfter() time.Duration

GetRequeueAfter returns the duration after which the KluctlDeployment must be reconciled again.

func (KluctlDeployment) GetRetryInterval

func (in KluctlDeployment) GetRetryInterval() time.Duration

GetRetryInterval returns the retry interval

func (*KluctlDeployment) GetStatusConditions

func (in *KluctlDeployment) GetStatusConditions() *[]metav1.Condition

GetStatusConditions returns a pointer to the Status.Conditions slice. Deprecated: use GetConditions instead.

func (KluctlDeployment) GetTimeout

func (in KluctlDeployment) GetTimeout() time.Duration

GetTimeout returns the timeout with default.

func (*KluctlDeployment) SetConditions

func (in *KluctlDeployment) SetConditions(conditions []metav1.Condition)

SetConditions sets the status conditions on the object.

type KluctlDeploymentList

type KluctlDeploymentList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KluctlDeployment `json:"items"`
}

KluctlDeploymentList contains a list of KluctlDeployment

func (*KluctlDeploymentList) DeepCopy

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

func (*KluctlDeploymentList) DeepCopyInto

func (in *KluctlDeploymentList) DeepCopyInto(out *KluctlDeploymentList)

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

func (*KluctlDeploymentList) DeepCopyObject

func (in *KluctlDeploymentList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KluctlDeploymentSpec

type KluctlDeploymentSpec struct {
	// DependsOn may contain a meta.NamespacedObjectReference slice
	// with references to resources that must be ready before this
	// kluctl project can be deployed.
	// +optional
	DependsOn []meta.NamespacedObjectReference `json:"dependsOn,omitempty"`

	// The interval at which to reconcile the KluctlDeployment.
	// +required
	Interval metav1.Duration `json:"interval"`

	// The interval at which to retry a previously failed reconciliation.
	// When not specified, the controller uses the KluctlDeploymentSpec.Interval
	// value to retry failures.
	// +optional
	RetryInterval *metav1.Duration `json:"retryInterval,omitempty"`

	// Path to the directory containing the .kluctl.yaml file, or the
	// Defaults to 'None', which translates to the root path of the SourceRef.
	// +optional
	Path string `json:"path,omitempty"`

	// Reference of the source where the kluctl project is.
	// The authentication secrets from the source are also used to authenticate
	// dependent git repositories which are cloned while deploying the kluctl project.
	// +required
	SourceRef CrossNamespaceSourceReference `json:"sourceRef"`

	// RegistrySecrets is a list of secret references to be used for image registry authentication.
	// The secrets must either have ".dockerconfigjson" included or "registry", "username" and "password".
	// Additionally, "caFile" and "insecure" can be specified.
	// +optional
	RegistrySecrets []meta.LocalObjectReference `json:"registrySecrets,omitempty"`

	// This flag tells the controller to suspend subsequent kluctl executions,
	// it does not apply to already started executions. Defaults to false.
	// +optional
	Suspend bool `json:"suspend,omitempty"`

	// Timeout for all operations.
	// Defaults to 'Interval' duration.
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`

	// Target specifies the kluctl target to deploy
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=63
	// +required
	Target string `json:"target"`

	// The name of the Kubernetes service account to use while deploying.
	// If not specified, the default service account is used.
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`

	// The KubeConfig for deploying to the target cluster.
	// Specifies the kubeconfig to be used when invoking kluctl. Contexts in this kubeconfig must match
	// the cluster config found in the kluctl project. As alternative, RenameContexts can be used to fix
	// non-matching context names.
	// +optional
	KubeConfig *KubeConfig `json:"kubeConfig"`

	// RenameContexts specifies a list of context rename operations.
	// This is useful when the kluctl project's cluster configs specify contexts that do not match with the
	// contexts found in the kubeconfig while deploying. This is the case when using kubeconfigs generated from
	// service accounts, in which case the context name is always "default".
	// +optional
	RenameContexts []RenameContext `json:"renameContexts,omitempty"`

	// Args specifies dynamic target args.
	// Only arguments defined by 'dynamicArgs' of the target are allowed.
	// +optional
	Args map[string]string `json:"args,omitempty"`

	// UpdateImages instructs kluctl to update dynamic images.
	// Equivalent to using '-u' when calling kluctl.
	// +kubebuilder:default:=false
	// +optional
	UpdateImages bool `json:"updateImages,omitempty"`

	// Images contains a list of fixed image overrides.
	// Equivalent to using '--fixed-images-file' when calling kluctl.
	// +optional
	Images []FixedImage `json:"images,omitempty"`

	// DryRun instructs kluctl to run everything in dry-run mode.
	// Equivalent to using '--dry-run' when calling kluctl.
	// +kubebuilder:default:=false
	// +optional
	DryRun bool `json:"dryRun,omitempty"`

	// NoWait instructs kluctl to not wait for any resources to become ready, including hooks.
	// Equivalent to using '--no-wait' when calling kluctl.
	// +kubebuilder:default:=false
	// +optional
	NoWait bool `json:"noWait,omitempty"`

	// ForceApply instructs kluctl to force-apply in case of SSA conflicts.
	// Equivalent to using '--force-apply' when calling kluctl.
	// +kubebuilder:default:=false
	// +optional
	ForceApply bool `json:"forceApply,omitempty"`

	// ReplaceOnError instructs kluctl to replace resources on error.
	// Equivalent to using '--replace-on-error' when calling kluctl.
	// +kubebuilder:default:=false
	// +optional
	ReplaceOnError bool `json:"replaceOnError,omitempty"`

	// ForceReplaceOnError instructs kluctl to force-replace resources in case a normal replace fails.
	// Equivalent to using '--force-replace-on-error' when calling kluctl.
	// +kubebuilder:default:=false
	// +optional
	ForceReplaceOnError bool `json:"forceReplaceOnError,omitempty"`

	// ForceReplaceOnError instructs kluctl to abort deployments immediately when something fails.
	// Equivalent to using '--abort-on-error' when calling kluctl.
	// +kubebuilder:default:=false
	// +optional
	AbortOnError bool `json:"abortOnError,omitempty"`

	// IncludeTags instructs kluctl to only include deployments with given tags.
	// Equivalent to using '--include-tag' when calling kluctl.
	// +optional
	IncludeTags []string `json:"includeTags,omitempty"`

	// ExcludeTags instructs kluctl to exclude deployments with given tags.
	// Equivalent to using '--exclude-tag' when calling kluctl.
	// +optional
	ExcludeTags []string `json:"excludeTags,omitempty"`

	// IncludeDeploymentDirs instructs kluctl to only include deployments with the given dir.
	// Equivalent to using '--include-deployment-dir' when calling kluctl.
	// +optional
	IncludeDeploymentDirs []string `json:"includeDeploymentDirs,omitempty"`

	// ExcludeDeploymentDirs instructs kluctl to exclude deployments with the given dir.
	// Equivalent to using '--exclude-deployment-dir' when calling kluctl.
	// +optional
	ExcludeDeploymentDirs []string `json:"excludeDeploymentDirs,omitempty"`

	// Prune enables pruning after deploying.
	// +kubebuilder:default:=false
	// +optional
	Prune bool `json:"prune,omitempty"`
}

KluctlDeploymentSpec defines the desired state of KluctlDeployment

func (*KluctlDeploymentSpec) DeepCopy

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

func (*KluctlDeploymentSpec) DeepCopyInto

func (in *KluctlDeploymentSpec) DeepCopyInto(out *KluctlDeploymentSpec)

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

type KluctlDeploymentStatus

type KluctlDeploymentStatus struct {
	meta.ReconcileRequestStatus `json:",inline"`

	// ObservedGeneration is the last reconciled generation.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// LastForceReconcileHash contains a hash of all values from the spec that must cause a forced
	// reconcile.
	// +optional
	LastForceReconcileHash string `json:"lastForceReconcileHash,omitempty"`

	// InvolvedRepos is a list of repositories and refs involved with this kluctl project
	// +optional
	InvolvedRepos []InvolvedRepo `json:"involvedRepos,omitempty"`

	// The last attempted reconcile.
	// +optional
	LastAttemptedReconcile *ReconcileAttempt `json:"lastAttemptedReconcile,omitempty"`

	// The last successfully reconcile attempt.
	// +optional
	LastSuccessfulReconcile *ReconcileAttempt `json:"lastSuccessfulReconcile,omitempty"`
}

KluctlDeploymentStatus defines the observed state of KluctlDeployment

func (*KluctlDeploymentStatus) DeepCopy

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

func (*KluctlDeploymentStatus) DeepCopyInto

func (in *KluctlDeploymentStatus) DeepCopyInto(out *KluctlDeploymentStatus)

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

type KubeConfig

type KubeConfig struct {
	// SecretRef holds the name of a secret that contains a key with
	// the kubeconfig file as the value. If no key is set, the key will default
	// to 'value'. The secret must be in the same namespace as
	// the Kustomization.
	// It is recommended that the kubeconfig is self-contained, and the secret
	// is regularly updated if credentials such as a cloud-access-token expire.
	// Cloud specific `cmd-path` auth helpers will not function without adding
	// binaries and credentials to the Pod that is responsible for reconciling
	// the KluctlDeployment.
	// +required
	SecretRef meta.SecretKeyReference `json:"secretRef,omitempty"`
}

KubeConfig references a Kubernetes secret that contains a kubeconfig file.

func (*KubeConfig) DeepCopy

func (in *KubeConfig) DeepCopy() *KubeConfig

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

func (*KubeConfig) DeepCopyInto

func (in *KubeConfig) DeepCopyInto(out *KubeConfig)

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

type ReconcileAttempt added in v0.0.2

type ReconcileAttempt struct {
	// AttemptedAt is the time when the attempt was performed
	// +required
	AttemptedAt metav1.Time `json:"time"`

	// Revision is the source revision. Please note that kluctl projects have
	// dependent git repositories which are not considered in the source revision
	// +optional
	Revision string `json:"revision,omitempty"`

	// TargetName is the name of the target
	// +required
	TargetName string `json:"targetName"`

	// TargetHash is the hash of the target configuration
	// +optional
	TargetHash string `json:"targetHash,omitempty"`

	// DeployResult is the command result of the deploy command
	// +optional
	DeployResult *CommandResult `json:"deployResult,omitempty"`

	// PruneResult is the command result of the prune command
	// +optional
	PruneResult *CommandResult `json:"pruneResult,omitempty"`
}

ReconcileAttempt describes an attempt to reconcile

func (*ReconcileAttempt) DeepCopy added in v0.0.2

func (in *ReconcileAttempt) DeepCopy() *ReconcileAttempt

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

func (*ReconcileAttempt) DeepCopyInto added in v0.0.2

func (in *ReconcileAttempt) DeepCopyInto(out *ReconcileAttempt)

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

type RenameContext added in v0.0.2

type RenameContext struct {
	// OldContext is the name of the context to be renamed
	// +required
	OldContext string `json:"oldContext"`

	// NewContext is the new name of the context
	// +required
	NewContext string `json:"newContext"`
}

RenameContext specifies a single rename of a context

func (*RenameContext) DeepCopy added in v0.0.2

func (in *RenameContext) DeepCopy() *RenameContext

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

func (*RenameContext) DeepCopyInto added in v0.0.2

func (in *RenameContext) DeepCopyInto(out *RenameContext)

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

type ResourceRef

type ResourceRef struct {
	// ID is the string representation of the Kubernetes resource object's metadata,
	// in the format '<namespace>_<name>_<group>_<kind>'.
	ID string `json:"id"`

	// Version is the API version of the Kubernetes resource object's kind.
	Version string `json:"v"`
}

ResourceRef contains the information necessary to locate a resource within a cluster.

func ConvertResourceRef

func ConvertResourceRef(ref *k8s.ObjectRef) *ResourceRef

func (*ResourceRef) DeepCopy

func (in *ResourceRef) DeepCopy() *ResourceRef

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

func (*ResourceRef) DeepCopyInto

func (in *ResourceRef) DeepCopyInto(out *ResourceRef)

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

type ValidateResult

type ValidateResult struct {
	Ready    bool                  `json:"ready"`
	Warnings []DeploymentError     `json:"warnings,omitempty"`
	Errors   []DeploymentError     `json:"errors,omitempty"`
	Results  []ValidateResultEntry `json:"results,omitempty"`
}

func (*ValidateResult) DeepCopy

func (in *ValidateResult) DeepCopy() *ValidateResult

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

func (*ValidateResult) DeepCopyInto

func (in *ValidateResult) DeepCopyInto(out *ValidateResult)

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

type ValidateResultEntry

type ValidateResultEntry struct {
	Ref        ResourceRef `json:"ref"`
	Annotation string      `json:"annotation"`
	Message    string      `json:"message"`
}

func (*ValidateResultEntry) DeepCopy

func (in *ValidateResultEntry) DeepCopy() *ValidateResultEntry

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

func (*ValidateResultEntry) DeepCopyInto

func (in *ValidateResultEntry) DeepCopyInto(out *ValidateResultEntry)

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

Jump to

Keyboard shortcuts

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