Skip to content

Commit

Permalink
fixup! Make cni_plugins download url configurable with a template string
Browse files Browse the repository at this point in the history
  • Loading branch information
olavst-spk committed Feb 16, 2024
1 parent fdb153f commit 18198fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -499,18 +499,10 @@ Class: k8s::install::cni_plugins

The following parameters are available in the `k8s::install::cni_plugins` class:

* [`arch`](#-k8s--install--cni_plugins--arch)
* [`ensure`](#-k8s--install--cni_plugins--ensure)
* [`method`](#-k8s--install--cni_plugins--method)
* [`version`](#-k8s--install--cni_plugins--version)

##### <a name="-k8s--install--cni_plugins--arch"></a>`arch`

Data type: `String[1]`

sets the arch to use for binary download

Default value: `'amd64'`
* [`download_url_template`](#-k8s--install--cni_plugins--download_url_template)

##### <a name="-k8s--install--cni_plugins--ensure"></a>`ensure`

Expand All @@ -536,6 +528,14 @@ sets the version to use

Default value: `'v1.2.0'`

##### <a name="-k8s--install--cni_plugins--download_url_template"></a>`download_url_template`

Data type: `String[1]`

template string for the cni_plugins download url

Default value: `'https://github.com/containernetworking/plugins/releases/download/%{version}/cni-plugins-linux-%{arch}-%{version}.tgz'`

### <a name="k8s--install--container_runtime"></a>`k8s::install::container_runtime`

Class: k8s::install::container_runtime
Expand Down
2 changes: 1 addition & 1 deletion manifests/install/cni_plugins.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @param ensure set ensure for installation or deinstallation
# @param method installation method
# @param version sets the version to use
# @param download_url_template template for the cni_plugins download url
# @param download_url_template template string for the cni_plugins download url
#
class k8s::install::cni_plugins (
K8s::Ensure $ensure = $k8s::ensure,
Expand Down

0 comments on commit 18198fa

Please sign in to comment.