helm

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: LGPL-3.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KubeClient added in v1.1.0

func KubeClient() *kubernetes.Clientset

func KubeConfig added in v1.1.0

func KubeConfig() *rest.Config

func KubeDiscoveryClient added in v1.1.0

func KubeDiscoveryClient() *discovery.DiscoveryClient

func KubeDynamicClient added in v1.1.0

func KubeDynamicClient() dynamic.Interface

func KubeGVPMapCache added in v1.1.0

func KubeGVPMapCache() meta.RESTMapper

func KubeGVRFromGK added in v1.1.0

func KubeGVRFromGK(gk schema.GroupKind) (schema.GroupVersionResource, bool)

func KubeRestClient added in v1.1.0

func KubeRestClient() *rest.RESTClient

func LoadKubeGVRMap added in v1.1.0

func LoadKubeGVRMap()

func ToObjects added in v1.1.0

func ToObjects(in io.Reader) ([]runtime.Object, error)

Types

type ChartPathOptions

type ChartPathOptions struct {
	action.ChartPathOptions
}

ChartPathOptions -

func (*ChartPathOptions) LocateChart

func (c *ChartPathOptions) LocateChart(name, dest string, settings *cli.EnvSettings) (string, error)

LocateChart looks for a chart directory in known places, and returns either the full path or an error.

type Config

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

func (*Config) ChartCache

func (c *Config) ChartCache() string

func (*Config) RepoCache

func (c *Config) RepoCache() string

func (*Config) RepoFile

func (c *Config) RepoFile() string

type DeployInfo added in v1.1.0

type DeployInfo struct {
	Info        Resource                  `json:"info"`
	ApiResource unstructured.Unstructured `json:"apiResource"`
}

func AllResources added in v1.1.0

func AllResources(name, namespace string) ([]DeployInfo, error)

type Helm

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

Helm -

func NewHelm

func NewHelm(namespace, repoFile, repoCache string) (*Helm, error)

NewHelm creates a new helm.

func (*Helm) History

func (h *Helm) History(name string) (ReleaseHistory, error)

History -

func (*Helm) Install

func (h *Helm) Install(name, chart, version string, overrides []string) error

Install -

func (*Helm) Load

func (h *Helm) Load(chart, version string) (string, error)

Load loads the chart from the repository.

func (*Helm) PreInstall

func (h *Helm) PreInstall(name, chart, version string) error

PreInstall -

func (*Helm) Rollback

func (h *Helm) Rollback(name string, revision int) error

Rollback -

func (*Helm) Status

func (h *Helm) Status(name string) (*release.Release, error)

Status -

func (*Helm) Uninstall

func (h *Helm) Uninstall(name string) error

Uninstall -

func (*Helm) Upgrade

func (h *Helm) Upgrade(name string, chart, version string, overrides []string) error

Upgrade -

type Release added in v1.1.0

type Release struct {
	Name        string               `json:"name"`
	Namespace   string               `json:"namespace"`
	Revision    int                  `json:"revision"`
	Updated     time.Time            `json:"updated"`
	Status      string               `json:"status"`
	Chart       string               `json:"chart"`
	AppVersion  string               `json:"appVersion"`
	Description string               `json:"description"`
	Histories   []ReleaseHistoryInfo `json:"histories"`
}

func AllReleases added in v1.1.0

func AllReleases(namespace string) ([]Release, error)

type ReleaseHistory

type ReleaseHistory []ReleaseInfo

ReleaseHistory -

type ReleaseHistoryInfo added in v1.1.0

type ReleaseHistoryInfo struct {
	Revision   int       `json:"revision"`
	Updated    time.Time `json:"updated"`
	Status     string    `json:"status"`
	AppVersion string    `json:"appVersion"`
}

type ReleaseInfo

type ReleaseInfo struct {
	Revision    int           `json:"revision"`
	Updated     helmtime.Time `json:"updated"`
	Status      string        `json:"status"`
	Chart       string        `json:"chart"`
	AppVersion  string        `json:"app_version"`
	Description string        `json:"description"`
}

ReleaseInfo -

type Repo

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

Repo -

func NewRepo

func NewRepo(repoFile, repoCache string) *Repo

NewRepo creates a new repo.

func (*Repo) Add

func (o *Repo) Add(name, url, username, password string) error

type Resource added in v1.1.0

type Resource struct {
	APIVersion string `json:"apiVersion"`

	Kind         string            `json:"kind"`
	Name         string            `json:"name"`
	Namespace    string            `json:"namespace"`
	CreationTime time.Time         `json:"creationTime"`
	Labels       map[string]string `json:"labels"`
	Annotations  map[string]string `json:"annotations"`
	// contains filtered or unexported fields
}

func Resources added in v1.1.0

func Resources(name, namespace string) ([]Resource, error)

Jump to

Keyboard shortcuts

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