v1alpha1

package
v2.23.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 16 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"`

	// Etcd configuration.
	//+kubebuilder:validation:Optional
	Etcd etcd.EtcdConfig `json:"etcd"`

	// Prometheus configuration.
	//+kubebuilder:validation:Optional
	Prometheus prometheus.PrometheusConfig `json:"prometheus"`

	// 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"`

	// DeploymentConfigSpec defines the deployment configuration of the agent.
	// This is an experimental feature. Only DaemonSet is supported.
	//+kubebuilder:validation:Optional
	DeploymentConfigSpec DeploymentConfigSpec `json:"deployment_config"`

	// NameOverride overrides the name of the resources created for agent.
	// This is an experimental feature.
	//+kubebuilder:validation:Optional
	NameOverride string `json:"name_override"`
}

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 DeploymentConfigSpec added in v2.22.0

type DeploymentConfigSpec struct {
	// Type of the deployment.
	//+kubebuilder:validation:Optional
	Type string `json:"type" default:"DaemonSet" validate:"oneof=deployment Deployment DaemonSet daemonset"`

	// Number of replicas when type is set to Deployment.
	//+kubebuilder:validation:Optional
	Replicas int32 `json:"replicas,omitempty" default:"1" validate:"gt=0"`

	// TopologySpreadConstraints to be applied to the deployment.
	//+kubebuilder:validation:Optional
	TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topology_spread_constraints,omitempty"`

	// Strategy to be applied to the deployment upgrades.
	//+kubebuilder:validation:Optional
	Strategy appsv1.DeploymentStrategy `json:"strategy,omitempty"`
}

DeploymentConfigSpec defines the deployment configuration of the agent.

func (*DeploymentConfigSpec) DeepCopy added in v2.22.0

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

func (*DeploymentConfigSpec) DeepCopyInto added in v2.22.0

func (in *DeploymentConfigSpec) DeepCopyInto(out *DeploymentConfigSpec)

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