localkubernetes

package
v0.79.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Overview

Package localkubernetes contains the provisioner for the local Kubernetes based environments

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KindRunFunc

func KindRunFunc(ctx *pulumi.Context, env *environments.Kubernetes, params *ProvisionerParams) error

KindRunFunc is the Pulumi run function that runs the provisioner

func OpenShiftLocalProvisioner added in v0.79.0

func OpenShiftLocalProvisioner(opts ...ProvisionerOption) provisioners.TypedProvisioner[environments.Kubernetes]

OpenShiftLocalProvisioner creates an OpenShift (CRC) local provisioner.

func Provisioner

Provisioner creates a new provisioner

Types

type PreAgentHook added in v0.79.0

type PreAgentHook func(e config.Env, kubeProvider *kubernetes.Provider) error

PreAgentHook is executed after the Kubernetes provider is ready but before the agent is installed.

type ProvisionerOption

type ProvisionerOption func(*ProvisionerParams) error

ProvisionerOption is a function that modifies the ProvisionerParams

func WithAgentDependentWorkloadApp

func WithAgentDependentWorkloadApp(appFunc kubeComp.AgentDependentWorkloadAppFunc) ProvisionerOption

WithAgentDependentWorkloadApp adds a workload app to the environment with the agent passed in

func WithAgentOptions

func WithAgentOptions(opts ...kubernetesagentparams.Option) ProvisionerOption

WithAgentOptions adds options to the agent

func WithExtraConfigParams

func WithExtraConfigParams(configMap runner.ConfigMap) ProvisionerOption

WithExtraConfigParams adds extra config parameters to the environment

func WithName

func WithName(name string) ProvisionerOption

WithName sets the name of the provisioner

func WithPreAgentHook added in v0.79.0

func WithPreAgentHook(hook PreAgentHook) ProvisionerOption

WithPreAgentHook adds a hook that runs before the agent installation.

func WithStandaloneOTelAgent added in v0.79.0

func WithStandaloneOTelAgent(fn StandaloneAgentDeployFunc) ProvisionerOption

WithStandaloneOTelAgent sets a callback that deploys a standalone agent DaemonSet (e.g. otel-agent with DD_OTEL_STANDALONE=true) using raw Kubernetes resources instead of the Datadog Helm chart.

func WithWorkloadApp

func WithWorkloadApp(appFunc kubeComp.WorkloadAppFunc) ProvisionerOption

WithWorkloadApp adds a workload app to the environment

func WithoutAgent

func WithoutAgent() ProvisionerOption

WithoutAgent removes the agent

func WithoutFakeIntake

func WithoutFakeIntake() ProvisionerOption

WithoutFakeIntake removes the fake intake

type ProvisionerParams

type ProvisionerParams struct {
	// contains filtered or unexported fields
}

ProvisionerParams contains all the parameters needed to create the environment

type StandaloneAgentDeployFunc added in v0.79.0

type StandaloneAgentDeployFunc func(e config.Env, kubeProvider *kubernetes.Provider, fakeIntake *fakeintakeComp.Fakeintake) (*agent.KubernetesAgent, error)

StandaloneAgentDeployFunc is a callback invoked by KindRunFunc to deploy a standalone agent DaemonSet (e.g. otel-agent with DD_OTEL_STANDALONE=true) after the cluster and fakeintake have been provisioned.

Jump to

Keyboard shortcuts

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