helm

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package helm provides functions to install and uninstall the MarbleRun Helm chart.

Index

Constants

View Source
const (
	CoordinatorDeployment = "marblerun-coordinator"
	InjectorDeployment    = "marble-injector"
	Namespace             = "marblerun"
)

Helm constants.

Variables

This section is empty.

Functions

func UpdateValues added in v1.3.0

func UpdateValues(options Options, chartValues map[string]interface{}) (map[string]interface{}, error)

UpdateValues merges the provided options with the default values of the chart.

Types

type Client

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

Client provides functionality to install and uninstall Helm charts.

func New

func New(namespace string) (*Client, error)

New initializes a new helm client.

func (*Client) GetChart

func (c *Client) GetChart(chartPath, version string) (*chart.Chart, error)

GetChart loads the helm chart from the given path or from the edgeless helm repo. This will add the edgeless helm repo if it is not already present on disk.

func (*Client) Install

func (c *Client) Install(ctx context.Context, wait bool, chart *chart.Chart, values map[string]interface{}) error

Install installs MarbleRun using the provided chart and values.

func (*Client) Uninstall

func (c *Client) Uninstall(wait bool) error

Uninstall removes the MarbleRun deployment from the cluster.

type Options

type Options struct {
	Hostname            string
	PCCSURL             string
	UseSecureCert       string
	AccessToken         string
	SGXResourceKey      string
	WebhookSettings     []string
	SimulationMode      bool
	CoordinatorRESTPort int
	CoordinatorGRPCPort int
}

Options contains the values to set in the helm chart.

Jump to

Keyboard shortcuts

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