Documentation
¶
Overview ¶
Package localkubernetes contains the provisioner for the local Kubernetes based environments
Index ¶
- func KindRunFunc(ctx *pulumi.Context, env *environments.Kubernetes, params *ProvisionerParams) error
- func OpenShiftLocalProvisioner(opts ...ProvisionerOption) provisioners.TypedProvisioner[environments.Kubernetes]
- func Provisioner(opts ...ProvisionerOption) provisioners.TypedProvisioner[environments.Kubernetes]
- type PreAgentHook
- type ProvisionerOption
- func WithAgentDependentWorkloadApp(appFunc kubeComp.AgentDependentWorkloadAppFunc) ProvisionerOption
- func WithAgentOptions(opts ...kubernetesagentparams.Option) ProvisionerOption
- func WithExtraConfigParams(configMap runner.ConfigMap) ProvisionerOption
- func WithKindLoadImage(image string) ProvisionerOption
- func WithKindWorkerNodes(nodes ...kubeComp.KindWorkerNode) ProvisionerOption
- func WithName(name string) ProvisionerOption
- func WithPreAgentHook(hook PreAgentHook) ProvisionerOption
- func WithStandaloneOTelAgent(fn StandaloneAgentDeployFunc) ProvisionerOption
- func WithWorkloadApp(appFunc kubeComp.WorkloadAppFunc) ProvisionerOption
- func WithoutAgent() ProvisionerOption
- func WithoutFakeIntake() ProvisionerOption
- type ProvisionerParams
- type StandaloneAgentDeployFunc
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 ¶
func Provisioner(opts ...ProvisionerOption) provisioners.TypedProvisioner[environments.Kubernetes]
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. It is called during the Pulumi program registration phase to register additional resources (e.g. RBAC bindings) that must be created before the agent is deployed.
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 WithKindLoadImage ¶ added in v0.80.0
func WithKindLoadImage(image string) ProvisionerOption
WithKindLoadImage pre-loads a Docker image into the kind cluster before the agent is deployed. This is required when using locally-built images that are not available in any registry; pair it with imagePullPolicy: Never in Helm values. The image must be present in the local Docker daemon before running the test.
func WithKindWorkerNodes ¶ added in v0.80.0
func WithKindWorkerNodes(nodes ...kubeComp.KindWorkerNode) ProvisionerOption
WithKindWorkerNodes sets the worker nodes for the kind cluster.
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 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.