openshift

package
v0.82.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package openshift contains shared deployment logic for OpenShift scenarios.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyAgentEnvironment

func ApplyAgentEnvironment(p *Params, e config.Env)

ApplyAgentEnvironment populates agent options from the common environment config. Callers should apply any provider-specific options (e.g. dual shipping) after this call.

func DeployComponents

func DeployComponents(
	ctx *pulumi.Context,
	env config.Env,
	kubeProvider *kubernetesProvider.Provider,
	cluster *kubeComp.Cluster,
	fakeIntake *fakeintakeComp.Fakeintake,
	agentOptions []kubernetesagentparams.Option,
) error

DeployComponents deploys the OpenShift agent and test workloads onto an existing Kubernetes provider. fakeIntake may be nil. agentOptions is the full set of agent options to use; pass nil to skip agent deployment entirely (e.g. when WithoutAgent() was called). Use agentOptions to pass scenario-specific extras such as kubernetesagentparams.WithDualShipping.

func WithAgentOptions

func WithAgentOptions(opts ...kubernetesagentparams.Option) func(*Params) error

WithAgentOptions returns an option that appends agent options.

func WithCPUs

func WithCPUs(cpus string) func(*Params) error

WithCPUs sets the number of CPUs for the OpenShift cluster.

func WithDisk

func WithDisk(disk string) func(*Params) error

WithDisk sets the disk size for the OpenShift cluster.

func WithMemory

func WithMemory(memory string) func(*Params) error

WithMemory sets the memory for the OpenShift cluster.

func WithPullSecretPath

func WithPullSecretPath(path string) func(*Params) error

WithPullSecretPath sets the path to the OpenShift pull secret file.

func WithoutAgent

func WithoutAgent() func(*Params) error

WithoutAgent returns an option that disables agent installation.

Types

type Params

type Params struct {
	kubeComp.OpenShiftClusterArgs
	AgentOptions []kubernetesagentparams.Option
}

Params holds the cluster and agent options shared across all OpenShift scenario variants.

Jump to

Keyboard shortcuts

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