Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
devel:kubic
kube-state-metrics
kube-state-metrics.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kube-state-metrics.spec of Package kube-state-metrics
# # spec file for package kube-state-metrics # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define project k8s.io/kube-state-metrics Name: kube-state-metrics Version: 1.9.5 Release: 0 Summary: Service that listens to the Kubernetes API server and generates metrics License: Apache-2.0 Group: System/Management URL: https://github.com/kubernetes/kube-state-metrics Source0: %{name}-%{version}.tar.gz Source1: vendor.tar.gz BuildRequires: fdupes BuildRequires: git BuildRequires: go-go-md2man BuildRequires: golang(API) = 1.12 BuildRequires: go >= 1.12.9 BuildRequires: golang-packaging ExcludeArch: s390 %{ix86} %{go_nostrip} %{go_provides} %description kube-state-metrics is a simple service that listens to the Kubernetes API server and generates metrics about the state of the objects. It is not focused on the health of the individual Kubernetes components, but rather on the health of the various objects inside, such as deployments, nodes and pods. %prep %setup -q -a1 %build # We can't use symlinks here because go-list gets confused by symlinks, so we # have to copy the source to $HOME/go and then use that as the GOPATH. %{goprep} k8s.io/kube-state-metrics export GOPATH=$HOME/go mkdir -pv $HOME/go/src/%{project} rm -rf $HOME/go/src/%{project}/* cp -avr * $HOME/go/src/%{project} cd $HOME/go/src/%{project} export KSM_VER="v1.8.0" export KSM_PKG="k8s.io/kube-state-metrics/pkg" export KSM_BUILD=6b7bb9390fd0f5202f10621282238281209c7547 export KSM_BUILD_DATE=20191025-13:43:30 # Build kube-state-metrics env CGO_ENABLED=0 go build -ldflags "-s -w -X ${KSM_PKG}/version.Release=${KSM_VER} \ -X ${KSM_PKG}/version.Commit=${KSM_BUILD} \ -X ${KSM_PKG}/version.BuildDate=${KSM_BUILD_DATE}" \ -o kube-state-metrics %install cd $HOME/go/src/%{project} install -D -m 0755 kube-state-metrics %{buildroot}/%{_bindir}/kube-state-metrics %files %license LICENSE %doc README.md %{_bindir}/kube-state-metrics %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor