Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group. +kubebuilder:object:generate=true +groupName=core.thecluster.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects. SchemeGroupVersion = schema.GroupVersion{Group: "core.thecluster.io", Version: "v1alpha1"} // GroupVersion is an alias for SchemeGroupVersion. GroupVersion = SchemeGroupVersion // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = runtime.NewSchemeBuilder(func(scheme *runtime.Scheme) error { metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil }) // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type WireguardClient ¶
type WireguardClient struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec WireguardClientSpec `json:"spec,omitempty"`
Status WireguardClientStatus `json:"status,omitempty"`
}
WireguardClient is the Schema for the wireguardclients API.
func (*WireguardClient) DeepCopy ¶
func (in *WireguardClient) DeepCopy() *WireguardClient
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WireguardClient.
func (*WireguardClient) DeepCopyInto ¶
func (in *WireguardClient) DeepCopyInto(out *WireguardClient)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WireguardClient) DeepCopyObject ¶
func (in *WireguardClient) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WireguardClientConfig ¶
type WireguardClientConfig struct {
// The name of the configuration, used as the configuration file name
Name string `json:"name"`
// An external source for the client configuration values
ValueFrom *WireguardClientConfigSource `json:"valueFrom,omitempty"`
}
WireguardClientConfig defines a wireguard configuration file to be mounted in the /config directory of the container
func (*WireguardClientConfig) DeepCopy ¶
func (in *WireguardClientConfig) DeepCopy() *WireguardClientConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WireguardClientConfig.
func (*WireguardClientConfig) DeepCopyInto ¶
func (in *WireguardClientConfig) DeepCopyInto(out *WireguardClientConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WireguardClientConfigSource ¶
type WireguardClientConfigSource struct {
// A reference to a config map key that contains a wireguard client configuration
ConfigMapKeyRef *corev1.ConfigMapKeySelector `json:"configMapKeyRef,omitempty"`
// A reference to a secret key that contains a wireguard client configuration
SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef,omitempty"`
}
WireguardClientConfigSource defines an external source for the WireguardClientConfig
func (*WireguardClientConfigSource) DeepCopy ¶
func (in *WireguardClientConfigSource) DeepCopy() *WireguardClientConfigSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WireguardClientConfigSource.
func (*WireguardClientConfigSource) DeepCopyInto ¶
func (in *WireguardClientConfigSource) DeepCopyInto(out *WireguardClientConfigSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WireguardClientList ¶
type WireguardClientList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []WireguardClient `json:"items"`
}
WireguardClientList contains a list of WireguardClient.
func (*WireguardClientList) DeepCopy ¶
func (in *WireguardClientList) DeepCopy() *WireguardClientList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WireguardClientList.
func (*WireguardClientList) DeepCopyInto ¶
func (in *WireguardClientList) DeepCopyInto(out *WireguardClientList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WireguardClientList) DeepCopyObject ¶
func (in *WireguardClientList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WireguardClientSpec ¶
type WireguardClientSpec struct {
// For UserID, see the [linuxserver explanation]
//
// [linuxserver explanation]: https://github.com/linuxserver/docker-wireguard#user--group-identifiers
PUID int64 `json:"puid"`
// For GroupID, see the [linuxserver explanation]
//
// [linuxserver explanation]: https://github.com/linuxserver/docker-wireguard#user--group-identifiers
PGID int64 `json:"pgid"`
// TZ specifies a timezone to use, see this [list of time zones]
//
// [list of time zones]: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ string `json:"tz"`
// The IPs/Ranges that the peers will be able to reach using the VPN connection.
// If not specified the default value is: '0.0.0.0/0, ::0/0'
// This will cause ALL traffic to route through the VPN, if you want split tunneling,
// set this to only the IPs you would like to use the tunnel AND the ip of the server's WG ip, such as 10.13.13.1.
// +optional
AllowedIPs []string `json:"allowedIps,omitempty"`
// Generated QR codes will be displayed in the docker log.
// Set to false to skip log output.
// +optional
LogConfs *bool `json:"logConfs,omitempty"`
// Run container with a read-only filesystem. More info in the linuxserver.io [docs]
//
// [docs]: https://docs.linuxserver.io/misc/read-only/
//
// +optional
ReadOnly *bool `json:"readonly,omitempty"`
// Wireguard client configurations to mount in the container
Configs []WireguardClientConfig `json:"configs"`
}
WireguardClientSpec defines the desired state of WireguardClient
func (*WireguardClientSpec) DeepCopy ¶
func (in *WireguardClientSpec) DeepCopy() *WireguardClientSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WireguardClientSpec.
func (*WireguardClientSpec) DeepCopyInto ¶
func (in *WireguardClientSpec) DeepCopyInto(out *WireguardClientSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WireguardClientStatus ¶
type WireguardClientStatus struct {
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}
WireguardClientStatus defines the observed state of WireguardClient
func (*WireguardClientStatus) DeepCopy ¶
func (in *WireguardClientStatus) DeepCopy() *WireguardClientStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WireguardClientStatus.
func (*WireguardClientStatus) DeepCopyInto ¶
func (in *WireguardClientStatus) DeepCopyInto(out *WireguardClientStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.