Documentation ¶
Overview ¶
+genclient +k8s:deepcopy-gen=package
Index ¶
- func SetDefaultNetbird(obj *Netbird)
- func SetDefaultsCluster(obj *Cluster)
- func SetDefaultsGeneral(obj *General)
- func SetDefaultsHetzner(obj *Hetzner)
- func SetDefaultsLocal(obj *Local)
- type Cluster
- type General
- type Hetzner
- type HetznerMachines
- type Local
- type Metadata
- type Netbird
- type Spec
- type TypeMeta
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (*Cluster) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new General.
func (*General) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Hetzner.
func (*Hetzner) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Local.
func (*Local) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spec.
func (*Spec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypeMeta.
func (*TypeMeta) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.