v1alpha1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the tailcar v1alpha1 API group +kubebuilder:object:generate=true +groupName=tailcar.rajsingh.info

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "tailcar.rajsingh.info", Version: "v1alpha1"}

	// 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 SecretReference

type SecretReference struct {
	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// +kubebuilder:validation:Required
	Namespace string `json:"namespace"`
}

SecretReference references a secret containing OAuth credentials.

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 Tailnet

type Tailnet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   TailnetSpec   `json:"spec,omitempty"`
	Status TailnetStatus `json:"status,omitempty"`
}

Tailnet is the Schema for the tailnets API.

func (*Tailnet) DeepCopy

func (in *Tailnet) DeepCopy() *Tailnet

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

func (*Tailnet) DeepCopyInto

func (in *Tailnet) DeepCopyInto(out *Tailnet)

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

func (*Tailnet) DeepCopyObject

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

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

type TailnetList

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

TailnetList contains a list of Tailnet.

func (*TailnetList) DeepCopy

func (in *TailnetList) DeepCopy() *TailnetList

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

func (*TailnetList) DeepCopyInto

func (in *TailnetList) DeepCopyInto(out *TailnetList)

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

func (*TailnetList) DeepCopyObject

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

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

type TailnetSpec

type TailnetSpec struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:default="-"
	TailnetName string `json:"tailnetName"`

	// +kubebuilder:validation:Required
	OAuthSecretRef SecretReference `json:"oauthSecretRef"`

	// +kubebuilder:validation:Required
	Tailscale TailscaleConfig `json:"tailscale"`
}

TailnetSpec defines the desired state of Tailnet.

func (*TailnetSpec) DeepCopy

func (in *TailnetSpec) DeepCopy() *TailnetSpec

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

func (*TailnetSpec) DeepCopyInto

func (in *TailnetSpec) DeepCopyInto(out *TailnetSpec)

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

type TailnetStatus

type TailnetStatus struct {
	// +optional
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// +optional
	AuthKeyID string `json:"authKeyID,omitempty"`

	// +optional
	AuthKeyCreated *metav1.Time `json:"authKeyCreated,omitempty"`

	// +optional
	InjectedPods int32 `json:"injectedPods,omitempty"`

	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

TailnetStatus defines the observed state of Tailnet.

func (*TailnetStatus) DeepCopy

func (in *TailnetStatus) DeepCopy() *TailnetStatus

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

func (*TailnetStatus) DeepCopyInto

func (in *TailnetStatus) DeepCopyInto(out *TailnetStatus)

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

type TailscaleConfig

type TailscaleConfig struct {
	// +kubebuilder:default=true
	// +optional
	AutoApprove bool `json:"autoApprove,omitempty"`

	// +kubebuilder:default=true
	// +optional
	AcceptDNS *bool `json:"acceptDNS,omitempty"`

	// +kubebuilder:default=false
	// +optional
	Userspace *bool `json:"userspace,omitempty"`

	// +kubebuilder:default="/var/lib/tailscale"
	// +optional
	StateDir string `json:"stateDir,omitempty"`

	// +optional
	Env []corev1.EnvVar `json:"env,omitempty"`

	// +optional
	Tags []string `json:"tags,omitempty"`

	// +kubebuilder:default="ghcr.io/tailscale/tailscale:latest"
	// +optional
	Image string `json:"image,omitempty"`
}

TailscaleConfig contains Tailscale-specific configuration.

func (*TailscaleConfig) DeepCopy

func (in *TailscaleConfig) DeepCopy() *TailscaleConfig

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

func (*TailscaleConfig) DeepCopyInto

func (in *TailscaleConfig) DeepCopyInto(out *TailscaleConfig)

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