helm

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	Chart  *chart.Chart
	Values ChartValues
}

func NewChart

func NewChart(cl *Client, testType util.TestTypes, o options.Options) (*Chart, error)

NewChart unpacks the tgz making the Chart accessible for installation and supplied a Chart back.

type ChartValues

type ChartValues struct {
	Core    CoreValues    `yaml:"core"`
	Gpu     GPUValues     `yaml:"gpu"`
	Ingress IngressValues `yaml:"ingress"`
}

type Client

type Client struct {
	KubeClient    *kubernetes.Clientset
	Configuration *action.Configuration
	Username      string
	Password      string
	Settings      *cli.EnvSettings
	Url           string
}

func NewClient

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

NewClient registers and configures a new kubernetes and helm client

func (*Client) ChartDeployed

func (c *Client) ChartDeployed() (*release.Release, error)

func (*Client) Install

func (c *Client) Install(chart *Chart) (*release.Release, error)

Install the chart as a release onto the cluster.

func (*Client) PullChart

func (c *Client) PullChart(chartVersion, path string) error

func (*Client) Uninstall

func (c *Client) Uninstall() error

type CoreValues

type CoreValues struct {
	Enabled  bool        `yaml:"enabled"`
	Nginx    NginxValues `yaml:"nginx"`
	PHP      PHPValues   `yaml:"php"`
	Postgres PGValues    `yaml:"postgres"`
}

type GPUValues

type GPUValues struct {
	Enabled      bool `yaml:"enabled"`
	NumberOfGPUs int  `yaml:"numberOfGPUs"`
}

type IngressValues

type IngressValues struct {
	Enabled     bool              `yaml:"enabled"`
	Annotations map[string]string `yaml:"annotations"`
	ClassName   string            `yaml:"className"`
	Host        string            `yaml:"host"`
	TLS         []TLSValues       `yaml:"tls"`
}

type NginxValues

type NginxValues struct {
	Image         RepoTagValues  `yaml:"image"`
	ExporterImage RepoTagValues  `yaml:"exporterImage"`
	Resources     ResourceValues `yaml:"resources"`
}

type PDValues

type PDValues struct {
	Enabled          bool   `yaml:"enabled"`
	StorageClassName string `yaml:"storageClassName"`
}

type PGValues

type PGValues struct {
	Image       RepoTagValues     `yaml:"image"`
	StatefulSet StatefulSetValues `yaml:"statefulSet"`
}

type PHPValues added in v0.1.9

type PHPValues struct {
	Image RepoTagValues `yaml:"image"`
}

type RepoTagValues added in v0.1.9

type RepoTagValues struct {
	Repo string `yaml:"repo"`
	Tag  string `yaml:"tag"`
}

type RequestValues

type RequestValues struct {
	Cpu    string `yaml:"cpu"`
	Memory string `yaml:"memory"`
}

type ResourceValues

type ResourceValues struct {
	Requests RequestValues `yaml:"requests"`
}

type StatefulSetValues

type StatefulSetValues struct {
	PersistentData PDValues `yaml:"persistentData"`
}

type TLSValues

type TLSValues struct {
	Hosts      []string `yaml:"hosts"`
	SecretName string   `yaml:"secretName"`
}

Jump to

Keyboard shortcuts

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