Documentation
¶
Index ¶
- Constants
- func DeleteTiller(config *latest.Config, client kubectl.Client, tillerNamespace string) error
- func IsTillerDeployed(config *latest.Config, client kubectl.Client, tillerNamespace string) bool
- func NewClient(config *latest.Config, kubeClient kubectl.Client, tillerNamespace string, ...) (types.Client, error)
- func ReleaseExists(helm helm.Interface, releaseName string) bool
- type FakeClient
- func (f *FakeClient) DeleteRelease(releaseName string, purge bool) (*rls.UninstallReleaseResponse, error)
- func (f *FakeClient) InstallChart(releaseName string, releaseNamespace string, ...) (*hapi_release5.Release, error)
- func (f *FakeClient) ListReleases() (*rls.ListReleasesResponse, error)
- func (f *FakeClient) UpdateRepos() error
Constants ¶
const DeploymentTimeout = int64(180)
DeploymentTimeout is the timeout to wait for helm to deploy
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 ¶
DeleteTiller clears the tiller server, the service account and role binding
func IsTillerDeployed ¶
IsTillerDeployed determines if we could connect to a tiller server
Types ¶
type FakeClient ¶
type FakeClient struct {
// contains filtered or unexported fields
}
FakeClient implements Interface
func NewFakeClient ¶
func NewFakeClient(kubeClient kubernetes.Interface, tillerNamespace string) *FakeClient
NewFakeClient creates a new fake client
func (*FakeClient) DeleteRelease ¶
func (f *FakeClient) DeleteRelease(releaseName string, purge bool) (*rls.UninstallReleaseResponse, error)
DeleteRelease deletes a helm release and optionally purges it
func (*FakeClient) InstallChart ¶
func (f *FakeClient) InstallChart(releaseName string, releaseNamespace string, values *map[interface{}]interface{}, helmConfig *latest.HelmConfig) (*hapi_release5.Release, error)
InstallChart implements interface
func (*FakeClient) ListReleases ¶
func (f *FakeClient) ListReleases() (*rls.ListReleasesResponse, error)
ListReleases lists all helm releases
func (*FakeClient) UpdateRepos ¶
func (f *FakeClient) UpdateRepos() error
UpdateRepos implements interface