Documentation ¶
Index ¶
- Constants
- func DeleteTiller(kubectlClient *kubernetes.Clientset) error
- func IsTillerDeployed(kubectlClient *kubernetes.Clientset) bool
- func WaitForReleasePodToGetReady(client *kubernetes.Clientset, releaseName, releaseNamespace string, ...) (*k8sv1.Pod, error)
- type ClientWrapper
- func (helmClientWrapper *ClientWrapper) BuildDependencies(chartPath string) error
- func (helmClientWrapper *ClientWrapper) DeleteRelease(releaseName string, purge bool) (*rls.UninstallReleaseResponse, error)
- func (helmClientWrapper *ClientWrapper) InstallChartByName(releaseName string, releaseNamespace string, chartName string, ...) (*hapi_release5.Release, error)
- func (helmClientWrapper *ClientWrapper) InstallChartByPath(releaseName, releaseNamespace string, chartPath string, ...) (*hapi_release5.Release, error)
- func (helmClientWrapper *ClientWrapper) PrintAllAvailableCharts()
- func (helmClientWrapper *ClientWrapper) ReleaseExists(releaseName string) (bool, error)
- func (helmClientWrapper *ClientWrapper) SearchChart(chartName, chartVersion, appVersion string) (*repo.Entry, *repo.ChartVersion, error)
- func (helmClientWrapper *ClientWrapper) UpdateDependencies(chartPath string) error
Constants ¶
const TillerDeploymentName = "tiller-deploy"
TillerDeploymentName is the string identifier for the tiller deployment
const TillerRoleManagerName = "tiller-config-manager"
TillerRoleManagerName is the name of the role with minimal rights to allow tiller to manage itself
const TillerRoleName = "devspace-tiller"
TillerRoleName is the name of the role that is assigned to tiller to allow it to deploy to a certain namespace
const TillerServiceAccountName = "devspace-tiller"
TillerServiceAccountName is the name of the service account tiller will use
Variables ¶
This section is empty.
Functions ¶
func DeleteTiller ¶
func DeleteTiller(kubectlClient *kubernetes.Clientset) error
DeleteTiller clears the tiller server, the service account and role binding
func IsTillerDeployed ¶
func IsTillerDeployed(kubectlClient *kubernetes.Clientset) bool
IsTillerDeployed determines if we could connect to a tiller server
func WaitForReleasePodToGetReady ¶
func WaitForReleasePodToGetReady(client *kubernetes.Clientset, releaseName, releaseNamespace string, releaseRevision int) (*k8sv1.Pod, error)
WaitForReleasePodToGetReady waits for the release pod to get ready
Types ¶
type ClientWrapper ¶
type ClientWrapper struct { Client *k8shelm.Client Settings *helmenvironment.EnvSettings Namespace string // contains filtered or unexported fields }
ClientWrapper holds the necessary information for helm
func NewClient ¶
func NewClient(kubectlClient *kubernetes.Clientset, log log.Logger, upgradeTiller bool) (*ClientWrapper, error)
NewClient creates a new helm client
func (*ClientWrapper) BuildDependencies ¶
func (helmClientWrapper *ClientWrapper) BuildDependencies(chartPath string) error
BuildDependencies builds the dependencies
func (*ClientWrapper) DeleteRelease ¶
func (helmClientWrapper *ClientWrapper) DeleteRelease(releaseName string, purge bool) (*rls.UninstallReleaseResponse, error)
DeleteRelease deletes a helm release and optionally purges it
func (*ClientWrapper) InstallChartByName ¶
func (helmClientWrapper *ClientWrapper) InstallChartByName(releaseName string, releaseNamespace string, chartName string, chartVersion string, values *map[interface{}]interface{}) (*hapi_release5.Release, error)
InstallChartByName installs the given chart by name under the releasename in the releasenamespace
func (*ClientWrapper) InstallChartByPath ¶
func (helmClientWrapper *ClientWrapper) InstallChartByPath(releaseName, releaseNamespace string, chartPath string, values *map[interface{}]interface{}) (*hapi_release5.Release, error)
InstallChartByPath installs the given chartpath und the releasename in the releasenamespace
func (*ClientWrapper) PrintAllAvailableCharts ¶
func (helmClientWrapper *ClientWrapper) PrintAllAvailableCharts()
PrintAllAvailableCharts prints all available charts
func (*ClientWrapper) ReleaseExists ¶
func (helmClientWrapper *ClientWrapper) ReleaseExists(releaseName string) (bool, error)
ReleaseExists checks if the given release name exists
func (*ClientWrapper) SearchChart ¶
func (helmClientWrapper *ClientWrapper) SearchChart(chartName, chartVersion, appVersion string) (*repo.Entry, *repo.ChartVersion, error)
SearchChart searches the chart name in all repositories
func (*ClientWrapper) UpdateDependencies ¶
func (helmClientWrapper *ClientWrapper) UpdateDependencies(chartPath string) error
UpdateDependencies updates the dependencies