v1alpha1

package
v0.0.0-...-dc84d35 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: inletsoperator.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ResourceRef

type ResourceRef struct {
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

ResourceRef references resources across namespaces

func (*ResourceRef) DeepCopy

func (in *ResourceRef) DeepCopy() *ResourceRef

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

func (*ResourceRef) DeepCopyInto

func (in *ResourceRef) DeepCopyInto(out *ResourceRef)

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

type Tunnel

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

	Spec TunnelSpec `json:"spec,omitempty"`

	// +kubebuilder:validation:Optional
	Status TunnelStatus `json:"status,omitempty"`
}

Tunnel is a specification for a Tunnel resource +kubebuilder:printcolumn:name="Service",type=string,JSONPath=`.spec.serviceRef.name` +kubebuilder:printcolumn:name="Client",priority=1,type=string,JSONPath=`.status.clientDeploymentRef.name` +kubebuilder:printcolumn:name="HostStatus",type=string,JSONPath=`.status.hostStatus` +kubebuilder:printcolumn:name="HostIP",type=string,JSONPath=`.status.hostIP` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` +kubebuilder:printcolumn:name="HostID",priority=1,type=string,JSONPath=`.status.hostId` +kubebuilder:printcolumn:name="UpdateServiceIP",priority=1,type=boolean,JSONPath=`.spec.updateServiceIP` +kubebuilder:printcolumn:name="Generated",priority=1,type=boolean,JSONPath=`.status.generated` +kubebuilder:subresource:status

func (*Tunnel) DeepCopy

func (in *Tunnel) DeepCopy() *Tunnel

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

func (*Tunnel) DeepCopyInto

func (in *Tunnel) DeepCopyInto(out *Tunnel)

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

func (*Tunnel) DeepCopyObject

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

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

type TunnelList

type TunnelList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Tunnel `json:"items"`
}

TunnelList is a list of Tunnel resources

func (*TunnelList) DeepCopy

func (in *TunnelList) DeepCopy() *TunnelList

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

func (*TunnelList) DeepCopyInto

func (in *TunnelList) DeepCopyInto(out *TunnelList)

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

func (*TunnelList) DeepCopyObject

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

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

type TunnelSpec

type TunnelSpec struct {
	// ServiceRef is the internal service to tunnel to the remote host
	ServiceRef *ResourceRef `json:"serviceRef,omitempty"`

	// AuthToken is the secret used to authenticate the tunnel client with the remote tunnel server VM
	AuthTokenRef *ResourceRef `json:"authTokenRef,omitempty"`

	// +nullable
	// +kubebuilder:validation:Optional
	// LicenseRef is the secret used to load the inlets-client
	// license, and is the same for each tunnel within the cluster
	LicenseRef *ResourceRef `json:"licenseRef,omitempty"`

	// +nullable
	// +kubebuilder:validation:Optional
	UpdateServiceIP bool `json:"updateServiceIP,omitempty"`
}

TunnelSpec is the spec for a Tunnel resource

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 {
	// Generated is set to true when the tunnel is created by the operator and false
	// when a user creates the Tunnel via YAML
	Generated bool `json:"generated,omitempty"`

	// + optional
	HostStatus string `json:"hostStatus,omitempty"`

	// + optional
	HostIP string `json:"hostIP,omitempty"`

	// + optional
	HostID string `json:"hostId,omitempty"`

	// + optional
	// +kubebuilder:validation:Optional
	AuthTokenRef *ResourceRef `json:"authTokenRef,omitempty"`

	// +nullable
	// +kubebuilder:validation:Optional
	ClientDeploymentRef *ResourceRef `json:"clientDeploymentRef,omitempty"`
}

TunnelStatus is the status for a Tunnel resource

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL