kubernetesagentparams

package
v0.0.0-...-3e65a16 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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 WithDeployWindows

func WithDeployWindows() func(*Params) error

WithDeployWindows sets the flag to deploy the agent on Windows.

func WithFakeintake

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

WithFakeintake configures the Agent to use the given fake intake.

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. TODO: If https://github.com/pulumi/pulumi-kubernetes/pull/2963 is merged we can revert https://github.com/DataDog/test-infra-definitions/pull/779

func WithNamespace

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

WithNamespace sets the namespace to deploy the agent to.

func WithPulumiResourceOptions

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

WithPulumiDependsOn sets the resources to depend on.

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 string
	// 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
}

func NewParams

func NewParams(e config.CommonEnvironment, options ...Option) (*Params, error)

Jump to

Keyboard shortcuts

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