<pre style='margin:0'>
Leonardo Brondani Schenkel (lbschenkel) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/73630bad91439784a959b6e0352f75f0c242a864">https://github.com/macports/macports-ports/commit/73630bad91439784a959b6e0352f75f0c242a864</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 73630ba kubectl: Add support for multiple versions
</span>73630ba is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 73630bad91439784a959b6e0352f75f0c242a864
</span>Author: Pedro H <5179251+pedrohdz@users.noreply.github.com>
AuthorDate: Tue Jul 16 14:45:54 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> kubectl: Add support for multiple versions
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Allow for multiple versions of kubectl to be installed at the same time.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> According to the _Kubernetes version and version skew support policy
</span><span style='display:block; white-space:pre;color:#404040;'> (https://kubernetes.io/docs/setup/release/version-skew-policy/#kubectl)_:
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> > kubectl is supported within one minor version (older or newer) of
</span><span style='display:block; white-space:pre;color:#404040;'> > kube-apiserver.
</span>---
sysutils/kubectl/Portfile | 156 +++++++++++++++++++++++-----
sysutils/kubectl/files/base | 2 +
sysutils/kubectl/files/kubectlX.YY.template | 2 +
sysutils/kubectl/files/none | 2 +
4 files changed, 136 insertions(+), 26 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/kubectl/Portfile b/sysutils/kubectl/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f915261..eb84557 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/kubectl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/kubectl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,39 +1,143 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup select 1.0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup kubernetes kubectl 1.15.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-categories sysutils
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-supported_archs x86_64
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-license Apache-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name kubectl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories sysutils
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license Apache-2
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers {@patarra gmail.com:patarra} {lbschenkel @lbschenkel} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@patarra gmail.com:patarra} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {lbschenkel @lbschenkel} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @pedrohdz \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ openmaintainer
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-description kubernetes cluster cli
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description Command line interface for running commands \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- against Kubernetes clusters
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport kubectl_select {}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites https://storage.googleapis.com/kubernetes-release/release/v${version}/bin/darwin/amd64
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-distname kubectl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dist_subdir ${name}/${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-extract.suffix
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-extract.only
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# *NOTE* Remember to update `latestVersion` on a version upgrade.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set latestVersion kubectl-1.15
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport kubectl-1.15 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set patchNumber 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 86573df886f85aa8be05247a1ec1158007ba1ca0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 63f1ace419edffa1f5ebb64a6c63597afd48f8d94a61d4fb44e820139adbbe54 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 48587552
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport kubectl-1.14 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set patchNumber 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 92a520f847e959e04cf5d7602d8c419fa6c26d1d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 de3a28b0245d67b81b75f731b74a17def673ae4a87c98071421394888b5495d8 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 48702920
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 86573df886f85aa8be05247a1ec1158007ba1ca0 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 63f1ace419edffa1f5ebb64a6c63597afd48f8d94a61d4fb44e820139adbbe54 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 48587552
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport kubectl-1.13 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set patchNumber 8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 efe299962efa7734da83e92a557047d8a69de7e9 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 7b788747a5536f5156b37c71489b8a5c18bd6ab8315db84d579e47db1eb9d56a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 44329992
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport kubectl-1.12 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set patchNumber 10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 4212a9f7709ef6a7d36f3ebd477140a7d0ef8e50 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 67acf17bf77b0a9729d17ad5c058a358c0cbd12dbf46478c37111cdd97a0828c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 56860112
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport kubectl-1.11 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set patchNumber 10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 8c3f3121088f745bb9eb279f5531b8b61ff84bc7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 cf27dd3e8d5a13439de2214b7a07e2371cdbeaf151ee4c7d63e7e7c34ebbf117 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 54985744
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall ${distpath}/${distfiles} ${destroot}${prefix}/bin/kubectl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport kubectl-1.10 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set patchNumber 13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 fe455ab0eb7c862c8dbce970632a9e66c8987cb1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 94ec5409ac6715dfec11309795da9b30254b9d818f8b1d38d1ca2e914945868d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 54670032
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.type regex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.url https://storage.googleapis.com/kubernetes-release/release/stable.txt
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex {^v([0-9.]+)$}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${subport} == ${name}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup obsolete 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ replaced_by ${latestVersion}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version 1.15.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {${subport} == "kubectl_select"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version 0.0.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description Common files for selecting the default kubectl version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description This port installs files that allow 'port select' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ to create links to the preferred default version \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ of kubectl.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ homepage https://www.macports.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distfiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/share/bash-completion/completions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ select::install kubectl ${filespath}/base
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ select::install kubectl ${filespath}/none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ supported_archs x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run port:kubectl_select
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set baseVersion [lindex [split ${subport} "-"] 1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set patchVersion ${baseVersion}.${patchNumber}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set baseName kubectl${baseVersion}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup kubernetes kubectl ${patchVersion}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description Kubernetes cluster CLI
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description Command line interface for running commands against \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Kubernetes clusters
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ master_sites https://storage.googleapis.com/kubernetes-release/release/v${version}/bin/darwin/amd64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distname kubectl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dist_subdir ${name}/${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extract.suffix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extract.only
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${filespath}/kubectlX.YY.template ${workpath}/${baseName}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@BASE_VERSION@@|${baseVersion}|g" ${workpath}/${baseName}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@PORT_NAME@@|${subport}|g" ${workpath}/${baseName}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall ${distpath}/kubectl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/bin/kubectl${baseVersion}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set completionsPath ${destroot}${prefix}/share/${subport}/completion
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${completionsPath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exec ${destroot}${prefix}/bin/kubectl${baseVersion} completion bash \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ > ${completionsPath}/${name}.bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Skip -rc and other pre-release tags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set regexVersionPart [string map {. {\.}} $baseVersion]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.url https://api.github.com/repos/kubernetes/kubernetes/releases?per_page=100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.regex \"name\": \"v(${regexVersionPart}\\.\\d+)\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Generate select file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ select.group kubectl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ select.file ${workpath}/${baseName}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ To make this the default kubectl run:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sudo port select --set kubectl ${baseName}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/kubectl/files/base b/sysutils/kubectl/files/base
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..200ec7e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/kubectl/files/base
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,2 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/kubectl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/bash-completion/completions/kubectl
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/kubectl/files/kubectlX.YY.template b/sysutils/kubectl/files/kubectlX.YY.template
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..716d421
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/kubectl/files/kubectlX.YY.template
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,2 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/kubectl@@BASE_VERSION@@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+share/@@PORT_NAME@@/completion/kubectl.bash
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/kubectl/files/none b/sysutils/kubectl/files/none
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..0972f4d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/kubectl/files/none
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,2 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span></pre><pre style='margin:0'>
</pre>