profile

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProfileVirtualization     = "virtualization"
	ProfileServerlessServing  = "serverless-serving"
	ProfileServerlessEventing = "serverless-eventing"
	ProfileServerless         = "serverless"
	ProfileServiceMesh        = "servicemesh"
	ProfileOpenShiftAI        = "ai"
)

Variables

This section is empty.

Functions

func Deploy

func Deploy(ctx *pulumi.Context, profiles []string, args *DeployArgs) error

Deploy deploys all requested profiles on the SNC cluster. It ensures shared dependencies (e.g. the Serverless operator) are only installed once, even when multiple profiles require them. The AI profile implicitly brings in Service Mesh v2 (Maistra) and serverless-serving as prerequisites for Kserve.

func MinCPUs

func MinCPUs(profiles []string) int32

MinCPUs returns the minimum number of CPUs required by the given set of profiles. If no profile needs extra resources it returns 0 (meaning "use the default").

func NewK8sProvider

func NewK8sProvider(ctx *pulumi.Context, name string, kubeconfig pulumi.StringOutput) (*kubernetes.Provider, error)

NewK8sProvider creates a Pulumi Kubernetes provider from a kubeconfig string output.

func RequireNestedVirt

func RequireNestedVirt(profiles []string) bool

RequireNestedVirt returns true if any of the given profiles requires nested virtualization on the compute instance.

func Validate

func Validate(profiles []string) error

Validate checks that all requested profiles are supported and that there are no incompatible combinations.

Types

type DeployArgs

type DeployArgs struct {
	K8sProvider *kubernetes.Provider
	Kubeconfig  pulumi.StringOutput
	Prefix      string
	Deps        []pulumi.Resource
	// DeletedWith is the compute resource (EC2 instance or ASG) that hosts
	// the cluster. When set, K8s resources are marked with pulumi.DeletedWith
	// so that Pulumi skips deleting them individually during destroy — the
	// resources disappear when the VM is terminated.
	DeletedWith pulumi.Resource
}

DeployArgs holds the arguments needed by a profile to deploy its resources on the SNC cluster.

Jump to

Keyboard shortcuts

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