v1alpha1

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

+genclient +k8s:deepcopy-gen=package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultNetbird

func SetDefaultNetbird(obj *Netbird)

func SetDefaultsCluster

func SetDefaultsCluster(obj *Cluster)

SetDefaultsCluster sets uninitialized fieWlds to their default value.

func SetDefaultsGeneral

func SetDefaultsGeneral(obj *General)

func SetDefaultsHetzner

func SetDefaultsHetzner(obj *Hetzner)

func SetDefaultsLocal

func SetDefaultsLocal(obj *Local)

Types

type Cluster

type Cluster struct {
	TypeMeta `yaml:",inline" json:",inline"`
	Metadata Metadata `yaml:"metadata,omitempty" json:"metadata,omitempty"`
	Spec     Spec     `yaml:"spec,omitempty" json:"spec,omitempty"`
}

Cluster contains edgefarm cluster configuration +k8s:deepcopy-gen=true

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) Export added in v1.9.0

func (s *Cluster) Export(path string) error

type General

type General struct {
	KubeConfigPath string `yaml:"kubeConfigPath,omitempty" json:"kubeConfigPath,omitempty"`
	StatePath      string `yaml:"statePath,omitempty" json:"statePath,omitempty"`
}

+k8s:deepcopy-gen=true

func (*General) DeepCopy

func (in *General) DeepCopy() *General

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

func (*General) DeepCopyInto

func (in *General) DeepCopyInto(out *General)

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

type Hetzner

type Hetzner struct {
	ControlPlane HetznerMachines `yaml:"controlPlane,omitempty" json:"controlPlane,omitempty"`
	Workers      HetznerMachines `yaml:"workers,omitempty" json:"workers,omitempty"`
	// HetznerCloudRegion is the region where the cluster should be created
	HetznerCloudRegion string `yaml:"hetznerCloudRegion,omitempty" json:"hetznerCloudRegion,omitempty"`
	// HetznerCloudSSHKeyName is the name of the Hetzner Cloud SSH key in your Hetzner Cloud project
	HetznerCloudSSHKeyName string `yaml:"hetznerCloudSSHKeyName,omitempty" json:"hetznerCloudSSHKeyName,omitempty"`
	// The HCloudToken is created within a Hetzner Cloud project and needs read/write permissions
	HCloudToken string `yaml:"hcloudToken,omitempty" json:"hcloudToken,omitempty"`
	// The KubeConfigPath is the path where the kubeconfig file should be stored
	KubeConfigPath string `yaml:"kubeConfigPath,omitempty" json:"kubeConfigPath,omitempty"`
}

+k8s:deepcopy-gen=true

func (*Hetzner) DeepCopy

func (in *Hetzner) DeepCopy() *Hetzner

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

func (*Hetzner) DeepCopyInto

func (in *Hetzner) DeepCopyInto(out *Hetzner)

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

type HetznerMachines

type HetznerMachines struct {
	// The number of worker machines
	Count int `yaml:"count,omitempty" json:"count,omitempty"`
	// The type of the worker machine
	MachineType string `yaml:"machineType,omitempty" json:"machineType,omitempty"`
}

+k8s:deepcopy-gen=true

type Local

type Local struct {
	ApiServerPort    int `yaml:"apiServerPort,omitempty" json:"apiServerPort,omitempty"`
	NatsPort         int `yaml:"natsPort,omitempty" json:"natsPort,omitempty"`
	HttpPort         int `yaml:"httpPort,omitempty" json:"httpPort,omitempty"`
	HttpsPort        int `yaml:"httpsPort,omitempty" json:"httpsPort,omitempty"`
	VirtualEdgeNodes int `yaml:"virtualEdgeNodes,omitempty" json:"virtualEdgeNodes,omitempty"`
}

+k8s:deepcopy-gen=true

func (*Local) DeepCopy

func (in *Local) DeepCopy() *Local

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

func (*Local) DeepCopyInto

func (in *Local) DeepCopyInto(out *Local)

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

type Metadata added in v1.9.0

type Metadata struct {
	// The name of the Cluster
	Name string `yaml:"name,omitempty" json:"name,omitempty"`
}

+k8s:deepcopy-gen=true

type Netbird

type Netbird struct {
	SetupKey string `yaml:"setupKey,omitempty" json:"setupKey,omitempty"`
}

+k8s:deepcopy-gen=true

type Spec

type Spec struct {
	Type    string  `yaml:"type,omitempty" json:"type,omitempty"`
	General General `yaml:"general,omitempty" json:"general,omitempty"`
	Hetzner Hetzner `yaml:"hetzner,omitempty" json:"hetzner,omitempty"`
	Local   Local   `yaml:"local,omitempty" json:"local,omitempty"`
	Netbird Netbird `yaml:"netbird,omitempty" json:"netbird,omitempty"`
}

+k8s:deepcopy-gen=true

func (*Spec) DeepCopy

func (in *Spec) DeepCopy() *Spec

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

func (*Spec) DeepCopyInto

func (in *Spec) DeepCopyInto(out *Spec)

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

type TypeMeta

type TypeMeta struct {
	Kind       string `yaml:"kind,omitempty" json:"kind,omitempty"`
	APIVersion string `yaml:"apiVersion,omitempty" json:"apiVersion,omitempty"`
}

+k8s:deepcopy-gen=true

func (*TypeMeta) DeepCopy

func (in *TypeMeta) DeepCopy() *TypeMeta

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

func (*TypeMeta) DeepCopyInto

func (in *TypeMeta) DeepCopyInto(out *TypeMeta)

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