Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the apps v1 API group +kubebuilder:object:generate=true +groupName=home-cloud.io
Index ¶
- Constants
- Variables
- type App
- type AppList
- type AppSpec
- type AppStatus
- type AppStore
- type BaseSpec
- type CNISpec
- type DaemonSpec
- type DaemonStatus
- type Disk
- type DiskDetails
- type DiskList
- type DiskSpec
- type DiskStatus
- type GatewayAPISpec
- type GatewayAPIStatus
- type ImageVersion
- type Install
- type InstallList
- type InstallSpec
- type InstallStatus
- type IstioSpec
- type IstioStatus
- type IstiodSpec
- type KubernetesSpec
- type KubernetesStatus
- type MDNSSpec
- type MDNSStatus
- type OperatorSpec
- type OperatorStatus
- type PeerSpec
- type SecretReference
- type SettingsSpec
- type SystemSpec
- type SystemStatus
- type TunnelSpec
- type TunnelStatus
- type Wireguard
- type WireguardList
- type WireguardSpec
- type WireguardStatus
- type ZtunnelSpec
Constants ¶
const ( AnnotationDiskLoadRequested = "disks.home-cloud.io/load-requested" StatusConditionLoaded = "disks.home-cloud.io/loaded" )
const (
AnnotationAppCleanUninstall = "apps.home-cloud.io/clean-uninstall"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "home-cloud.io", Version: "v1"} // 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 App ¶
type App struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec AppSpec `json:"spec,omitempty"`
Status AppStatus `json:"status,omitempty"`
}
App is the Schema for the apps API
+kubebuilder:printcolumn:name="Version",type=string,JSONPath=`.spec.version`
func (*App) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new App.
func (*App) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*App) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppList ¶
type AppList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []App `json:"items"`
}
AppList contains a list of Apps
func (*AppList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppList.
func (*AppList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppSpec ¶
type AppSpec struct {
// Chart is the Helm chart which defines the App.
Chart string `json:"chart"`
// Repo is the URL for the chart repository.
Repo string `json:"repo"`
// Release is the name of the Helm release of the App.
Release string `json:"release"`
// Values optionally defines the values that will be applied to the Chart.
Values string `json:"values,omitempty"`
// Version is the version of the chart.
Version string `json:"version"`
}
AppSpec defines the desired state of an App
func (*AppSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSpec.
func (*AppSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppStatus ¶
type AppStatus struct {
// Version is the version of the Chart that is currently installed.
Version string `json:"version"`
// Values that were used for the current Chart install.
Values string `json:"values,omitempty"`
}
AppStatus defines the observed state of an App
func (*AppStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppStatus.
func (*AppStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppStore ¶
type AppStore struct {
// URL defines where the Helm chart index of the store is: e.g. https://apps.home-cloud.io/index.yaml
URL string `json:"url"`
// RawChartURL defines where to find README.md files that populate descriptions in the
// App Store: e.g. https://raw.githubusercontent.com/home-cloud-io/store
RawChartURL string `json:"rawChartURL"`
}
func (*AppStore) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppStore.
func (*AppStore) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BaseSpec ¶
type BaseSpec struct {
Values string `json:"values,omitempty"`
}
func (*BaseSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaseSpec.
func (*BaseSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CNISpec ¶
type CNISpec struct {
Values string `json:"values,omitempty"`
}
func (*CNISpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CNISpec.
func (*CNISpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DaemonSpec ¶
type DaemonSpec struct {
Disable bool `json:"disable,omitempty"`
Image string `json:"image,omitempty"`
Tag string `json:"tag,omitempty"`
Address string `json:"address,omitempty"`
System *SystemSpec `json:"system,omitempty"`
Kubernetes *KubernetesSpec `json:"kubernetes,omitempty"`
}
func (*DaemonSpec) DeepCopy ¶
func (in *DaemonSpec) DeepCopy() *DaemonSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSpec.
func (*DaemonSpec) DeepCopyInto ¶
func (in *DaemonSpec) DeepCopyInto(out *DaemonSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DaemonStatus ¶
type DaemonStatus struct {
Image string `json:"image,omitempty"`
Tag string `json:"tag,omitempty"`
System *SystemStatus `json:"system,omitempty"`
Kubernetes *KubernetesStatus `json:"kubernetes,omitempty"`
}
func (*DaemonStatus) DeepCopy ¶
func (in *DaemonStatus) DeepCopy() *DaemonStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonStatus.
func (*DaemonStatus) DeepCopyInto ¶
func (in *DaemonStatus) DeepCopyInto(out *DaemonStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Disk ¶ added in v0.1.1
type Disk struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DiskSpec `json:"spec,omitempty"`
Status DiskStatus `json:"status,omitempty"`
}
Disk is the Schema for the apps API
+kubebuilder:printcolumn:name="Alias",type=string,JSONPath=`.spec.alias` +kubebuilder:printcolumn:name="Node",type=string,JSONPath=`.spec.node` +kubebuilder:printcolumn:name="System Disk",type=boolean,JSONPath=`.spec.systemDisk` +kubebuilder:printcolumn:name="Type",type=string,JSONPath=`.spec.type` +kubebuilder:printcolumn:name="Model",type=string,JSONPath=`.spec.details.model` +kubebuilder:printcolumn:name="Device Path",type=string,JSONPath=`.spec.details.devicePath` +kubebuilder:printcolumn:name="Mount Path",type=string,JSONPath=`.spec.details.mountPath`
func (*Disk) DeepCopy ¶ added in v0.1.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Disk.
func (*Disk) DeepCopyInto ¶ added in v0.1.1
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Disk) DeepCopyObject ¶ added in v0.1.1
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DiskDetails ¶ added in v0.1.1
type DiskDetails struct {
// e.g. /dev/sda (keep in mind that this is *not* a stable value)
DevicePath string `json:"devicePath,omitempty"`
// e.g. /mnt/my-disk (for Talos: /var/mnt/<alias>)
MountPath string `json:"mountPath,omitempty"`
// size in bytes
Size resource.Quantity `json:"size,omitempty"`
Model string `json:"model,omitempty"`
Serial string `json:"serial,omitempty"`
Wwid string `json:"wwid,omitempty"`
Uuid string `json:"uuid,omitempty"`
Symlinks []string `json:"symlinks,omitempty"`
}
func (*DiskDetails) DeepCopy ¶ added in v0.1.1
func (in *DiskDetails) DeepCopy() *DiskDetails
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskDetails.
func (*DiskDetails) DeepCopyInto ¶ added in v0.1.1
func (in *DiskDetails) DeepCopyInto(out *DiskDetails)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiskList ¶ added in v0.1.1
type DiskList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Disk `json:"items"`
}
func (*DiskList) DeepCopy ¶ added in v0.1.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskList.
func (*DiskList) DeepCopyInto ¶ added in v0.1.1
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DiskList) DeepCopyObject ¶ added in v0.1.1
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DiskSpec ¶ added in v0.1.1
type DiskSpec struct {
// A user-specified alias that can be used for display purposes
Alias string `json:"alias,omitempty"`
// The node in the cluster the disk is mounted to
// +required
Node string `json:"node,omitempty"`
// valid types: ssd, hdd, nvme
// +required
Type string `json:"type,omitempty"`
// A *stable* id of the disk (e.g. /disk/by-path, wwn, serial)
// +required
Identifier string `json:"identifier,omitempty"`
// whether the operating system is installed to this disk
// usually do not want to use it also as an application disk
// +required
SystemDisk bool `json:"systemDisk"`
Details DiskDetails `json:"details"`
}
func (*DiskSpec) DeepCopy ¶ added in v0.1.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskSpec.
func (*DiskSpec) DeepCopyInto ¶ added in v0.1.1
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiskStatus ¶ added in v0.1.1
func (*DiskStatus) DeepCopy ¶ added in v0.1.1
func (in *DiskStatus) DeepCopy() *DiskStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskStatus.
func (*DiskStatus) DeepCopyInto ¶ added in v0.1.1
func (in *DiskStatus) DeepCopyInto(out *DiskStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GatewayAPISpec ¶
type GatewayAPISpec struct {
// Disabling will not uninstall a previous installation. Since these CRDs are cluster-scoped, this is to avoid
// breaking an existing installation from another source. You must uninstall manually after disabling.
Disable bool `json:"disable,omitempty"`
Source string `json:"source,omitempty"`
Version string `json:"version,omitempty"`
}
func (*GatewayAPISpec) DeepCopy ¶
func (in *GatewayAPISpec) DeepCopy() *GatewayAPISpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayAPISpec.
func (*GatewayAPISpec) DeepCopyInto ¶
func (in *GatewayAPISpec) DeepCopyInto(out *GatewayAPISpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GatewayAPIStatus ¶
type GatewayAPIStatus struct {
Source string `json:"url,omitempty"`
Version string `json:"version,omitempty"`
}
func (*GatewayAPIStatus) DeepCopy ¶
func (in *GatewayAPIStatus) DeepCopy() *GatewayAPIStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayAPIStatus.
func (*GatewayAPIStatus) DeepCopyInto ¶
func (in *GatewayAPIStatus) DeepCopyInto(out *GatewayAPIStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageVersion ¶
func (*ImageVersion) DeepCopy ¶
func (in *ImageVersion) DeepCopy() *ImageVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageVersion.
func (*ImageVersion) DeepCopyInto ¶
func (in *ImageVersion) DeepCopyInto(out *ImageVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Install ¶
type Install struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec InstallSpec `json:"spec,omitempty"`
Status InstallStatus `json:"status,omitempty"`
}
Install is the Schema for the installs API
+kubebuilder:printcolumn:name="Version",type=string,JSONPath=`.spec.version` +kubebuilder:printcolumn:name="Installed",type=string,JSONPath=`.status.version`
func (*Install) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Install.
func (*Install) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Install) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstallList ¶
type InstallList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Install `json:"items"`
}
InstallList contains a list of Install
func (*InstallList) DeepCopy ¶
func (in *InstallList) DeepCopy() *InstallList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstallList.
func (*InstallList) DeepCopyInto ¶
func (in *InstallList) DeepCopyInto(out *InstallList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InstallList) DeepCopyObject ¶
func (in *InstallList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstallSpec ¶
type InstallSpec struct {
Version string `json:"version"`
GatewayAPI *GatewayAPISpec `json:"gatewayApi,omitempty" yaml:"gatewayApi"`
Istio *IstioSpec `json:"istio,omitempty"`
MDNS *MDNSSpec `json:"mdns,omitempty"`
Tunnel *TunnelSpec `json:"tunnel,omitempty"`
Operator *OperatorSpec `json:"operator,omitempty"`
// TODO: document API
Daemon *DaemonSpec `json:"daemon,omitempty"`
Settings *SettingsSpec `json:"settings,omitempty"`
}
InstallSpec defines the desired state of Install
func (*InstallSpec) DeepCopy ¶
func (in *InstallSpec) DeepCopy() *InstallSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstallSpec.
func (*InstallSpec) DeepCopyInto ¶
func (in *InstallSpec) DeepCopyInto(out *InstallSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstallStatus ¶
type InstallStatus struct {
Version string `json:"version,omitempty"`
GatewayAPI *GatewayAPIStatus `json:"gatewayApi,omitempty"`
Istio *IstioStatus `json:"istio,omitempty"`
MDNS *MDNSStatus `json:"mdns,omitempty"`
Tunnel *TunnelStatus `json:"tunnel,omitempty"`
Operator *OperatorStatus `json:"operator,omitempty"`
Daemon *DaemonStatus `json:"daemon,omitempty"`
}
InstallStatus defines the observed state of Install
func (*InstallStatus) DeepCopy ¶
func (in *InstallStatus) DeepCopy() *InstallStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstallStatus.
func (*InstallStatus) DeepCopyInto ¶
func (in *InstallStatus) DeepCopyInto(out *InstallStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IstioSpec ¶
type IstioSpec struct {
Disable bool `json:"disable,omitempty"`
Namespace string `json:"istio,omitempty"`
Source string `json:"source,omitempty"`
Version string `json:"version,omitempty"`
IngressGatewayName string `json:"ingressGatewayName,omitempty"`
Base *BaseSpec `json:"base,omitempty"`
Istiod *IstiodSpec `json:"istiod,omitempty"`
CNI *CNISpec `json:"cni,omitempty"`
Ztunnel *ZtunnelSpec `json:"ztunnel,omitempty"`
}
func (*IstioSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioSpec.
func (*IstioSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IstioStatus ¶
type IstioStatus struct {
Source string `json:"repo,omitempty"`
Version string `json:"version,omitempty"`
}
func (*IstioStatus) DeepCopy ¶
func (in *IstioStatus) DeepCopy() *IstioStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioStatus.
func (*IstioStatus) DeepCopyInto ¶
func (in *IstioStatus) DeepCopyInto(out *IstioStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IstiodSpec ¶
type IstiodSpec struct {
Values string `json:"values,omitempty"`
}
func (*IstiodSpec) DeepCopy ¶
func (in *IstiodSpec) DeepCopy() *IstiodSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstiodSpec.
func (*IstiodSpec) DeepCopyInto ¶
func (in *IstiodSpec) DeepCopyInto(out *IstiodSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubernetesSpec ¶
type KubernetesSpec struct {
Disable bool `json:"disable,omitempty"`
// Version is the semver of the Kubernetes release: e.g. 1.34.2
Version string `json:"version,omitempty"`
}
func (*KubernetesSpec) DeepCopy ¶
func (in *KubernetesSpec) DeepCopy() *KubernetesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesSpec.
func (*KubernetesSpec) DeepCopyInto ¶
func (in *KubernetesSpec) DeepCopyInto(out *KubernetesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubernetesStatus ¶
type KubernetesStatus struct {
Version string `json:"version,omitempty"`
}
func (*KubernetesStatus) DeepCopy ¶
func (in *KubernetesStatus) DeepCopy() *KubernetesStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesStatus.
func (*KubernetesStatus) DeepCopyInto ¶
func (in *KubernetesStatus) DeepCopyInto(out *KubernetesStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MDNSSpec ¶
type MDNSSpec struct {
Disable bool `json:"disable,omitempty"`
Image string `json:"image,omitempty"`
Tag string `json:"tag,omitempty"`
}
func (*MDNSSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MDNSSpec.
func (*MDNSSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MDNSStatus ¶
func (*MDNSStatus) DeepCopy ¶
func (in *MDNSStatus) DeepCopy() *MDNSStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MDNSStatus.
func (*MDNSStatus) DeepCopyInto ¶
func (in *MDNSStatus) DeepCopyInto(out *MDNSStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OperatorSpec ¶
type OperatorSpec struct {
Disable bool `json:"disable,omitempty"`
Image string `json:"image,omitempty"`
Tag string `json:"tag,omitempty"`
}
func (*OperatorSpec) DeepCopy ¶
func (in *OperatorSpec) DeepCopy() *OperatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorSpec.
func (*OperatorSpec) DeepCopyInto ¶
func (in *OperatorSpec) DeepCopyInto(out *OperatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OperatorStatus ¶
type OperatorStatus struct {
Image string `json:"image,omitempty"`
Tag string `json:"tag,omitempty"`
}
func (*OperatorStatus) DeepCopy ¶
func (in *OperatorStatus) DeepCopy() *OperatorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorStatus.
func (*OperatorStatus) DeepCopyInto ¶
func (in *OperatorStatus) DeepCopyInto(out *OperatorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PeerSpec ¶
type PeerSpec struct {
// PrivateKeySecret references a Secret which contains the private key for this peer.
// +optional
PrivateKeySecret *SecretReference `json:"privateKeySecret,omitempty"`
// PublicKey specifies the public key of this peer. PublicKey is a
// mandatory field for all PeerConfigs.
PublicKey string `json:"publicKey"`
//
// Setting to nil will clear the preshared key.
// +optional
PresharedKey *SecretReference `json:"presharedKey,omitempty"`
// Endpoint specifies the endpoint of this peer entry, if not nil.
// +optional
Endpoint *string `json:"endpoint,omitempty"`
// PersistentKeepaliveInterval specifies the persistent keepalive interval
// for this peer, if not nil.
//
// A non-nil value of 0 will clear the persistent keepalive interval.
// +optional
PersistentKeepaliveInterval *time.Duration `json:"persistentKeepaliveInterval,omitempty"`
// AllowedIPs specifies a list of allowed IP addresses in CIDR notation.
// for this peer.
AllowedIPs []string `json:"allowedIPs"`
}
func (*PeerSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeerSpec.
func (*PeerSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretReference ¶
type SecretReference struct {
// Name specifies name of the Secret object.
Name string `json:"name"`
// Namespace specifies the namespace of the Secret object.
// If not set, will search within the same namespace as the Wireguard object.
// +optional
Namespace *string `json:"namespace,omitempty"`
// DataKey specifies the data key to find the requested value in.
DataKey string `json:"dataKey"`
}
func (*SecretReference) DeepCopy ¶
func (in *SecretReference) DeepCopy() *SecretReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretReference.
func (*SecretReference) DeepCopyInto ¶
func (in *SecretReference) DeepCopyInto(out *SecretReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SettingsSpec ¶
type SettingsSpec struct {
// AutoUpdateApps (default: true)
AutoUpdateApps bool `json:"autoUpdateApps,omitempty"`
// AutoUpdateSystem (default: true)
AutoUpdateSystem bool `json:"autoUpdateSystem,omitempty"`
// Hostname defines the base hostname for the install (default: home-cloud.local)
Hostname string `json:"hostname,omitempty"`
// AppStores defines the app stores to install apps from
AppStores []AppStore `json:"appStores,omitempty"`
// AutoUpdateAppsSchedule is a cron string that defines the freqency with which the server
// will automatically update installed Apps: e.g. (default: "0 3 * * *")
//
// You must restart the server after changing this value for it to take
// effect if updating the Kuberenetes resource directly.
AutoUpdateAppsSchedule string `json:"autoUpdateAppsSchedule,omitempty"`
// AutoUpdateSystemSchedule is a cron string that defines the freqency with which the server
// will automatically update system components: e.g. (default: "0 1 * * *")
//
// You must restart the server after changing this value for it to take
// effect if updating the Kuberenetes resource directly.
AutoUpdateSystemSchedule string `json:"autoUpdateSystemSchedule,omitempty"`
// StorageApps are apps designated as apps responsible for managing all application storage.
// Functionally this means these apps will be provided with PV/PVCs for all application disks.
// This is provided through the `homeCloud.disks` entry in the Helm values for the App which
// should be parsed into volume/volumeMounts.
//
// For example:
//
// containers:
// - name: some_app
// ...
// volumeMounts:
// {{- range .Values.homeCloud.disks }}
// - mountPath: {{ printf "/some_path/%s" .name }}
// name: {{ .name }}
// {{- end }}
// volumes:
// {{- range .Values.homeCloud.disks }}
// - name: {{ .name }}
// persistentVolumeClaim:
// claimName: {{ .claimName }}
// {{- end }}
StorageApps []string `json:"storageApps"`
}
func (*SettingsSpec) DeepCopy ¶
func (in *SettingsSpec) DeepCopy() *SettingsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SettingsSpec.
func (*SettingsSpec) DeepCopyInto ¶
func (in *SettingsSpec) DeepCopyInto(out *SettingsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SystemSpec ¶
type SystemSpec struct {
Disable bool `json:"disable,omitempty"`
// Source represents the source URL of the system image. For example, for Talos
// this is the installer image: ghcr.io/siderolabs/installer
Source string `json:"source,omitempty"`
// Version represents the version of the system to install. For example, for Talos
// this is the tag of the installer image: e.g. v1.11.2
Version string `json:"version,omitempty"`
}
func (*SystemSpec) DeepCopy ¶
func (in *SystemSpec) DeepCopy() *SystemSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SystemSpec.
func (*SystemSpec) DeepCopyInto ¶
func (in *SystemSpec) DeepCopyInto(out *SystemSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SystemStatus ¶
type SystemStatus struct {
Source string `json:"repo,omitempty"`
Version string `json:"version,omitempty"`
}
func (*SystemStatus) DeepCopy ¶
func (in *SystemStatus) DeepCopy() *SystemStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SystemStatus.
func (*SystemStatus) DeepCopyInto ¶
func (in *SystemStatus) DeepCopyInto(out *SystemStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TunnelSpec ¶
type TunnelSpec struct {
Disable bool `json:"disable,omitempty"`
Image string `json:"image,omitempty"`
Tag string `json:"tag,omitempty"`
}
func (*TunnelSpec) DeepCopy ¶
func (in *TunnelSpec) DeepCopy() *TunnelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TunnelSpec.
func (*TunnelSpec) DeepCopyInto ¶
func (in *TunnelSpec) DeepCopyInto(out *TunnelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TunnelStatus ¶
type TunnelStatus struct {
Image string `json:"image,omitempty"`
Tag string `json:"tag,omitempty"`
}
func (*TunnelStatus) DeepCopy ¶
func (in *TunnelStatus) DeepCopy() *TunnelStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TunnelStatus.
func (*TunnelStatus) DeepCopyInto ¶
func (in *TunnelStatus) DeepCopyInto(out *TunnelStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Wireguard ¶
type Wireguard struct {
metav1.TypeMeta `json:",inline"`
// metadata is a standard object metadata
// +optional
metav1.ObjectMeta `json:"metadata,omitempty,omitzero"`
// spec defines the desired state of Wireguard
// +required
Spec WireguardSpec `json:"spec"`
// status defines the observed state of Wireguard
// +optional
Status WireguardStatus `json:"status,omitempty,omitzero"`
}
Wireguard is the Schema for the wireguards API
func (*Wireguard) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Wireguard.
func (*Wireguard) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Wireguard) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WireguardList ¶
type WireguardList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Wireguard `json:"items"`
}
WireguardList contains a list of Wireguard
func (*WireguardList) DeepCopy ¶
func (in *WireguardList) DeepCopy() *WireguardList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WireguardList.
func (*WireguardList) DeepCopyInto ¶
func (in *WireguardList) DeepCopyInto(out *WireguardList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WireguardList) DeepCopyObject ¶
func (in *WireguardList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WireguardSpec ¶
type WireguardSpec struct {
// ID specifies the universally unique (UUID v4) identity of this interface. This is a public
// value that is used to lookup this Wireguard interface (server) via the defined Locator servers. It can
// be rotated independently of the private key (e.g. if the ID gets leaked and someone tries to DDOS
// the server with connection requests through a public Locator).
ID string `json:"id"`
// Locators specifies the addresses of Locator servers to connect to this Wireguard interface.
Locators []string `json:"locators"`
// STUNServer specifies the address of the STUN server to bind the ListenPort to and perform
// multiplexing of traffic between STUN and Wireguard.
STUNServer string `json:"stunServer"`
// Name specifies the name of the interface.
Name string `json:"name"`
// PrivateKeySecret references a Secret which contains the private key for this interface.
PrivateKeySecret SecretReference `json:"privateKeySecret"`
// Address specifies the address of the interface in CIDR notation.
Address string `json:"address"`
// ListenPort specifies an interface's listening port.
ListenPort int `json:"listenPort"`
// NATInterface specifies the interface to configure NAT masquerade on for forwarding
// external traffic through (eth0, ens18, etc.).
NATInterface string `json:"natInterface"`
// Peers specifies a list of peer configurations to apply to an interface.
Peers []PeerSpec `json:"peers"`
}
WireguardSpec defines the desired state of Wireguard
func (*WireguardSpec) DeepCopy ¶
func (in *WireguardSpec) DeepCopy() *WireguardSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WireguardSpec.
func (*WireguardSpec) DeepCopyInto ¶
func (in *WireguardSpec) DeepCopyInto(out *WireguardSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WireguardStatus ¶
type WireguardStatus struct {
// conditions represent the current state of the Wireguard resource.
// Each condition has a unique type and reflects the status of a specific aspect of the resource.
//
// Standard condition types include:
// - "Available": the resource is fully functional
// - "Progressing": the resource is being created or updated
// - "Degraded": the resource failed to reach or maintain its desired state
//
// The status of each condition is one of True, False, or Unknown.
// +listType=map
// +listMapKey=type
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
WireguardStatus defines the observed state of Wireguard.
func (*WireguardStatus) DeepCopy ¶
func (in *WireguardStatus) DeepCopy() *WireguardStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WireguardStatus.
func (*WireguardStatus) DeepCopyInto ¶
func (in *WireguardStatus) DeepCopyInto(out *WireguardStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZtunnelSpec ¶
type ZtunnelSpec struct {
Values string `json:"values,omitempty"`
}
func (*ZtunnelSpec) DeepCopy ¶
func (in *ZtunnelSpec) DeepCopy() *ZtunnelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZtunnelSpec.
func (*ZtunnelSpec) DeepCopyInto ¶
func (in *ZtunnelSpec) DeepCopyInto(out *ZtunnelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.