Add Kubectl Cert Manager

This commit adds the kubernetes plugin kubectl cert manager to the iso.
This is used to convert old v1alpha2 and v1alpha3 cert manager
resources to v1 during a system upgrade. The plugin is not required
for debian because there are no old cert manager resources to convert.

Test Cases:

PASS: Convert our default DC certificates and issuers using
      kubectl cert manager

Change-Id: I59f1b0e4d5d6ece1ccef43fee1acacd7b7e44efd
Story: 2009837
Task: 45372
Signed-off-by: Jerry Sun <jerry.sun@windriver.com>
This commit is contained in:
Jerry Sun 2022-05-13 19:04:14 -04:00
parent a82bbf1a70
commit d2acaea1ef
5 changed files with 35 additions and 0 deletions

View File

@ -177,6 +177,9 @@ resource-agents
# isolcpus device plugin for K8s # isolcpus device plugin for K8s
isolcpus-device-plugin isolcpus-device-plugin
# kubectl-cert-manager
kubectl-cert-manager
# haproxy # haproxy
haproxy haproxy

View File

@ -68,6 +68,7 @@ kubernetes/armada
kubernetes/k8s-pod-recovery kubernetes/k8s-pod-recovery
kubernetes/k8s-cni-cache-cleanup kubernetes/k8s-cni-cache-cleanup
kubernetes/plugins/isolcpus-device-plugin kubernetes/plugins/isolcpus-device-plugin
kubernetes/plugins/kubectl-cert-manager
python/python-kubernetes python/python-kubernetes
grub/grubby grub/grubby
base/dpkg base/dpkg

View File

@ -39,6 +39,7 @@ jerasure-96c76b89d661c163f65a014b8042c9354ccf7f31.tar.gz#jerasure#https://api.gi
kexec-tools-2.0.21.tar.xz#kexec-tools-2.0.21#https://www.kernel.org/pub/linux/utils/kernel/kexec/kexec-tools-2.0.21.tar.xz#https## kexec-tools-2.0.21.tar.xz#kexec-tools-2.0.21#https://www.kernel.org/pub/linux/utils/kernel/kexec/kexec-tools-2.0.21.tar.xz#https##
!kdump-anaconda-addon-003-29-g4c517c5.tar.gz#kexec-tools#https://vault.centos.org/7.6.1810/os/Source/SPackages/kexec-tools-2.0.15-21.el7.src.rpm#https## !kdump-anaconda-addon-003-29-g4c517c5.tar.gz#kexec-tools#https://vault.centos.org/7.6.1810/os/Source/SPackages/kexec-tools-2.0.15-21.el7.src.rpm#https##
keycodemapdb-16e5b07.tar.gz#keycodemapdb#https://github.com/CendioOssman/keycodemapdb/tarball/16e5b0787687d8904dad2c026107409eb9bfcb95#http## keycodemapdb-16e5b07.tar.gz#keycodemapdb#https://github.com/CendioOssman/keycodemapdb/tarball/16e5b0787687d8904dad2c026107409eb9bfcb95#http##
kubectl-cert_manager-linux-amd64.tar.gz#LICENSES#https://github.com/cert-manager/cert-manager/releases/download/v1.7.1/kubectl-cert_manager-linux-amd64.tar.gz#https##
kubernetes-contrib-v1.18.1.tar.gz#kubernetes-contrib-1.18.1#https://github.com/kubernetes-retired/contrib/tarball/89f6948e24578fed2a90a87871b2263729f90ac3#http## kubernetes-contrib-v1.18.1.tar.gz#kubernetes-contrib-1.18.1#https://github.com/kubernetes-retired/contrib/tarball/89f6948e24578fed2a90a87871b2263729f90ac3#http##
kubernetes-v1.21.8.tar.gz#kubernetes-1.21.8#https://github.com/kubernetes/kubernetes/archive/refs/tags/v1.21.8.tar.gz#http## kubernetes-v1.21.8.tar.gz#kubernetes-1.21.8#https://github.com/kubernetes/kubernetes/archive/refs/tags/v1.21.8.tar.gz#http##
kubernetes-v1.22.5.tar.gz#kubernetes-1.22.5#https://github.com/kubernetes/kubernetes/archive/refs/tags/v1.22.5.tar.gz#http## kubernetes-v1.22.5.tar.gz#kubernetes-1.22.5#https://github.com/kubernetes/kubernetes/archive/refs/tags/v1.22.5.tar.gz#http##

View File

@ -0,0 +1,4 @@
TAR="kubectl-cert_manager-linux-amd64.tar.gz"
COPY_LIST="${CGCS_BASE}/downloads/${TAR}"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -0,0 +1,26 @@
Summary: Cert-Manager Kubernetes plugin
Name: kubectl-cert-manager
Version: 1.7.1
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: https://github.com/cert-manager/cert-manager/releases/download/v1.7.1/kubectl-cert_manager-linux-amd64.tar.gz
Source0: kubectl-cert_manager-linux-amd64.tar.gz
%description
Cert-Manager Kubernetes plugin
%prep
cp %{SOURCE0} .
tar -xvf kubectl-cert_manager-linux-amd64.tar.gz
%install
install -d -m 755 %{buildroot}/usr/local/sbin
install -p -D -m 755 %{_builddir}/kubectl-cert_manager %{buildroot}/usr/local/sbin
%files
%defattr(-,root,root,-)
/usr/local/sbin/kubectl-cert_manager