Documentation
¶
Index ¶
- Constants
- func Deploy(ctx *pulumi.Context, profiles []string, args *DeployArgs) error
- func MinCPUs(profiles []string) int32
- func NewK8sProvider(ctx *pulumi.Context, name string, kubeconfig pulumi.StringOutput) (*kubernetes.Provider, error)
- func RequireNestedVirt(profiles []string) bool
- func Validate(profiles []string) error
- type DeployArgs
Constants ¶
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 ¶
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 ¶
RequireNestedVirt returns true if any of the given profiles requires nested virtualization on the compute instance.
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.