Documentation ¶
Index ¶
- func DeploymentManifest(opts *Options) (string, error)
- func Install(client kubernetes.Interface, opts *Options) error
- func SecretManifest(opts *Options) (string, error)
- func ServiceManifest(namespace string) (string, error)
- func Uninstall(client internalclientset.Interface, opts *Options) error
- func Upgrade(client kubernetes.Interface, opts *Options) error
- type Options
- type OutputFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeploymentManifest ¶
DeploymentManifest gets the manifest (as a string) that describes the Tiller Deployment resource.
func Install ¶
func Install(client kubernetes.Interface, opts *Options) error
Install uses Kubernetes client to install Tiller.
Returns an error if the command failed.
func SecretManifest ¶
SecretManifest gets the manifest (as a string) that describes the Tiller Secret resource.
func ServiceManifest ¶
ServiceManifest gets the manifest (as a string) that describes the Tiller Service resource.
Types ¶
type Options ¶
type Options struct { // EnableTLS instructs Tiller to serve with TLS enabled. // // Implied by VerifyTLS. If set the TLSKey and TLSCert are required. EnableTLS bool // VerifyTLS instructs Tiller to serve with TLS enabled verify remote certificates. // // If set TLSKey, TLSCert, TLSCaCert are required. VerifyTLS bool // UseCanary indicates that Tiller should deploy using the latest Tiller image. UseCanary bool // Namespace is the Kubernetes namespace to use to deploy Tiller. Namespace string // ServiceAccount is the Kubernetes service account to add to Tiller. ServiceAccount string // Force allows to force upgrading tiller if deployed version is greater than current version ForceUpgrade bool // ImageSpec identifies the image Tiller will use when deployed. // // Valid if and only if UseCanary is false. ImageSpec string // TLSKeyFile identifies the file containing the pem encoded TLS private // key Tiller should use. // // Required and valid if and only if EnableTLS or VerifyTLS is set. TLSKeyFile string // TLSCertFile identifies the file containing the pem encoded TLS // certificate Tiller should use. // // Required and valid if and only if EnableTLS or VerifyTLS is set. TLSCertFile string // TLSCaCertFile identifies the file containing the pem encoded TLS CA // certificate Tiller should use to verify remotes certificates. // // Required and valid if and only if VerifyTLS is set. TLSCaCertFile string // EnableHostNetwork installs Tiller with net=host. EnableHostNetwork bool // MaxHistory sets the maximum number of release versions stored per release. // // Less than or equal to zero means no limit. MaxHistory int // Replicas sets the amount of Tiller replicas to start // // Less than or equals to 1 means 1. Replicas int // NodeSelectors determine which nodes Tiller can land on. NodeSelectors string // Output dumps the Tiller manifest in the specified format (e.g. JSON) but skips Helm/Tiller installation. Output OutputFormat // Set merges additional values into the Tiller Deployment manifest. Values []string }
Options control how to install Tiller into a cluster, upgrade, and uninstall Tiller from a cluster.
type OutputFormat ¶
type OutputFormat string
OutputFormat defines valid values for init output (json, yaml)
func (*OutputFormat) Set ¶
func (f *OutputFormat) Set(s string) error
Set validates and sets the value of the OutputFormat
func (*OutputFormat) String ¶
func (f *OutputFormat) String() string
String returns the string value of the OutputFormat
func (*OutputFormat) Type ¶
func (f *OutputFormat) Type() string
Type returns the string value of the OutputFormat