Puppet Class: kubeadm::helm

Defined in:
modules/kubeadm/manifests/helm.pp

Overview

SPDX-License-Identifier: Apache-2.0 Installs Helm 3 from the Kubeadm components



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'modules/kubeadm/manifests/helm.pp', line 3

class kubeadm::helm (
) {
    require ::kubeadm::repo

    package { [ 'helm', 'helmfile', 'helm-diff' ]:
        ensure => 'present',
        tag    => 'kubeadm-k8s',
    }

    systemd::environment { 'helm':
        variables => {
            # Let's not set full HELM_HOME so that full root isn't needed to run
            # Helm (per-user caches and repositories), but still load plugins
            # installed from Apt and (as a side effect) block non-roots from
            # manually installing plugins.
            'HELM_PLUGINS'         => '/etc/helm/plugins',
            # Configure the default Helmfile 'environment' to the current VPS project,
            # so that we can more easily apply per-project (tools, toolsbeta, paws, ...)
            # settings in our Helmfiles
            # for more details, see: https://github.com/roboll/helmfile#environment
            'HELMFILE_ENVIRONMENT' => $::labsproject,
        },
    }
}