Skip to content

Commit

Permalink
Adding heapster package
Browse files Browse the repository at this point in the history
Change-Id: Ic1fe629eafda1130e6971cea4a7510da66fee4ff
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3704
Tested-by: gerrit-photon <[email protected]>
Reviewed-by: Kumar Kaushik <[email protected]>
  • Loading branch information
DheerajSShetty committed Sep 7, 2017
1 parent 7071a10 commit cb436bc
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions SPECS/heapster/heapster.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Summary: Heapster enables Container Cluster Monitoring and Performance Analysis.
Name: heapster
Version: 1.4.2
Release: 1%{?dist}
License: Apache 2.0
URL: https://github.com/wavefrontHQ/cadvisor
Source0: https://github.com/kubernetes/heapster/archive/%{name}-%{version}.tar.gz
%define sha1 heapster=e7c22e3f6c5223345259cabb761571b815a587e6
Group: Development/Tools
Vendor: VMware, Inc.
Distribution: Photon
BuildRequires: go
BuildRequires: unzip

%description
Heapster collects and interprets various signals like compute resource usage, lifecycle events, etc, and exports cluster metrics via REST endpoints.

%prep
%setup -q

%build
mkdir -p $GOPATH/src/k8s.io/heapster
cp -r . $GOPATH/src/k8s.io/heapster
cd $GOPATH/src/k8s.io/heapster
make build

%install
cd $GOPATH/src/k8s.io/heapster
install -d -p %{buildroot}%{_bindir}
install -p -m 0755 heapster %{buildroot}%{_bindir}
install -p -m 0755 eventer %{buildroot}%{_bindir}

%check
cd $GOPATH/src/k8s.io/heapster
make test-unit

%files
%defattr(-,root,root)
%{_bindir}/heapster
%{_bindir}/eventer

%changelog
* Thu Aug 31 2017 Dheeraj Shetty <[email protected]> 1.4.2-1
- Initial heapster package

0 comments on commit cb436bc

Please sign in to comment.