e0bf31f63f
This adds support for Helm v3: - 'helm init' and 'helm serv' were removed in v3, and helm initialization was simplified so that is not required in build. - chart validation and version checking is enforced with 'helm lint', so all Charts require the tag: apiVersion: v1 (or v2). - 'chartmuseum' is a drop-in replacement for 'helm serv', and is currently used for building charts only. It is not part of ISO image. - armada chart is built and installed to /opt/extracharts. This provides a Kubernetes pod with armada-api and tiller containers. This provides a Helm v2 client (i.e., helmv2-cli) that gives access to containerized armada/tiller managed charts. This can be used as an interactive shell, or as a wrapper for single helm v2 commands. Change-Id: Iff2b219ea765cf9278c6e80c6aeb5b98cc9a0626 Depends-On: https://review.opendev.org/732731 Story: 2007000 Task: 38893 Signed-off-by: Jim Gauld <james.gauld@windriver.com>
68 lines
1.6 KiB
RPMSpec
68 lines
1.6 KiB
RPMSpec
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Copyright (c) 2020 Wind River Systems, Inc.
|
|
#
|
|
%global with_debug 0
|
|
|
|
%if 0%{?with_debug}
|
|
%global _dwz_low_mem_die_limit 0
|
|
%else
|
|
%global debug_package %{nil}
|
|
%endif
|
|
|
|
Name: chartmuseum
|
|
Version: 0.12.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
Summary: Helm Chart Repository with support for Amazon S3 and Google Cloud Storage
|
|
Group: Kubernetes
|
|
License: Apache-2.0
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Source1: chartmuseum-v0.12.0-amd64
|
|
Packager: Wind River <info@windriver.com>
|
|
URL: https://github.com/helm/chartmuseum
|
|
#URL: https://s3.amazonaws.com/chartmuseum
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
BuildRequires: pkgconfig(libseccomp)
|
|
BuildRequires: pkgconfig(libsystemd-journal)
|
|
BuildRequires: golang >= 1.10.0
|
|
BuildRequires: rsync
|
|
BuildRequires: go-md2man
|
|
BuildRequires: go-bindata
|
|
BuildRequires: rpm-devel >= 4.14.0
|
|
BuildRequires: rpm-libs >= 4.14.0
|
|
|
|
Requires: /bin/bash
|
|
|
|
%define CHARTMUSEUM_DIR ${HOME}/src/github.com/helm/%{name}
|
|
|
|
%description
|
|
%{summary}
|
|
|
|
%prep
|
|
%setup -q -c -n %{name}
|
|
|
|
%build
|
|
# NOTE: chartmuseum is only used to build helm charts, and is not
|
|
# part of the ISO.
|
|
# Gather the licence and readme from the source tarball.
|
|
mkdir -v -p %{CHARTMUSEUM_DIR}
|
|
mv -v %{name}/* %{CHARTMUSEUM_DIR}/
|
|
mv -v %{CHARTMUSEUM_DIR}/{LICENSE,README.md} %{name}/
|
|
pushd %{CHARTMUSEUM_DIR}
|
|
# Stub out the make to build golang package; we are using a binary.
|
|
#make
|
|
popd
|
|
|
|
%install
|
|
install -d %{buildroot}%{_bindir}
|
|
install -m 755 %{SOURCE1} %{buildroot}%{_bindir}/chartmuseum
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc %{name}/README.md
|
|
%license %{name}/LICENSE
|
|
%{_bindir}/chartmuseum
|
|
|
|
%changelog
|