setup

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigMapKind      = "ConfigMap"
	ServiceKind        = "Service"
	DashboardContainer = "dashboard"
	DashboardIMG       = "ghcr.io/cloudoperators/juno-app-greenhouse:latest"
)
View Source
const (
	ManagerContainer            = "manager"
	ManagerDeploymentNameSuffix = "-controller-manager"
)
View Source
const (
	LocalDevIMG                        = "greenhouse/manager:local"
	WebhookContainer                   = "webhook"
	DeploymentKind                     = "Deployment"
	WebhookDeploymentNameSuffix        = "-webhook"
	MutatingWebhookConfigurationKind   = "MutatingWebhookConfiguration"
	ValidatingWebhookConfigurationKind = "ValidatingWebhookConfiguration"
)
View Source
const (
	ControllerEnabledEnvVar = "CONTROLLER_ENABLED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Name       string            `yaml:"name" json:"name"`
	Namespace  *string           `yaml:"namespace" json:"namespace"`
	Version    string            `yaml:"version" json:"version"`
	ConfigPath string            `yaml:"configPath" json:"configPath"`
	PostSetup  []PostSetupAction `yaml:"postSetup" json:"postSetup"`
	// contains filtered or unexported fields
}

type ExecutionEnv

type ExecutionEnv struct {
	// contains filtered or unexported fields
}

func NewExecutionEnv

func NewExecutionEnv(devMode bool) *ExecutionEnv

func (*ExecutionEnv) Run

func (env *ExecutionEnv) Run() error

func (*ExecutionEnv) WithClusterDelete

func (env *ExecutionEnv) WithClusterDelete(name string) *ExecutionEnv

func (*ExecutionEnv) WithClusterSetup

func (env *ExecutionEnv) WithClusterSetup(cluster *Cluster) *ExecutionEnv

func (*ExecutionEnv) WithDashboardSetup

func (env *ExecutionEnv) WithDashboardSetup(ctx context.Context, manifest *Manifest) *ExecutionEnv

func (*ExecutionEnv) WithGreenhouseDevelopment added in v0.6.0

func (env *ExecutionEnv) WithGreenhouseDevelopment(ctx context.Context, manifest *Manifest) *ExecutionEnv

func (*ExecutionEnv) WithLimitedManifests

func (env *ExecutionEnv) WithLimitedManifests(ctx context.Context, manifest *Manifest) *ExecutionEnv

func (*ExecutionEnv) WithLocalPluginDev

func (env *ExecutionEnv) WithLocalPluginDev(manifest *Manifest) *ExecutionEnv

type Manifest

type Manifest struct {
	ReleaseName  string   `yaml:"release" json:"release"`
	ChartPath    string   `yaml:"chartPath" json:"chartPath"`
	ValuesPath   string   `yaml:"valuesPath" json:"valuesPath"`
	CRDOnly      bool     `yaml:"crdOnly" json:"crdOnly"`
	ExcludeKinds []string `yaml:"excludeKinds" json:"excludeKinds"`
	Webhook      *Webhook `yaml:"webhook" json:"webhook"`
	// contains filtered or unexported fields
}

type PostSetupAction

type PostSetupAction struct {
	Command string            `yaml:"command" json:"command"`
	Vars    map[string]string `yaml:"vars" json:"vars"`
}

type Step

type Step func(builder *ExecutionEnv) error

type Webhook

type Webhook struct {
	DockerFile string `yaml:"dockerFile" json:"dockerFile"`
}

Jump to

Keyboard shortcuts

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