v1alpha1

package
v0.0.0-...-0b82885 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the v1alpha1 group Sample resources of the Template provider. +kubebuilder:object:generate=true +groupName=cluster.civo.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "cluster.civo.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	CivoKubernetesKind             = reflect.TypeOf(CivoKubernetes{}).Name()
	CivoKubernetesGroupKind        = schema.GroupKind{Group: Group, Kind: CivoKubernetesKind}.String()
	CivoKubernetesKindAPIVersion   = CivoKubernetesKind + "." + SchemeGroupVersion.String()
	CivoKubernetesGroupVersionKind = SchemeGroupVersion.WithKind(CivoKubernetesKind)
)

CivoKubernetes type metadata.

Functions

This section is empty.

Types

type CivoKubernetes

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

	Spec   CivoKubernetesSpec   `json:"spec"`
	Status CivoKubernetesStatus `json:"status,omitempty"`
}

A CivoKubernetes is an example API type. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="MESSAGE",type="string",JSONPath=".status.message" +kubebuilder:printcolumn:name="APPLICATIONS",type="string",JSONPath=".spec.applications" Please replace `PROVIDER-NAME` with your actual provider name, like `aws`, `azure`, `gcp`, `alibaba` +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,civo} +kubebuilder:subresource:status

func (*CivoKubernetes) DeepCopy

func (in *CivoKubernetes) DeepCopy() *CivoKubernetes

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

func (*CivoKubernetes) DeepCopyInto

func (in *CivoKubernetes) DeepCopyInto(out *CivoKubernetes)

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

func (*CivoKubernetes) DeepCopyObject

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

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

func (*CivoKubernetes) GetCondition

func (mg *CivoKubernetes) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this CivoKubernetes.

func (*CivoKubernetes) GetDeletionPolicy

func (mg *CivoKubernetes) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this CivoKubernetes.

func (*CivoKubernetes) GetProviderConfigReference

func (mg *CivoKubernetes) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this CivoKubernetes.

func (*CivoKubernetes) GetProviderReference

func (mg *CivoKubernetes) GetProviderReference() *xpv1.Reference

GetProviderReference of this CivoKubernetes. Deprecated: Use GetProviderConfigReference.

func (*CivoKubernetes) GetWriteConnectionSecretToReference

func (mg *CivoKubernetes) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this CivoKubernetes.

func (*CivoKubernetes) SetConditions

func (mg *CivoKubernetes) SetConditions(c ...xpv1.Condition)

SetConditions of this CivoKubernetes.

func (*CivoKubernetes) SetDeletionPolicy

func (mg *CivoKubernetes) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this CivoKubernetes.

func (*CivoKubernetes) SetProviderConfigReference

func (mg *CivoKubernetes) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this CivoKubernetes.

func (*CivoKubernetes) SetProviderReference

func (mg *CivoKubernetes) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this CivoKubernetes. Deprecated: Use SetProviderConfigReference.

func (*CivoKubernetes) SetWriteConnectionSecretToReference

func (mg *CivoKubernetes) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this CivoKubernetes.

type CivoKubernetesConnectionDetails

type CivoKubernetesConnectionDetails struct {
	ConnectionSecretNamePrefix string `json:"connectionSecretNamePrefix"`
	ConnectionSecretNamespace  string `json:"connectionSecretNamespace"`
}

CivoKubernetesConnectionDetails is the desired output secret to store connection information

func (*CivoKubernetesConnectionDetails) DeepCopy

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

func (*CivoKubernetesConnectionDetails) DeepCopyInto

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

type CivoKubernetesList

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

CivoKubernetesList contains a list of CivoKubernetes

func (*CivoKubernetesList) DeepCopy

func (in *CivoKubernetesList) DeepCopy() *CivoKubernetesList

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

func (*CivoKubernetesList) DeepCopyInto

func (in *CivoKubernetesList) DeepCopyInto(out *CivoKubernetesList)

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

func (*CivoKubernetesList) DeepCopyObject

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

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

func (*CivoKubernetesList) GetItems

func (l *CivoKubernetesList) GetItems() []resource.Managed

GetItems of this CivoKubernetesList.

type CivoKubernetesObservation

type CivoKubernetesObservation struct {
	ObservableField string `json:"observableField,omitempty"`
}

CivoKubernetesObservation are the observable fields of a CivoKubernetes.

func (*CivoKubernetesObservation) DeepCopy

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

func (*CivoKubernetesObservation) DeepCopyInto

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

type CivoKubernetesParameters

type CivoKubernetesParameters struct {
	ConfigurableField string `json:"configurableField"`
}

CivoKubernetesParameters are the configurable fields of a CivoKubernetes.

func (*CivoKubernetesParameters) DeepCopy

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

func (*CivoKubernetesParameters) DeepCopyInto

func (in *CivoKubernetesParameters) DeepCopyInto(out *CivoKubernetesParameters)

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

type CivoKubernetesSpec

type CivoKubernetesSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	Name              string                               `json:"name"`
	Pools             []civogo.KubernetesClusterPoolConfig `json:"pools"`
	// +optional
	// A list of applications to install from civo marketplace.
	Applications      []string                        `json:"applications,omitempty"`
	ConnectionDetails CivoKubernetesConnectionDetails `json:"connectionDetails"`
	// +optional
	// +kubebuilder:validation:Enum=flannel;cilium
	// +kubebuilder:default=flannel
	// +immutable
	// NOTE: This can only be set at creation time. Changing this value after creation will not update the CNI.
	CNIPlugin *string `json:"cni,omitempty"`
	// +optional
	// +kubebuilder:default="1.22.2-k3s1"
	// If not set, the default kubernetes version(1.22.2-k31) will be used.
	// If set, the value must be a valid kubernetes version, you can use the following command to get the valid versions: `civo k3s versions`
	// Changing the version to a higher version will upgrade the cluster. Note that this may cause breaking changes to the Kubernetes API so please check kubernetes deprecations/mitigations before upgrading.
	Version *string `json:"version,omitempty"`
}

A CivoKubernetesSpec defines the desired state of a CivoKubernetes.

func (*CivoKubernetesSpec) DeepCopy

func (in *CivoKubernetesSpec) DeepCopy() *CivoKubernetesSpec

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

func (*CivoKubernetesSpec) DeepCopyInto

func (in *CivoKubernetesSpec) DeepCopyInto(out *CivoKubernetesSpec)

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

type CivoKubernetesStatus

type CivoKubernetesStatus struct {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          CivoKubernetesObservation `json:"atProvider,omitempty"`
	Message             string                    `json:"message"`
}

A CivoKubernetesStatus represents the observed state of a CivoKubernetes.

func (*CivoKubernetesStatus) DeepCopy

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

func (*CivoKubernetesStatus) DeepCopyInto

func (in *CivoKubernetesStatus) DeepCopyInto(out *CivoKubernetesStatus)

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