deploy

package
v0.0.73 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 67 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AlsoDeployIngress       = true
	PushPrebuiltsToRegistry = false
)
View Source
var GarbageCollectProviders = true
View Source
var RunCodegen = true

Functions

func BuildResourceMap

func BuildResourceMap(ctx context.Context, dependencies []*resources.ResourceDependency) (map[string]RawJSONObject, error)

func ComputeIngress

func ComputeIngress(rootenv cfg.Context, planner runtime.Planner, stack *schema.Stack, plans compute.Computable[[]*schema.IngressFragment], allocate bool) compute.Computable[*ComputeIngressResult]

func MakePlan

func MakePlan(ctx context.Context, rc runtime.Planner, server planning.Server, spec build.Spec) (build.Plan, error)

func MaybeRenderBlock

func MaybeRenderBlock(env cfg.Context, cluster runtime.ClusterNamespace, render bool) execution.WaitHandler

func PlanResourceProviderInvocation

func PlanResourceProviderInvocation(ctx context.Context, planner runtime.Planner, invoke *InvokeResourceProvider) ([]*schema.SerializedInvocation, error)

func PrepareDeployServers

func PrepareDeployServers(ctx context.Context, env cfg.Context, planner runtime.Planner, focus ...planning.Server) (compute.Computable[*Plan], error)

func PrepareDeployStack

func PrepareDeployStack(ctx context.Context, env cfg.Context, planner runtime.Planner, stack *planning.Stack) (compute.Computable[*Plan], error)

func PrepareDeployStackToRegistry

func PrepareDeployStackToRegistry(ctx context.Context, env cfg.Context, planner runtime.Planner, registry registry.Manager, stack *planning.Stack) (compute.Computable[*Plan], error)

func RegisterDeployOps

func RegisterDeployOps()

func Serialize

func Serialize(ws *schema.Workspace, env *schema.Environment, stack *schema.Stack, computed *Plan, focus []string) *schema.DeployPlan

func TestStackToRuntimeConfig

func TestStackToRuntimeConfig(stack *planning.Stack, sutServers []string) (*runtime.RuntimeConfig, error)

Types

type ComputeIngressResult

type ComputeIngressResult struct {
	Fragments []*schema.IngressFragment
	// contains filtered or unexported fields
}

type InvokeResourceProvider

type InvokeResourceProvider struct {
	ResourceInstanceId   string
	SerializedIntentJson []byte
	BinaryRef            *schema.PackageRef
	BinaryImageId        oci.ImageID
	BinaryConfig         *schema.BinaryConfig
	ResourceClass        *schema.ResourceClass
	ResourceProvider     *schema.ResourceProvider
	InstanceTypeSource   *protos2.FileDescriptorSetAndDeps
	ResourceDependencies []*resources.ResourceDependency
	SecretResources      []runtime.SecretResourceDependency
}

type Plan

type Plan struct {
	Deployer         *execution.Plan
	ComputedStack    *planning.Stack
	IngressFragments []*schema.IngressFragment
	Computed         *schema.ComputedConfigurations
	Hints            []string // Optional messages to pass to the user.
}

type RawJSONObject

type RawJSONObject map[string]any

type ResolvedBinary

type ResolvedBinary struct {
	PackageRef *schema.PackageRef
	Binary     oci.ImageID
	Command    []string
}

type ResolvedServerImages

type ResolvedServerImages struct {
	PackageRef     *schema.PackageRef
	Binary         oci.ImageID
	BinaryImage    compute.Computable[oci.ResolvableImage]
	PrebuiltBinary bool
	Config         oci.ImageID
	Sidecars       []ResolvedBinary
}

Directories

Path Synopsis
nolint directives: stylecheck:sa1019
nolint directives: stylecheck:sa1019

Jump to

Keyboard shortcuts

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