v1alpha1

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the addons v1alpha1 API group +kubebuilder:object:generate=true +groupName=addons.cluster.x-k8s.io

Index

Constants

View Source
const (
	// DeploymentProgressingCondition indicates that the cdk8s application deployment is progressing.
	DeploymentProgressingCondition clusterv1.ConditionType = "DeploymentProgressing"
	// GitCloneSuccessCondition indicates that the git clone operation was successful.
	GitCloneSuccessCondition = "GitCloneSuccess"
	// GitCloneFailedCondition indicates that git clone operation failed.
	GitCloneFailedCondition = "GitCloneFailed"
	// ValidGitRepositoryReason indicates that the given repository is valid.
	ValidGitRepositoryReason = "ValidGitRepository"
	// InvalidGitRepositoryReason indicates that the given repository is invalid.
	InvalidGitRepositoryReason = "InvalidGitRepository"
	// EmptyGitRepositoryReason indicates that no repository has been defined.
	EmptyGitRepositoryReason = "EmptyGitRepository"
	// GitHashSuccessReason indicates that the current commit hash was retrievable.
	GitHashSuccessReason = "GitHashSuccess"
	// GitHashFailureReason indicates that the current commit hash was not retrievable.
	GitHashFailureReason     = "GitHashFailure"
	GitOperationFailedReason = "GitOperationFailed"
	// Cdk8sSynthFailedReason indicates that cdk8s synth operation failed.
	Cdk8sSynthFailedReason = "Cdk8sSynthFailed"
	// WalkDistFailedReason indicates that walking the dist directory failed.
	WalkDistFailedReason = "WalkDistFailed"
	// NoManifestsFoundReason indicates that no YAML manifests were found in the dist directory.
	NoManifestsFoundReason = "NoManifestsFound"
	// ReadManifestFailedReason indicates that reading a manifest file failed.
	ReadManifestFailedReason = "ReadManifestFailed"
	// DecodeManifestFailedReason indicates that decoding YAML from a manifest file failed.
	DecodeManifestFailedReason = "DecodeManifestFailed"
	// DecodeToUnstructuredFailedReason indicates that decoding RawExtension to Unstructured failed.
	DecodeToUnstructuredFailedReason = "DecodeToUnstructuredFailed"
	// NoResourcesParsedReason indicates that no valid Kubernetes resources were parsed from manifest files.
	NoResourcesParsedReason = "NoResourcesParsed"
	// ClusterSelectorParseFailedReason indicates that parsing the ClusterSelector failed.
	ClusterSelectorParseFailedReason = "ClusterSelectorParseFailed"
	// ListClustersFailedReason indicates that listing clusters matching the selector failed.
	ListClustersFailedReason = "ListClustersFailed"
	// NoMatchingClustersReason indicates that no clusters were found matching the selector.
	NoMatchingClustersReason = "NoMatchingClusters"
	// KubeconfigUnavailableReason indicates that the kubeconfig for a target cluster is unavailable.
	KubeconfigUnavailableReason = "KubeconfigUnavailable"
	// ResourceApplyFailedReason indicates that applying a resource to a target cluster failed.
	ResourceApplyFailedReason = "ResourceApplyFailed"
	// GitAuthenticationFailedReason indicates that Git authentication failed (e.g., bad credentials).
	GitAuthenticationFailedReason string = "GitAuthenticationFailed"
)

Cdk8sAppProxy Conditions and Reasons.

Variables

View Source
var (
	// GroupVersion is a group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "addons.cluster.x-k8s.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

This section is empty.

Types

type Cdk8sAppProxy

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

	Spec   Cdk8sAppProxySpec   `json:"spec,omitempty"`
	Status Cdk8sAppProxyStatus `json:"status,omitempty"`
}

Cdk8sAppProxy is the Schema for the cdk8sappproxies API.

func (*Cdk8sAppProxy) DeepCopy

func (in *Cdk8sAppProxy) DeepCopy() *Cdk8sAppProxy

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

func (*Cdk8sAppProxy) DeepCopyInto

func (in *Cdk8sAppProxy) DeepCopyInto(out *Cdk8sAppProxy)

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

func (*Cdk8sAppProxy) DeepCopyObject

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

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

func (*Cdk8sAppProxy) Default

func (c *Cdk8sAppProxy) Default()

Default implements webhook.CustomDefaulter so a webhook will be registered for the type.

func (*Cdk8sAppProxy) GetConditions

func (c *Cdk8sAppProxy) GetConditions() clusterv1.Conditions

GetConditions returns the list of conditions for an Cdk8sAppProxy API object.

func (*Cdk8sAppProxy) SetConditions

func (c *Cdk8sAppProxy) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions on an Cdk8sAppProxy API object.

func (*Cdk8sAppProxy) SetupWebhookWithManager

func (c *Cdk8sAppProxy) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Cdk8sAppProxy) ValidateCreate

func (c *Cdk8sAppProxy) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type.

func (*Cdk8sAppProxy) ValidateDelete

func (c *Cdk8sAppProxy) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type.

func (*Cdk8sAppProxy) ValidateUpdate

func (c *Cdk8sAppProxy) ValidateUpdate(oldRaw runtime.Object) (admission.Warnings, error)

ValidateUpdate implement webhook.CustomValidator so a webhook will be registered for the type.

type Cdk8sAppProxyList

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

Cdk8sAppProxyList contains a list of Cdk8sAppProxy.

func (*Cdk8sAppProxyList) DeepCopy

func (in *Cdk8sAppProxyList) DeepCopy() *Cdk8sAppProxyList

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

func (*Cdk8sAppProxyList) DeepCopyInto

func (in *Cdk8sAppProxyList) DeepCopyInto(out *Cdk8sAppProxyList)

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

func (*Cdk8sAppProxyList) DeepCopyObject

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

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

type Cdk8sAppProxySpec

type Cdk8sAppProxySpec struct {
	// GitRepository specifies the Git repository for the cdk8s app.
	// +kubebuilder:validation:Optional
	GitRepository *GitRepositorySpec `json:"gitRepository,omitempty"`

	// ClusterSelector selects the clusters to deploy the cdk8s app to.
	// +kubebuilder:validation:Required
	ClusterSelector metav1.LabelSelector `json:"clusterSelector"`
}

Cdk8sAppProxySpec defines the desired state of Cdk8sAppProxy.

func (*Cdk8sAppProxySpec) DeepCopy

func (in *Cdk8sAppProxySpec) DeepCopy() *Cdk8sAppProxySpec

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

func (*Cdk8sAppProxySpec) DeepCopyInto

func (in *Cdk8sAppProxySpec) DeepCopyInto(out *Cdk8sAppProxySpec)

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

type Cdk8sAppProxyStatus

type Cdk8sAppProxyStatus struct {
	// Conditions defines the current state of the Cdk8sAppProxy.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`

	// ObservedGeneration is the last generation observed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

Cdk8sAppProxyStatus defines the observed state of Cdk8sAppProxy.

func (*Cdk8sAppProxyStatus) DeepCopy

func (in *Cdk8sAppProxyStatus) DeepCopy() *Cdk8sAppProxyStatus

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

func (*Cdk8sAppProxyStatus) DeepCopyInto

func (in *Cdk8sAppProxyStatus) DeepCopyInto(out *Cdk8sAppProxyStatus)

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

type GitRepositorySpec

type GitRepositorySpec struct {
	// URL is the git repository URL.
	// +kubebuilder:validation:Required
	URL string `json:"url"`

	// Reference is the git reference (branch, tag, or commit).
	// +kubebuilder:validation:Required
	Reference string `json:"reference"`

	// ReferencePollInterval polls the defined git repository for changes.
	// Defaults to 5 min.
	// +kubebuilder:validation:optional
	ReferencePollInterval *metav1.Duration `json:"referencePollInterval,omitempty"`

	// Path is the path within the repository where the cdk8s application is located.
	// Defaults to the root of the repository.
	// +kubebuilder:validation:Required
	Path string `json:"path"`
}

GitRepositorySpec defines the desired state of a Git repository source.

func (*GitRepositorySpec) DeepCopy

func (in *GitRepositorySpec) DeepCopy() *GitRepositorySpec

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

func (*GitRepositorySpec) DeepCopyInto

func (in *GitRepositorySpec) DeepCopyInto(out *GitRepositorySpec)

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