Documentation
¶
Overview ¶
Package openshift contains shared deployment logic for OpenShift scenarios.
Index ¶
- func ApplyAgentEnvironment(p *Params, e config.Env)
- func DeployComponents(ctx *pulumi.Context, env config.Env, kubeProvider *kubernetesProvider.Provider, ...) error
- func WithAgentOptions(opts ...kubernetesagentparams.Option) func(*Params) error
- func WithCPUs(cpus string) func(*Params) error
- func WithDisk(disk string) func(*Params) error
- func WithMemory(memory string) func(*Params) error
- func WithPullSecretPath(path string) func(*Params) error
- func WithoutAgent() func(*Params) error
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyAgentEnvironment ¶
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 WithMemory ¶
WithMemory sets the memory for the OpenShift cluster.
func WithPullSecretPath ¶
WithPullSecretPath sets the path to the OpenShift pull secret file.
func WithoutAgent ¶
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.