Beispiel #1
0
def _helm_deploy(values,
                 tiller_namespace_name,
                 chart_repo,
                 chart_name,
                 chart_version,
                 release_name,
                 instance_id,
                 dry_run=False,
                 chart_repo_name=None):
    assert chart_repo_name, 'chart-repo-name is required'
    helm_driver.init(tiller_namespace_name)
    logs.info(
        f'Deploying helm chart {chart_repo_name} {chart_repo} {chart_version} {chart_name} to release {release_name} '
        f'(instance_id={instance_id})')
    with tempfile.NamedTemporaryFile('w') as f:
        yaml.dump(values, f, default_flow_style=False)
        f.flush()
        helm_driver.deploy(tiller_namespace=tiller_namespace_name,
                           chart_repo=chart_repo,
                           chart_name=chart_name,
                           chart_version=chart_version,
                           release_name=release_name,
                           values_filename=f.name,
                           namespace=instance_id,
                           dry_run=dry_run,
                           chart_repo_name=chart_repo_name)
Beispiel #2
0
def initialize(interactive=False):
    tiller_namespace_name = _get_resource_name()
    helm_driver.init(tiller_namespace_name)
def initialize():
    tiller_namespace_name = _get_resource_name()
    helm_driver.init(tiller_namespace_name)