Puppet Class: k8s::client

Defined in:
modules/k8s/manifests/client.pp

Overview

Class that sets up and configures kubectl

Parameters:

  • packages_from_future (Boolean) (defaults to: false)


2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'modules/k8s/manifests/client.pp', line 2

class k8s::client(
    Boolean $packages_from_future = false,
) {

    if $packages_from_future {
        apt::package_from_component { 'kubectl-kubernetes-future':
            component => 'component/kubernetes-future',
            packages  => ['kubernetes-client'],
        }
    } else {
        ensure_packages('kubernetes-client')
    }
}