kubernetesagentparams

package
v0.0.0-...-4df403b Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAgentFullImagePath

func WithAgentFullImagePath(fullImagePath string) func(*Params) error

WithAgentFullImagePath sets the full path of the agent image to use.

func WithClusterAgentFullImagePath

func WithClusterAgentFullImagePath(fullImagePath string) func(*Params) error

WithClusterAgentFullImagePath sets the full path of the agent image to use.

func WithClusterName

func WithClusterName(clusterName pulumi.StringOutput) func(*Params) error

WithClusterName sets the name of the cluster. Should only be used if you know what you are doing. Must no be necessary in most cases. Mainly used to set the clusterName when the agent is installed on Kind clusters. Because the agent is not able to detect the cluster name. It takes a pulumi.StringOutput as input to be able to use the pulumi output of the cluster name.

func WithDeployWindows

func WithDeployWindows() func(*Params) error

WithDeployWindows sets the flag to deploy the agent on Windows.

func WithDualShipping

func WithDualShipping() func(*Params) error

DualShipping enables dual shipping. By default the agent is configured to send data only to the fakeintake and not dddev (the fakeintake will forward payloads to dddev). With that flag data will be sent to the fakeintake and also to dddev.

func WithFakeintake

func WithFakeintake(fakeintake *fakeintake.Fakeintake) func(*Params) error

WithFakeintake configures the Agent to use the given fake intake.

func WithGKEAutopilot

func WithGKEAutopilot() func(*Params) error

func WithHelmValues

func WithHelmValues(values string) func(*Params) error

WithHelmValues adds helm values to the agent installation. If used several times, the helm values are merged together If the same values is defined several times the latter call will override the previous one.

func WithNamespace

func WithNamespace(namespace string) func(*Params) error

WithNamespace sets the namespace to deploy the agent to.

func WithOTelAgent

func WithOTelAgent() func(*Params) error

func WithOTelConfig

func WithOTelConfig(config string) func(*Params) error

func WithPulumiResourceOptions

func WithPulumiResourceOptions(resources ...pulumi.ResourceOption) func(*Params) error

WithPulumiDependsOn sets the resources to depend on.

func WithTags

func WithTags(tags []string) func(*Params) error

func WithoutLogsContainerCollectAll

func WithoutLogsContainerCollectAll() func(*Params) error

WithoutLogsContainerCollectAll disables collection of logs from all containers by default.

Types

type Option

type Option = func(*Params) error

type Params

type Params struct {
	// AgentFullImagePath is the full path of the docker agent image to use.
	AgentFullImagePath string
	// ClusterAgentFullImagePath is the full path of the docker cluster agent image to use.
	ClusterAgentFullImagePath string
	// Namespace is the namespace to deploy the agent to.
	Namespace string
	// HelmValues is the Helm values to use for the agent installation.
	HelmValues pulumi.AssetOrArchiveArray
	// PulumiDependsOn is a list of resources to depend on.
	PulumiResourceOptions []pulumi.ResourceOption
	// FakeIntake is the fake intake to use for the agent installation.
	FakeIntake *fakeintake.Fakeintake
	// DeployWindows is a flag to deploy the agent on Windows.
	DeployWindows bool
	// DisableLogsContainerCollectAll is a flag to disable collection of logs from all containers by default.
	DisableLogsContainerCollectAll bool
	// DualShipping is a flag to enable dual shipping.
	DualShipping bool
	// OTelAgent is a flag to deploy the OTel agent.
	OTelAgent bool
	// OTelConfig is the OTel configuration to use for the agent installation.
	OTelConfig string
	// GKEAutopilot is a flag to deploy the agent with only GKE Autopilot compatible values.
	GKEAutopilot bool
}

func NewParams

func NewParams(options ...Option) (*Params, error)

Jump to

Keyboard shortcuts

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