![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package kured for openSUSE:Factory checked in at 2019-01-21 11:00:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kured (Old) and /work/SRC/openSUSE:Factory/.kured.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "kured" Mon Jan 21 11:00:08 2019 rev:3 rq:666975 version:1.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kured/kured.changes 2019-01-08 12:29:06.256231182 +0100 +++ /work/SRC/openSUSE:Factory/.kured.new.28833/kured.changes 2019-01-21 11:02:04.467141724 +0100 @@ -1,0 +2,9 @@ +Fri Jan 18 13:26:51 CET 2019 - kukuk@suse.de + +- Create a correct yaml file to download and run the kured container + image in a kubernetes cluster +- Create new subpackage containing only the yaml file, so that + people using the container don't need to install the not needed + full package. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kured.spec ++++++ --- /var/tmp/diff_new_pack.GhsNyw/_old 2019-01-21 11:02:05.303140647 +0100 +++ /var/tmp/diff_new_pack.GhsNyw/_new 2019-01-21 11:02:05.307140641 +0100 @@ -1,7 +1,7 @@ # # spec file for package kured # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -19,20 +19,17 @@ # Remove stripping of Go binaries. %define __arch_install_post export NO_BRP_STRIP_DEBUG=true - # Project name when using go tooling. %define project github.com/weaveworks/kured - # Project upstream commit. %define commit dcddbff - Name: kured Version: 1.1.0 Release: 0 Summary: Kubernetes daemonset to perform safe automatic node reboots License: Apache-2.0 Group: System/Management -Url: https://github.com/weaveworks/kured +URL: https://github.com/weaveworks/kured Source: %{name}-%{version}.tar.gz Source1: vendor.tar.gz BuildRequires: fdupes @@ -48,7 +45,7 @@ performs safe automatic node reboots when the need to do so is indicated by the package management system of the underlying OS. -- Watches for the presence of a reboot sentinel e.g. /var/run/reboot-required +- Watches for the presence of a reboot sentinel e.g. %{_localstatedir}/run/reboot-required - Utilises a lock in the API server to ensure only one node reboots at a time @@ -56,6 +53,15 @@ - Cordons & drains worker nodes before reboot, uncordoning them after +%package yaml +Summary: yaml file to run kured container +Group: System/Management +BuildArch: noarch + +%description yaml +This package contains the yaml file requried to download and run the +kured container in a kubernetes cluster. + %prep %setup -q %setup -q -T -D -a 1 @@ -90,18 +96,22 @@ install -D -m 0644 %{name}.1 "%{buildroot}/%{_mandir}/man1/%{name}.1" rm %{name}.1 -# Install provided slack notification config -install -D -m 0644 kured-ds.yaml "%{buildroot}/usr/share/kured/kured-ds.yaml" +# Install provided yaml file to download and run the kured container +mkdir %{buildroot}%{_datadir}/kured +cat kured-rbac.yaml kured-ds.yaml > %{buildroot}%{_datadir}/kured/kured-%{version}.yaml +chmod 644 %{buildroot}%{_datadir}/kured/kured-%{version}.yaml +sed -i -e 's|image: quay.io/weaveworks/kured|image: registry.opensuse.org/devel/kubic/containers/container/kubic/kured:%{version}|g' %{buildroot}%{_datadir}/kured/kured-%{version}.yaml %fdupes %{buildroot} %files -%defattr(-,root,root) %doc README.md %license LICENSE %{_bindir}/%{name} -%{_mandir}/man1/kured.1.gz +%{_mandir}/man1/kured.1%{?ext_man} + +%files yaml %dir %{_datarootdir}/kured -%{_datarootdir}/kured/kured-ds.yaml +%{_datarootdir}/kured/kured-%{version}.yaml %changelog