X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=SPECS%2Fcaas-metrics_server.spec;h=52c8cd168d728c57a70fa62ef288c07d8156f371;hb=641c2c743b7bad46a071c287a10d60bd607cb657;hp=2c40908cdae88a79369ee02ac6b8b65f68ed0b01;hpb=d254ec439e14213a84cc246cf5995617fc454091;p=ta%2Fcaas-metrics.git diff --git a/SPECS/caas-metrics_server.spec b/SPECS/caas-metrics_server.spec index 2c40908..52c8cd1 100644 --- a/SPECS/caas-metrics_server.spec +++ b/SPECS/caas-metrics_server.spec @@ -15,8 +15,9 @@ %define COMPONENT metrics_server %define RPM_NAME caas-%{COMPONENT} %define RPM_MAJOR_VERSION 0.3.3 -%define RPM_MINOR_VERSION 1 -%define DEPENDENCY_MANAGER_VERSION 0.5.0 +%define RPM_MINOR_VERSION 4 +%define go_version 1.12.10 +%define DEP_MAN_VERSION 0.5.4 %define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION} Name: %{RPM_NAME} @@ -25,7 +26,7 @@ Release: %{RPM_MINOR_VERSION}%{?dist} Summary: Containers as a Service Metrics Server component License: %{_platform_license} and MIT license and BSD and Apache License and GNU LGPLv3 URL: https://github.com/kubernetes-incubator/metrics-server -BuildArch: x86_64 +BuildArch: %{_arch} Vendor: %{_platform_vendor} and kubernetes-incubator/metrics-server unmodified Source0: %{name}-%{version}.tar.gz @@ -49,8 +50,9 @@ docker build \ --build-arg http_proxy="${http_proxy}" \ --build-arg https_proxy="${https_proxy}" \ --build-arg no_proxy="${no_proxy}" \ - --build-arg METRICS_SERVER="%{RPM_MAJOR_VERSION}" \ - --build-arg DEPENDENCY_MANAGER="%{DEPENDENCY_MANAGER_VERSION}" \ + --build-arg METRICS_SERVER_VERSION="%{RPM_MAJOR_VERSION}" \ + --build-arg DEP_MAN_VERSION="%{DEP_MAN_VERSION}" \ + --build-arg go_version="%{go_version}" \ --tag %{COMPONENT}:%{IMAGE_TAG} \ %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-build/%{COMPONENT}/