Add helm package for kubernetes

Story: 2002876
Task: 22831
Depends-On: https://review.openstack.org/587279

Change-Id: I4d376cf3adc3b95d51c78f1a2aa47017fb022aa9
Signed-off-by: Jack Ding <jack.ding@windriver.com>
This commit is contained in:
Chris Friesen 2018-06-04 17:13:49 -06:00 committed by Jack Ding
parent 28cb9d1436
commit 53d3777a35
3 changed files with 37 additions and 0 deletions

View File

@ -106,3 +106,4 @@ monitoring/collectd-extensions
monitoring/influxdb-extensions
kubernetes/kubernetes
kubernetes/docker-distribution
kubernetes/helm

View File

@ -0,0 +1,6 @@
VERSION=2.9.1
TAR_NAME=helm
TAR="$TAR_NAME-v$VERSION-linux-amd64.tar.gz"
COPY_LIST="${CGCS_BASE}/downloads/$TAR ${CGCS_BASE}/downloads/tiller-2.9.1-docker-image.tgz"
TIS_PATCH_VER=1

View File

@ -0,0 +1,30 @@
Name: helm
Version: 2.9.1
Release: 0%{?_tis_dist}.%{tis_patch_ver}
Summary: The Kubernetes Package Manager
License: Apache-2.0
Group: devel
Packager: Wind River <info@windriver.com>
URL: https://github.com/kubernetes/helm/releases
Source0: %{name}-v%{version}-linux-amd64.tar.gz
Source1: tiller-2.9.1-docker-image.tgz
Requires: /bin/bash
%description
%{summary}
%prep
%setup -n linux-amd64
%install
install -d %{buildroot}%{_sbindir}
install -m 755 ${RPM_BUILD_DIR}/linux-amd64/helm %{buildroot}%{_sbindir}/helm
install -d %{buildroot}%{_sharedstatedir}/tiller
install -m 400 %{SOURCE1} %{buildroot}%{_sharedstatedir}/tiller/tiller-2.9.1-docker-image.tgz
%files
%defattr(-,root,root,-)
%{_sbindir}/helm
%{_sharedstatedir}/tiller/tiller-2.9.1-docker-image.tgz