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
- Variables
- type KCLRun
- func (in *KCLRun) DeepCopy() *KCLRun
- func (in *KCLRun) DeepCopyInto(out *KCLRun)
- func (in *KCLRun) DeepCopyObject() runtime.Object
- func (in KCLRun) GetConditions() []metav1.Condition
- func (in KCLRun) GetReleaseNamespace() string
- func (in KCLRun) GetTimeout() metav1.Duration
- func (in KCLRun) SetConditions(conditions []metav1.Condition)
- func (in KCLRun) UsePersistentClient() bool
- type KCLRunList
- type KCLRunSpec
- type KCLRunStatus
Constants ¶
const (
KCLRunKind = "KCLRun"
)
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KCLRun.
func (*KCLRun) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KCLRun) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (KCLRun) GetConditions ¶
GetConditions returns the status conditions of the object.
func (KCLRun) GetReleaseNamespace ¶
GetReleaseNamespace returns the configured TargetNamespace, or the namespace of the KCLRun.
func (KCLRun) GetTimeout ¶
GetTimeout returns the configured Timeout, or the default of 300s.
func (KCLRun) SetConditions ¶
SetConditions sets the status conditions on the object.
func (KCLRun) UsePersistentClient ¶
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.