v1alpha1

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the kustomize.toolkit.fluxcd.io v1 API group. +kubebuilder:object:generate=true +groupName=krm.kcl.dev.fluxcd

Package v1alpha1 contains API Schema definitions for the krm.kcl.dev.fluxcd v1alpha1 API group +kubebuilder:object:generate=true +groupName=krm.kcl.dev.fluxcd

Index

Constants

View Source
const (
	KCLRunKind = "KCLRun"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "krm.kcl.dev.fluxcd", 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

This section is empty.

Types

type KCLRun

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

	Spec   KCLRunSpec   `json:"spec,omitempty"`
	Status KCLRunStatus `json:"status,omitempty"`
}

KCLRun is the Schema for the kclruns API

func (*KCLRun) DeepCopy

func (in *KCLRun) DeepCopy() *KCLRun

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

func (*KCLRun) DeepCopyInto

func (in *KCLRun) DeepCopyInto(out *KCLRun)

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

func (*KCLRun) DeepCopyObject

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

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

func (KCLRun) GetConditions

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

GetConditions returns the status conditions of the object.

func (KCLRun) GetReleaseNamespace

func (in KCLRun) GetReleaseNamespace() string

GetReleaseNamespace returns the configured TargetNamespace, or the namespace of the KCLRun.

func (KCLRun) GetTimeout

func (in KCLRun) GetTimeout() metav1.Duration

GetTimeout returns the configured Timeout, or the default of 300s.

func (KCLRun) SetConditions

func (in KCLRun) SetConditions(conditions []metav1.Condition)

SetConditions sets the status conditions on the object.

func (KCLRun) UsePersistentClient

func (in KCLRun) UsePersistentClient() bool

UsePersistentClient returns the configured PersistentClient, or the default of true.

type KCLRunList

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

KCLRunList contains a list of KCLRun

func (*KCLRunList) DeepCopy

func (in *KCLRunList) DeepCopy() *KCLRunList

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

func (*KCLRunList) DeepCopyInto

func (in *KCLRunList) DeepCopyInto(out *KCLRunList)

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

func (*KCLRunList) DeepCopyObject

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

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

type KCLRunSpec

type KCLRunSpec struct {
	// Timeout is the time to wait for any individual Kubernetes operation (like Jobs
	// for hooks) during the performance. Defaults to '5m0s'.
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$"
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`

	// PersistentClient tells the controller to use a persistent Kubernetes
	// client for this release. When enabled, the client will be reused for the
	// duration of the reconciliation, instead of being created and destroyed
	// for each (step of a).
	//
	// If not set, it defaults to true.
	//
	// +optional
	PersistentClient *bool `json:"persistentClient,omitempty"`

	// The KubeConfig for reconciling the controller on a remote cluster.
	// When used in combination with `KCLRunSpec.ServiceAccountName`,
	// forces the controller to act on behalf of that Service Account at the
	// target cluster.
	// If the --default-service-account flag is set, its value will be used as
	// a controller level fallback for when `KCLRunSpec.ServiceAccountName`
	// is empty.
	// +optional
	KubeConfig *meta.KubeConfigReference `json:"kubeConfig,omitempty"`

	// The name of the Kubernetes service account to impersonate
	// when reconciling this KCL source.
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=253
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`

	// TargetNamespace to target when performing operations for the KCL.
	// Defaults to the namespace of the KCL source.
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:Optional
	// +optional
	TargetNamespace string `json:"targetNamespace,omitempty"`

	// Path to the directory containing the kcl.mod file.
	// Defaults to 'None', which translates to the root path of the SourceRef.
	// +optional
	Path string `json:"path,omitempty"`
	// Reference of the source where the kcl file is.
	// +required
	SourceRef kc.CrossNamespaceSourceReference `json:"sourceRef"`
}

KCLRunSpec defines the desired state of KCLRun

func (*KCLRunSpec) DeepCopy

func (in *KCLRunSpec) DeepCopy() *KCLRunSpec

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

func (*KCLRunSpec) DeepCopyInto

func (in *KCLRunSpec) DeepCopyInto(out *KCLRunSpec)

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

type KCLRunStatus

type KCLRunStatus struct {

	// LastAttemptedRevision is the revision of the last reconciliation attempt.
	// +optional
	LastAttemptedRevision string `json:"lastAttemptedRevision,omitempty"`

	// LastAttemptedRevisionDigest is the digest of the last reconciliation attempt.
	// This is only set for OCIRepository sources.
	// +optional
	LastAttemptedRevisionDigest string `json:"lastAttemptedRevisionDigest,omitempty"`

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

KCLRunStatus defines the observed state of KCLRun

func (*KCLRunStatus) DeepCopy

func (in *KCLRunStatus) DeepCopy() *KCLRunStatus

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

func (*KCLRunStatus) DeepCopyInto

func (in *KCLRunStatus) DeepCopyInto(out *KCLRunStatus)

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