%global sha 92b6289ae93816717a8453cfe62bad51cbdb8ad0 %global helm_folder /usr/lib/helm %global helmchart_version 0.1.0 %global _default_patch_flags --no-backup-if-mismatch --prefix=/tmp/junk Summary: Monitor-Helm charts Name: monitor-helm Version: 1.0 Release: %{tis_patch_ver}%{?_tis_dist} License: Apache-2.0 Group: base Packager: Wind River URL: https://github.com/helm/charts/ Source0: helm-charts-%{sha}.tar.gz Source1: repositories.yaml Source2: index.yaml BuildArch: noarch Patch01: 0001-Add-Makefile-for-helm-charts.patch Patch02: 0002-kibana-workaround-checksum-for-configmap.yaml.patch Patch03: 0003-helm-chart-changes-for-stx-monitor.patch Patch04: 0004-ipv6-helm-chart-changes.patch Patch05: 0005-decouple-config.patch Patch06: 0006-add-system-info.patch Patch07: 0007-three-masters.patch Patch08: 0008-Update-stx-monitor-for-kubernetes-API-1.16.patch Patch09: 0009-add-curator-as-of-2019-10-10.patch Patch10: 0010-Update-kube-state-metrics-1.8.0-to-commit-09daf19.patch Patch11: 0011-update-init-container-env-to-include-node-name.patch Patch12: 0012-Add-imagePullSecrets.patch Patch13: 0013-removed-unused-images.patch Patch14: 0014-Add-rbac-replicasets-to-apps-apigroup-commit-1717e2d.patch Patch15: 0015-script-flexibility.patch Patch16: 0016-use-main-container-image-for-initcontainer.patch Patch17: 0017-stable-nginx-ingress-allow-nodePort-for-tcp-udp-serv.patch Patch18: 0018-Update-nginx-ingress-chart-for-Helm-v3.patch BuildRequires: helm BuildRequires: chartmuseum %description Monitor Helm charts %prep %setup -n %(tar tf %SOURCE0 | head -1) %patch01 -p1 %patch02 -p1 %patch03 -p1 %patch04 -p1 %patch05 -p1 %patch06 -p1 %patch07 -p1 %patch08 -p1 %patch09 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch18 -p1 %build # Host a server for the charts chartmuseum --debug --port=8879 --context-path='/charts' --storage="local" --storage-local-rootdir="." & sleep 2 helm repo add local http://localhost:8879/charts # Create the tgz files cd stable make kube-state-metrics make nginx-ingress make elasticsearch-curator # terminate helm server (the last backgrounded task) kill %1 %install install -d -m 755 ${RPM_BUILD_ROOT}%{helm_folder} install -p -D -m 755 stable/*.tgz ${RPM_BUILD_ROOT}%{helm_folder} %files %defattr(-,root,root,-) %{helm_folder}/*