Puppet Function: k8s::fetch_cluster_config
- Defined in:
- modules/k8s/functions/fetch_cluster_config.pp
- Function type:
- Puppet Language
Overview
SPDX-License-Identifier: Apache-2.0 This function reads the kubernetes cluster list from hiera and returns config for a specific cluster
3 4 5 6 7 8 9 |
# File 'modules/k8s/functions/fetch_cluster_config.pp', line 3
function k8s::fetch_cluster_config (
String $cluster_name,
) >> K8s::ClusterConfig {
include k8s::clusters
$k8s::clusters::by_cluster[$cluster_name]
}
|