v1alpha1

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

+kubebuilder:object:generate=true +groupName=civo.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "civo.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	CivoFirewall_Kind             = "CivoFirewall"
	CivoFirewall_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: CivoFirewall_Kind}.String()
	CivoFirewall_KindAPIVersion   = CivoFirewall_Kind + "." + CRDGroupVersion.String()
	CivoFirewall_GroupVersionKind = CRDGroupVersion.WithKind(CivoFirewall_Kind)
)

Repository type metadata.

View Source
var (
	CivoKubernetesCluster_Kind             = "CivoKubernetesCluster"
	CivoKubernetesCluster_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: CivoKubernetesCluster_Kind}.String()
	CivoKubernetesCluster_KindAPIVersion   = CivoKubernetesCluster_Kind + "." + CRDGroupVersion.String()
	CivoKubernetesCluster_GroupVersionKind = CRDGroupVersion.WithKind(CivoKubernetesCluster_Kind)
)

Repository type metadata.

View Source
var (
	CivoNetwork_Kind             = "CivoNetwork"
	CivoNetwork_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: CivoNetwork_Kind}.String()
	CivoNetwork_KindAPIVersion   = CivoNetwork_Kind + "." + CRDGroupVersion.String()
	CivoNetwork_GroupVersionKind = CRDGroupVersion.WithKind(CivoNetwork_Kind)
)

Repository type metadata.

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

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

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

Functions

This section is empty.

Types

type CivoFirewall

type CivoFirewall struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              CivoFirewallSpec   `json:"spec"`
	Status            CivoFirewallStatus `json:"status,omitempty"`
}

CivoFirewall is the Schema for the CivoFirewalls API. <no value> +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,civo}

func (*CivoFirewall) DeepCopy

func (in *CivoFirewall) DeepCopy() *CivoFirewall

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

func (*CivoFirewall) DeepCopyInto

func (in *CivoFirewall) DeepCopyInto(out *CivoFirewall)

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

func (*CivoFirewall) DeepCopyObject

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

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

func (*CivoFirewall) GetCondition

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

GetCondition of this CivoFirewall.

func (*CivoFirewall) GetConnectionDetailsMapping

func (tr *CivoFirewall) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this CivoFirewall

func (*CivoFirewall) GetDeletionPolicy

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

GetDeletionPolicy of this CivoFirewall.

func (*CivoFirewall) GetID

func (tr *CivoFirewall) GetID() string

GetID returns ID of underlying Terraform resource of this CivoFirewall

func (*CivoFirewall) GetObservation

func (tr *CivoFirewall) GetObservation() (map[string]any, error)

GetObservation of this CivoFirewall

func (*CivoFirewall) GetParameters

func (tr *CivoFirewall) GetParameters() (map[string]any, error)

GetParameters of this CivoFirewall

func (*CivoFirewall) GetProviderConfigReference

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

GetProviderConfigReference of this CivoFirewall.

func (*CivoFirewall) GetProviderReference

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

GetProviderReference of this CivoFirewall. Deprecated: Use GetProviderConfigReference.

func (*CivoFirewall) GetPublishConnectionDetailsTo

func (mg *CivoFirewall) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this CivoFirewall.

func (*CivoFirewall) GetTerraformResourceType

func (mg *CivoFirewall) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this CivoFirewall

func (*CivoFirewall) GetTerraformSchemaVersion

func (tr *CivoFirewall) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*CivoFirewall) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this CivoFirewall.

func (*CivoFirewall) LateInitialize

func (tr *CivoFirewall) LateInitialize(attrs []byte) (bool, error)

LateInitialize this CivoFirewall using its observed tfState. returns True if there are any spec changes for the resource.

func (*CivoFirewall) ResolveReferences

func (mg *CivoFirewall) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this CivoFirewall.

func (*CivoFirewall) SetConditions

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

SetConditions of this CivoFirewall.

func (*CivoFirewall) SetDeletionPolicy

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

SetDeletionPolicy of this CivoFirewall.

func (*CivoFirewall) SetObservation

func (tr *CivoFirewall) SetObservation(obs map[string]any) error

SetObservation for this CivoFirewall

func (*CivoFirewall) SetParameters

func (tr *CivoFirewall) SetParameters(params map[string]any) error

SetParameters for this CivoFirewall

func (*CivoFirewall) SetProviderConfigReference

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

SetProviderConfigReference of this CivoFirewall.

func (*CivoFirewall) SetProviderReference

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

SetProviderReference of this CivoFirewall. Deprecated: Use SetProviderConfigReference.

func (*CivoFirewall) SetPublishConnectionDetailsTo

func (mg *CivoFirewall) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this CivoFirewall.

func (*CivoFirewall) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this CivoFirewall.

type CivoFirewallList

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

CivoFirewallList contains a list of CivoFirewalls

func (*CivoFirewallList) DeepCopy

func (in *CivoFirewallList) DeepCopy() *CivoFirewallList

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

func (*CivoFirewallList) DeepCopyInto

func (in *CivoFirewallList) DeepCopyInto(out *CivoFirewallList)

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

func (*CivoFirewallList) DeepCopyObject

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

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

func (*CivoFirewallList) GetItems

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

GetItems of this CivoFirewallList.

type CivoFirewallObservation

type CivoFirewallObservation struct {

	// The egress rules, this is a list of rules that will be applied to the firewall
	// +kubebuilder:validation:Optional
	EgressRule []EgressRuleObservation `json:"egressRule,omitempty" tf:"egress_rule,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The ingress rules, this is a list of rules that will be applied to the firewall
	// +kubebuilder:validation:Optional
	IngressRule []IngressRuleObservation `json:"ingressRule,omitempty" tf:"ingress_rule,omitempty"`
}

func (*CivoFirewallObservation) DeepCopy

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

func (*CivoFirewallObservation) DeepCopyInto

func (in *CivoFirewallObservation) DeepCopyInto(out *CivoFirewallObservation)

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

type CivoFirewallParameters

type CivoFirewallParameters struct {

	// The create rules flag is used to create the default firewall rules, if is not defined will be set to true, and if you set to false you need to define at least one ingress or egress rule
	// +kubebuilder:validation:Optional
	CreateDefaultRules *bool `json:"createDefaultRules,omitempty" tf:"create_default_rules,omitempty"`

	// The egress rules, this is a list of rules that will be applied to the firewall
	// +kubebuilder:validation:Optional
	EgressRule []EgressRuleParameters `json:"egressRule,omitempty" tf:"egress_rule,omitempty"`

	// The ingress rules, this is a list of rules that will be applied to the firewall
	// +kubebuilder:validation:Optional
	IngressRule []IngressRuleParameters `json:"ingressRule,omitempty" tf:"ingress_rule,omitempty"`

	// The firewall name
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,omitempty"`

	// The firewall network, if is not defined we use the default network
	// +crossplane:generate:reference:type=github.com/upsidr/provider-civo-upjet/apis/civo/v1alpha1.CivoNetwork
	// +kubebuilder:validation:Optional
	NetworkID *string `json:"networkId,omitempty" tf:"network_id,omitempty"`

	// Reference to a CivoNetwork in civo to populate networkId.
	// +kubebuilder:validation:Optional
	NetworkIDRef *v1.Reference `json:"networkIdRef,omitempty" tf:"-"`

	// Selector for a CivoNetwork in civo to populate networkId.
	// +kubebuilder:validation:Optional
	NetworkIDSelector *v1.Selector `json:"networkIdSelector,omitempty" tf:"-"`

	// The firewall region, if is not defined we use the global defined in the provider
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`
}

func (*CivoFirewallParameters) DeepCopy

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

func (*CivoFirewallParameters) DeepCopyInto

func (in *CivoFirewallParameters) DeepCopyInto(out *CivoFirewallParameters)

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

type CivoFirewallSpec

type CivoFirewallSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     CivoFirewallParameters `json:"forProvider"`
}

CivoFirewallSpec defines the desired state of CivoFirewall

func (*CivoFirewallSpec) DeepCopy

func (in *CivoFirewallSpec) DeepCopy() *CivoFirewallSpec

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

func (*CivoFirewallSpec) DeepCopyInto

func (in *CivoFirewallSpec) DeepCopyInto(out *CivoFirewallSpec)

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

type CivoFirewallStatus

type CivoFirewallStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        CivoFirewallObservation `json:"atProvider,omitempty"`
}

CivoFirewallStatus defines the observed state of CivoFirewall.

func (*CivoFirewallStatus) DeepCopy

func (in *CivoFirewallStatus) DeepCopy() *CivoFirewallStatus

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

func (*CivoFirewallStatus) DeepCopyInto

func (in *CivoFirewallStatus) DeepCopyInto(out *CivoFirewallStatus)

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

type CivoKubernetesCluster

type CivoKubernetesCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              CivoKubernetesClusterSpec   `json:"spec"`
	Status            CivoKubernetesClusterStatus `json:"status,omitempty"`
}

CivoKubernetesCluster is the Schema for the CivoKubernetesClusters API. <no value> +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,civo}

func (*CivoKubernetesCluster) DeepCopy

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

func (*CivoKubernetesCluster) DeepCopyInto

func (in *CivoKubernetesCluster) DeepCopyInto(out *CivoKubernetesCluster)

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

func (*CivoKubernetesCluster) DeepCopyObject

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

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

func (*CivoKubernetesCluster) GetCondition

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

GetCondition of this CivoKubernetesCluster.

func (*CivoKubernetesCluster) GetConnectionDetailsMapping

func (tr *CivoKubernetesCluster) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this CivoKubernetesCluster

func (*CivoKubernetesCluster) GetDeletionPolicy

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

GetDeletionPolicy of this CivoKubernetesCluster.

func (*CivoKubernetesCluster) GetID

func (tr *CivoKubernetesCluster) GetID() string

GetID returns ID of underlying Terraform resource of this CivoKubernetesCluster

func (*CivoKubernetesCluster) GetObservation

func (tr *CivoKubernetesCluster) GetObservation() (map[string]any, error)

GetObservation of this CivoKubernetesCluster

func (*CivoKubernetesCluster) GetParameters

func (tr *CivoKubernetesCluster) GetParameters() (map[string]any, error)

GetParameters of this CivoKubernetesCluster

func (*CivoKubernetesCluster) GetProviderConfigReference

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

GetProviderConfigReference of this CivoKubernetesCluster.

func (*CivoKubernetesCluster) GetProviderReference

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

GetProviderReference of this CivoKubernetesCluster. Deprecated: Use GetProviderConfigReference.

func (*CivoKubernetesCluster) GetPublishConnectionDetailsTo

func (mg *CivoKubernetesCluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this CivoKubernetesCluster.

func (*CivoKubernetesCluster) GetTerraformResourceType

func (mg *CivoKubernetesCluster) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this CivoKubernetesCluster

func (*CivoKubernetesCluster) GetTerraformSchemaVersion

func (tr *CivoKubernetesCluster) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*CivoKubernetesCluster) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this CivoKubernetesCluster.

func (*CivoKubernetesCluster) LateInitialize

func (tr *CivoKubernetesCluster) LateInitialize(attrs []byte) (bool, error)

LateInitialize this CivoKubernetesCluster using its observed tfState. returns True if there are any spec changes for the resource.

func (*CivoKubernetesCluster) ResolveReferences

func (mg *CivoKubernetesCluster) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this CivoKubernetesCluster.

func (*CivoKubernetesCluster) SetConditions

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

SetConditions of this CivoKubernetesCluster.

func (*CivoKubernetesCluster) SetDeletionPolicy

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

SetDeletionPolicy of this CivoKubernetesCluster.

func (*CivoKubernetesCluster) SetObservation

func (tr *CivoKubernetesCluster) SetObservation(obs map[string]any) error

SetObservation for this CivoKubernetesCluster

func (*CivoKubernetesCluster) SetParameters

func (tr *CivoKubernetesCluster) SetParameters(params map[string]any) error

SetParameters for this CivoKubernetesCluster

func (*CivoKubernetesCluster) SetProviderConfigReference

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

SetProviderConfigReference of this CivoKubernetesCluster.

func (*CivoKubernetesCluster) SetProviderReference

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

SetProviderReference of this CivoKubernetesCluster. Deprecated: Use SetProviderConfigReference.

func (*CivoKubernetesCluster) SetPublishConnectionDetailsTo

func (mg *CivoKubernetesCluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this CivoKubernetesCluster.

func (*CivoKubernetesCluster) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this CivoKubernetesCluster.

type CivoKubernetesClusterList

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

CivoKubernetesClusterList contains a list of CivoKubernetesClusters

func (*CivoKubernetesClusterList) DeepCopy

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

func (*CivoKubernetesClusterList) DeepCopyInto

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

func (*CivoKubernetesClusterList) DeepCopyObject

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

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

func (*CivoKubernetesClusterList) GetItems

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

GetItems of this CivoKubernetesClusterList.

type CivoKubernetesClusterObservation

type CivoKubernetesClusterObservation struct {

	// The API server endpoint of the cluster
	APIEndpoint *string `json:"apiEndpoint,omitempty" tf:"api_endpoint,omitempty"`

	// The timestamp when the cluster was created
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`

	// The DNS name of the cluster
	DNSEntry *string `json:"dnsEntry,omitempty" tf:"dns_entry,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	InstalledApplications []InstalledApplicationsObservation `json:"installedApplications,omitempty" tf:"installed_applications,omitempty"`

	// The IP address of the master node
	MasterIP *string `json:"masterIp,omitempty" tf:"master_ip,omitempty"`

	// +kubebuilder:validation:Required
	Pools []PoolsObservation `json:"pools,omitempty" tf:"pools,omitempty"`

	// When cluster is ready, this will return `true`
	Ready *bool `json:"ready,omitempty" tf:"ready,omitempty"`

	// Status of the cluster
	Status *string `json:"status,omitempty" tf:"status,omitempty"`
}

func (*CivoKubernetesClusterObservation) DeepCopy

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

func (*CivoKubernetesClusterObservation) DeepCopyInto

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

type CivoKubernetesClusterParameters

type CivoKubernetesClusterParameters struct {

	// Comma separated list of applications to install. Spaces within application names are fine, but shouldn't be either side of the comma. Application names are case-sensitive; the available applications can be listed with the Civo CLI: 'civo kubernetes applications ls'. If you want to remove a default installed application, prefix it with a '-', e.g. -Traefik. For application that supports plans, you can use 'app_name:app_plan' format e.g. 'Linkerd:Linkerd & Jaeger' or 'MariaDB:5GB'.
	// +kubebuilder:validation:Optional
	Applications *string `json:"applications,omitempty" tf:"applications,omitempty"`

	// The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel`
	// +kubebuilder:validation:Optional
	Cni *string `json:"cni,omitempty" tf:"cni,omitempty"`

	// The existing firewall ID to use for this cluster
	// +crossplane:generate:reference:type=github.com/upsidr/provider-civo-upjet/apis/civo/v1alpha1.CivoFirewall
	// +kubebuilder:validation:Optional
	FirewallID *string `json:"firewallId,omitempty" tf:"firewall_id,omitempty"`

	// Reference to a CivoFirewall in civo to populate firewallId.
	// +kubebuilder:validation:Optional
	FirewallIDRef *v1.Reference `json:"firewallIdRef,omitempty" tf:"-"`

	// Selector for a CivoFirewall in civo to populate firewallId.
	// +kubebuilder:validation:Optional
	FirewallIDSelector *v1.Selector `json:"firewallIdSelector,omitempty" tf:"-"`

	// The version of k3s to install (optional, the default is currently the latest available)
	// +kubebuilder:validation:Optional
	KubernetesVersion *string `json:"kubernetesVersion,omitempty" tf:"kubernetes_version,omitempty"`

	// Name for your cluster, must be unique within your account
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The network for the cluster, if not declare we use the default one
	// +crossplane:generate:reference:type=github.com/upsidr/provider-civo-upjet/apis/civo/v1alpha1.CivoNetwork
	// +kubebuilder:validation:Optional
	NetworkID *string `json:"networkId,omitempty" tf:"network_id,omitempty"`

	// Reference to a CivoNetwork in civo to populate networkId.
	// +kubebuilder:validation:Optional
	NetworkIDRef *v1.Reference `json:"networkIdRef,omitempty" tf:"-"`

	// Selector for a CivoNetwork in civo to populate networkId.
	// +kubebuilder:validation:Optional
	NetworkIDSelector *v1.Selector `json:"networkIdSelector,omitempty" tf:"-"`

	// The number of instances to create (optional, the default at the time of writing is 3)
	// +kubebuilder:validation:Optional
	NumTargetNodes *float64 `json:"numTargetNodes,omitempty" tf:"num_target_nodes,omitempty"`

	// +kubebuilder:validation:Required
	Pools []PoolsParameters `json:"pools" tf:"pools,omitempty"`

	// The region for the cluster, if not declare we use the region in declared in the provider
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// Space separated list of tags, to be used freely as required
	// +kubebuilder:validation:Optional
	Tags *string `json:"tags,omitempty" tf:"tags,omitempty"`

	// The size of each node (optional, the default is currently g4s.kube.medium)
	// +kubebuilder:validation:Optional
	TargetNodesSize *string `json:"targetNodesSize,omitempty" tf:"target_nodes_size,omitempty"`
}

func (*CivoKubernetesClusterParameters) DeepCopy

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

func (*CivoKubernetesClusterParameters) DeepCopyInto

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

type CivoKubernetesClusterSpec

type CivoKubernetesClusterSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     CivoKubernetesClusterParameters `json:"forProvider"`
}

CivoKubernetesClusterSpec defines the desired state of CivoKubernetesCluster

func (*CivoKubernetesClusterSpec) DeepCopy

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

func (*CivoKubernetesClusterSpec) DeepCopyInto

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

type CivoKubernetesClusterStatus

type CivoKubernetesClusterStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        CivoKubernetesClusterObservation `json:"atProvider,omitempty"`
}

CivoKubernetesClusterStatus defines the observed state of CivoKubernetesCluster.

func (*CivoKubernetesClusterStatus) DeepCopy

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

func (*CivoKubernetesClusterStatus) DeepCopyInto

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

type CivoNetwork

type CivoNetwork struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              CivoNetworkSpec   `json:"spec"`
	Status            CivoNetworkStatus `json:"status,omitempty"`
}

CivoNetwork is the Schema for the CivoNetworks API. <no value> +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,civo}

func (*CivoNetwork) DeepCopy

func (in *CivoNetwork) DeepCopy() *CivoNetwork

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

func (*CivoNetwork) DeepCopyInto

func (in *CivoNetwork) DeepCopyInto(out *CivoNetwork)

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

func (*CivoNetwork) DeepCopyObject

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

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

func (*CivoNetwork) GetCondition

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

GetCondition of this CivoNetwork.

func (*CivoNetwork) GetConnectionDetailsMapping

func (tr *CivoNetwork) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this CivoNetwork

func (*CivoNetwork) GetDeletionPolicy

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

GetDeletionPolicy of this CivoNetwork.

func (*CivoNetwork) GetID

func (tr *CivoNetwork) GetID() string

GetID returns ID of underlying Terraform resource of this CivoNetwork

func (*CivoNetwork) GetObservation

func (tr *CivoNetwork) GetObservation() (map[string]any, error)

GetObservation of this CivoNetwork

func (*CivoNetwork) GetParameters

func (tr *CivoNetwork) GetParameters() (map[string]any, error)

GetParameters of this CivoNetwork

func (*CivoNetwork) GetProviderConfigReference

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

GetProviderConfigReference of this CivoNetwork.

func (*CivoNetwork) GetProviderReference

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

GetProviderReference of this CivoNetwork. Deprecated: Use GetProviderConfigReference.

func (*CivoNetwork) GetPublishConnectionDetailsTo

func (mg *CivoNetwork) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this CivoNetwork.

func (*CivoNetwork) GetTerraformResourceType

func (mg *CivoNetwork) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this CivoNetwork

func (*CivoNetwork) GetTerraformSchemaVersion

func (tr *CivoNetwork) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*CivoNetwork) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this CivoNetwork.

func (*CivoNetwork) LateInitialize

func (tr *CivoNetwork) LateInitialize(attrs []byte) (bool, error)

LateInitialize this CivoNetwork using its observed tfState. returns True if there are any spec changes for the resource.

func (*CivoNetwork) SetConditions

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

SetConditions of this CivoNetwork.

func (*CivoNetwork) SetDeletionPolicy

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

SetDeletionPolicy of this CivoNetwork.

func (*CivoNetwork) SetObservation

func (tr *CivoNetwork) SetObservation(obs map[string]any) error

SetObservation for this CivoNetwork

func (*CivoNetwork) SetParameters

func (tr *CivoNetwork) SetParameters(params map[string]any) error

SetParameters for this CivoNetwork

func (*CivoNetwork) SetProviderConfigReference

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

SetProviderConfigReference of this CivoNetwork.

func (*CivoNetwork) SetProviderReference

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

SetProviderReference of this CivoNetwork. Deprecated: Use SetProviderConfigReference.

func (*CivoNetwork) SetPublishConnectionDetailsTo

func (mg *CivoNetwork) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this CivoNetwork.

func (*CivoNetwork) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this CivoNetwork.

type CivoNetworkList

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

CivoNetworkList contains a list of CivoNetworks

func (*CivoNetworkList) DeepCopy

func (in *CivoNetworkList) DeepCopy() *CivoNetworkList

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

func (*CivoNetworkList) DeepCopyInto

func (in *CivoNetworkList) DeepCopyInto(out *CivoNetworkList)

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

func (*CivoNetworkList) DeepCopyObject

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

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

func (*CivoNetworkList) GetItems

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

GetItems of this CivoNetworkList.

type CivoNetworkObservation

type CivoNetworkObservation struct {

	// If the network is default, this will be `true`
	Default *bool `json:"default,omitempty" tf:"default,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The name of the network
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*CivoNetworkObservation) DeepCopy

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

func (*CivoNetworkObservation) DeepCopyInto

func (in *CivoNetworkObservation) DeepCopyInto(out *CivoNetworkObservation)

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

type CivoNetworkParameters

type CivoNetworkParameters struct {

	// Name for the network
	// +kubebuilder:validation:Required
	Label *string `json:"label" tf:"label,omitempty"`

	// The region of the network
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`
}

func (*CivoNetworkParameters) DeepCopy

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

func (*CivoNetworkParameters) DeepCopyInto

func (in *CivoNetworkParameters) DeepCopyInto(out *CivoNetworkParameters)

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

type CivoNetworkSpec

type CivoNetworkSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     CivoNetworkParameters `json:"forProvider"`
}

CivoNetworkSpec defines the desired state of CivoNetwork

func (*CivoNetworkSpec) DeepCopy

func (in *CivoNetworkSpec) DeepCopy() *CivoNetworkSpec

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

func (*CivoNetworkSpec) DeepCopyInto

func (in *CivoNetworkSpec) DeepCopyInto(out *CivoNetworkSpec)

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

type CivoNetworkStatus

type CivoNetworkStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        CivoNetworkObservation `json:"atProvider,omitempty"`
}

CivoNetworkStatus defines the observed state of CivoNetwork.

func (*CivoNetworkStatus) DeepCopy

func (in *CivoNetworkStatus) DeepCopy() *CivoNetworkStatus

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

func (*CivoNetworkStatus) DeepCopyInto

func (in *CivoNetworkStatus) DeepCopyInto(out *CivoNetworkStatus)

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

type EgressRuleObservation

type EgressRuleObservation struct {

	// The ID of the firewall rule.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`
}

func (*EgressRuleObservation) DeepCopy

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

func (*EgressRuleObservation) DeepCopyInto

func (in *EgressRuleObservation) DeepCopyInto(out *EgressRuleObservation)

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

type EgressRuleParameters

type EgressRuleParameters struct {

	// The action of the rule can be allow or deny. When we set the `action = 'allow'`, this is going to add a rule to allow traffic. Similarly, setting `action = 'deny'` will deny the traffic.
	// +kubebuilder:validation:Required
	Action *string `json:"action" tf:"action,omitempty"`

	// The CIDR notation of the other end to affect, or a valid network CIDR (e.g. 0.0.0.0/0 to open for everyone or 1.2.3.4/32 to open just for a specific IP address)
	// +kubebuilder:validation:Required
	Cidr []*string `json:"cidr" tf:"cidr,omitempty"`

	// A string that will be the displayed name/reference for this rule
	// +kubebuilder:validation:Optional
	Label *string `json:"label,omitempty" tf:"label,omitempty"`

	// The port or port range to open, can be a single port or a range separated by a dash (`-`), e.g. `80` or `80-443`
	// +kubebuilder:validation:Optional
	PortRange *string `json:"portRange,omitempty" tf:"port_range,omitempty"`

	// The protocol choice from `tcp`, `udp` or `icmp` (the default if unspecified is `tcp`)
	// +kubebuilder:validation:Optional
	Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"`
}

func (*EgressRuleParameters) DeepCopy

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

func (*EgressRuleParameters) DeepCopyInto

func (in *EgressRuleParameters) DeepCopyInto(out *EgressRuleParameters)

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

type IngressRuleObservation

type IngressRuleObservation struct {

	// The ID of the firewall rule.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`
}

func (*IngressRuleObservation) DeepCopy

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

func (*IngressRuleObservation) DeepCopyInto

func (in *IngressRuleObservation) DeepCopyInto(out *IngressRuleObservation)

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

type IngressRuleParameters

type IngressRuleParameters struct {

	// The action of the rule can be allow or deny. When we set the `action = 'allow'`, this is going to add a rule to allow traffic. Similarly, setting `action = 'deny'` will deny the traffic.
	// +kubebuilder:validation:Required
	Action *string `json:"action" tf:"action,omitempty"`

	// The CIDR notation of the other end to affect, or a valid network CIDR (e.g. 0.0.0.0/0 to open for everyone or 1.2.3.4/32 to open just for a specific IP address)
	// +kubebuilder:validation:Required
	Cidr []*string `json:"cidr" tf:"cidr,omitempty"`

	// A string that will be the displayed name/reference for this rule
	// +kubebuilder:validation:Optional
	Label *string `json:"label,omitempty" tf:"label,omitempty"`

	// The port or port range to open, can be a single port or a range separated by a dash (`-`), e.g. `80` or `80-443`
	// +kubebuilder:validation:Optional
	PortRange *string `json:"portRange,omitempty" tf:"port_range,omitempty"`

	// The protocol choice from `tcp`, `udp` or `icmp` (the default if unspecified is `tcp`)
	// +kubebuilder:validation:Optional
	Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"`
}

func (*IngressRuleParameters) DeepCopy

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

func (*IngressRuleParameters) DeepCopyInto

func (in *IngressRuleParameters) DeepCopyInto(out *IngressRuleParameters)

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

type InstalledApplicationsObservation

type InstalledApplicationsObservation struct {
	Application *string `json:"application,omitempty" tf:"application,omitempty"`

	Category *string `json:"category,omitempty" tf:"category,omitempty"`

	Installed *bool `json:"installed,omitempty" tf:"installed,omitempty"`

	Version *string `json:"version,omitempty" tf:"version,omitempty"`
}

func (*InstalledApplicationsObservation) DeepCopy

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

func (*InstalledApplicationsObservation) DeepCopyInto

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

type InstalledApplicationsParameters

type InstalledApplicationsParameters struct {
}

func (*InstalledApplicationsParameters) DeepCopy

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

func (*InstalledApplicationsParameters) DeepCopyInto

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

type PoolsObservation

type PoolsObservation struct {

	// Instance names in the nodepool
	InstanceNames []*string `json:"instanceNames,omitempty" tf:"instance_names,omitempty"`
}

func (*PoolsObservation) DeepCopy

func (in *PoolsObservation) DeepCopy() *PoolsObservation

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

func (*PoolsObservation) DeepCopyInto

func (in *PoolsObservation) DeepCopyInto(out *PoolsObservation)

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

type PoolsParameters

type PoolsParameters struct {

	// Node pool label, if you don't provide one, we will generate one for you
	// +kubebuilder:validation:Optional
	Label *string `json:"label,omitempty" tf:"label,omitempty"`

	// Number of nodes in the nodepool
	// +kubebuilder:validation:Required
	NodeCount *float64 `json:"nodeCount" tf:"node_count,omitempty"`

	// Size of the nodes in the nodepool
	// +kubebuilder:validation:Required
	Size *string `json:"size" tf:"size,omitempty"`
}

func (*PoolsParameters) DeepCopy

func (in *PoolsParameters) DeepCopy() *PoolsParameters

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

func (*PoolsParameters) DeepCopyInto

func (in *PoolsParameters) DeepCopyInto(out *PoolsParameters)

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