v1alpha1

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=fluxninja.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

	Spec   AgentSpec   `json:"spec,omitempty"`
	Status AgentStatus `json:"status,omitempty"`
}

Agent is the Schema for the agents API.

func (*Agent) DeepCopy

func (in *Agent) DeepCopy() *Agent

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

func (*Agent) DeepCopyInto

func (in *Agent) DeepCopyInto(out *Agent)

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

func (*Agent) DeepCopyObject

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

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

type AgentConfigSpec

type AgentConfigSpec struct {
	// CommonConfigSpec
	//+kubebuilder:validation:Optional
	common.CommonConfigSpec `json:",inline"`

	// AgentInfo configuration.
	//+kubebuilder:validation:Optional
	AgentInfo agentinfo.AgentInfoConfig `json:"agent_info"`

	// DistCache configuration.
	//+kubebuilder:validation:Optional
	DistCache distcache.DistCacheConfig `json:"dist_cache"`

	// Kubernetes client configuration.
	//+kubebuilder:validation:Optional
	KubernetesClient http.HTTPClientConfig `json:"kubernetes_client"`

	// Peer discovery configuration.
	//+kubebuilder:validation:Optional
	PeerDiscovery peers.PeerDiscoveryConfig `json:"peer_discovery"`

	// FlowControl configuration.
	//+kubebuilder:validation:Optional
	FlowControl FlowControlConfigSpec `json:"flow_control"`

	// AutoScale configuration.
	//+kubebuilder:validation:Optional
	AutoScale AutoScaleConfigSpec `json:"auto_scale"`

	// Service Discovery configuration.
	//+kubebuilder:validation:Optional
	ServiceDiscoverySpec common.ServiceDiscoverySpec `json:"service_discovery"`

	// OTel configuration.
	//+kubebuilder:validation:Optional
	OTel agent.AgentOTelConfig `json:"otel"`

	// Agent functions configuration.
	//+kubebuilder:validation:Optional
	AgentFunctions afconfig.AgentFunctionsConfig `json:"agent_functions"`
}

AgentConfigSpec holds agent configuration.

func (*AgentConfigSpec) DeepCopy

func (in *AgentConfigSpec) DeepCopy() *AgentConfigSpec

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

func (*AgentConfigSpec) DeepCopyInto

func (in *AgentConfigSpec) DeepCopyInto(out *AgentConfigSpec)

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

type AgentList

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

AgentList contains a list of Agent.

func (*AgentList) DeepCopy

func (in *AgentList) DeepCopy() *AgentList

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

func (*AgentList) DeepCopyInto

func (in *AgentList) DeepCopyInto(out *AgentList)

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

func (*AgentList) DeepCopyObject

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

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

type AgentSpec

type AgentSpec struct {
	// CommonSpec defines the common state between Agent and Controller
	common.CommonSpec `json:",inline"`

	// Image configuration
	//+kubebuilder:validation:Optional
	Image common.AgentImage `json:"image"`

	// Sidecar defines the desired state of Sidecar setup for Agent
	//+kubebuilder:validation:Optional
	Sidecar SidecarSpec `json:"sidecar"`

	// Agent Configuration
	//+kubebuilder:validation:Optional
	ConfigSpec AgentConfigSpec `json:"config"`

	// ControllerClientCertConfig configuration.
	//+kubebuilder:validation:Optional
	ControllerClientCertConfig common.ControllerClientCertConfig `json:"controller_client_cert"`
}

AgentSpec defines the desired state for the Agent.

func (*AgentSpec) DeepCopy

func (in *AgentSpec) DeepCopy() *AgentSpec

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

func (*AgentSpec) DeepCopyInto

func (in *AgentSpec) DeepCopyInto(out *AgentSpec)

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

type AgentStatus

type AgentStatus struct {
	Resources string `json:"resources,omitempty"`
}

AgentStatus defines the observed state of Agent.

func (*AgentStatus) DeepCopy

func (in *AgentStatus) DeepCopy() *AgentStatus

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

func (*AgentStatus) DeepCopyInto

func (in *AgentStatus) DeepCopyInto(out *AgentStatus)

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

type AutoScaleConfigSpec

type AutoScaleConfigSpec struct {
	// AutoScaleKubernetesConfig holds auto-scale kubernetes configuration.
	//+kubebuilder:validation:Optional
	AutoScaleKubernetesConfig autoscalek8sconfig.AutoScaleKubernetesConfig `json:"kubernetes"`
}

AutoScaleConfigSpec holds auto-scale configuration.

func (*AutoScaleConfigSpec) DeepCopy

func (in *AutoScaleConfigSpec) DeepCopy() *AutoScaleConfigSpec

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

func (*AutoScaleConfigSpec) DeepCopyInto

func (in *AutoScaleConfigSpec) DeepCopyInto(out *AutoScaleConfigSpec)

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

type FlowControlConfigSpec

type FlowControlConfigSpec struct {
	// FlowPreviewConfig holds flow preview configuration.
	//+kubebuilder:validation:Optional
	FlowPreviewConfig preview.FlowPreviewConfig `json:"preview_service"`
}

FlowControlConfigSpec holds flow control configuration.

func (*FlowControlConfigSpec) DeepCopy

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

func (*FlowControlConfigSpec) DeepCopyInto

func (in *FlowControlConfigSpec) DeepCopyInto(out *FlowControlConfigSpec)

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

type SidecarSpec

type SidecarSpec struct {
	// Enabled Sidecar injection or use per Node setup of Agent
	//+kubebuilder:validation:Optional
	Enabled bool `json:"enabled"`

	// Enabled per namespace injection by default
	//+kubebuilder:validation:Optional
	EnableNamespaceByDefault []string `json:"enableNamespacesByDefault,omitempty" validate:"omitempty"`
}

SidecarSpec defines the desired state for the Sidecar injection.

func (*SidecarSpec) DeepCopy

func (in *SidecarSpec) DeepCopy() *SidecarSpec

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

func (*SidecarSpec) DeepCopyInto

func (in *SidecarSpec) DeepCopyInto(out *SidecarSpec)

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