diff --git a/centos_pkg_dirs b/centos_pkg_dirs index 34e5e37a5..35f4bc466 100644 --- a/centos_pkg_dirs +++ b/centos_pkg_dirs @@ -106,3 +106,4 @@ monitoring/collectd-extensions monitoring/influxdb-extensions kubernetes/kubernetes kubernetes/docker-distribution +kubernetes/helm diff --git a/kubernetes/helm/centos/build_srpm.data b/kubernetes/helm/centos/build_srpm.data new file mode 100644 index 000000000..cd350cd61 --- /dev/null +++ b/kubernetes/helm/centos/build_srpm.data @@ -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 diff --git a/kubernetes/helm/centos/helm.spec b/kubernetes/helm/centos/helm.spec new file mode 100644 index 000000000..b1629de43 --- /dev/null +++ b/kubernetes/helm/centos/helm.spec @@ -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 +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 +