Documentation ¶
Index ¶
- Constants
- func GetRemoteChartUri(version string) string
- type Client
- func (c *Client) AddGlooRepository(ctx context.Context, extraArgs ...string) error
- func (c *Client) AddPrGlooRepository(ctx context.Context, extraArgs ...string) error
- func (c *Client) AddRepository(ctx context.Context, chartName string, chartUrl string, extraArgs ...string) error
- func (c *Client) Command(ctx context.Context, args ...string) cmdutils.Cmd
- func (c *Client) Delete(ctx context.Context, extraArgs ...string) error
- func (c *Client) Install(ctx context.Context, extraArgs ...string) error
- func (c *Client) InstallGloo(ctx context.Context, installOpts InstallOpts, extraArgs ...string) error
- func (c *Client) RunCommand(ctx context.Context, args ...string) error
- func (c *Client) WithNamespace(ns string) *Client
- func (c *Client) WithReceiver(receiver io.Writer) *Client
- type InstallOpts
Constants ¶
View Source
const ( ChartName = "gloo" ChartRepositoryUrl = "https://storage.googleapis.com/solo-public-helm" PrChartRepositoryUrl = "https://storage.googleapis.com/solo-public-tagged-helm" RemoteChartUriTemplate = "https://storage.googleapis.com/solo-public-helm/charts/gloo-%s.tgz" RemoteChartName = "gloo/gloo" )
Variables ¶
This section is empty.
Functions ¶
func GetRemoteChartUri ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a utility for executing `helm` commands
func NewClient ¶
func NewClient() *Client
NewClient returns an implementation of the helmutils.Client
func (*Client) AddGlooRepository ¶
func (*Client) AddPrGlooRepository ¶
func (*Client) AddRepository ¶
func (*Client) Command ¶
Command returns a Cmd that executes kubectl command, including the --context if it is defined The Cmd sets the Stdout and Stderr to the receiver of the Cli
func (*Client) InstallGloo ¶
func (*Client) RunCommand ¶
RunCommand creates a Cmd and then runs it
func (*Client) WithNamespace ¶
WithNamespace sets the namespace that all commands will be invoked against
type InstallOpts ¶
type InstallOpts struct { // KubeContext is the kubernetes context to use. KubeContext string // Namespace is the namespace to which the release will be installed. Namespace string // CreateNamespace controls whether to create the namespace or error if it doesn't exist. CreateNamespace bool // ValuesFile is the path to the YAML values for the installation. ValuesFile string // ReleaseName is the name of the release to install. Usually will be "gloo". ReleaseName string // Repository is the remote repo to use. Usually will be one of the constants exported // from this package. Ignored if LocalChartPath is set. Repository string // ChartName is the name of the chart to use. Usually will be "gloo". Ignored if LocalChartPath is set. ChartName string // LocalChartPath is the path to a locally built tarballed chart to install LocalChartPath string }
InstallOpts is a set of typical options for a helm install which can be passed in instead of requiring the caller to remember the helm cli flags. extraArgs should always be accepted and respected when using InstallOpts.
Click to show internal directories.
Click to hide internal directories.