Merge pull request #29520 from pcuzner/add-events-mgr-module

mgr/k8sevents: Add mgr module for kubernetes event integration

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
Sebastian Wagner 2019-09-06 17:09:21 +02:00 committed by GitHub
commit 199d6418f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1146 additions and 0 deletions

View File

@ -458,6 +458,7 @@ Recommends: ceph-mgr-dashboard = %{_epoch_prefix}%{version}-%{release}
Recommends: ceph-mgr-diskprediction-local = %{_epoch_prefix}%{version}-%{release}
Recommends: ceph-mgr-diskprediction-cloud = %{_epoch_prefix}%{version}-%{release}
Recommends: ceph-mgr-rook = %{_epoch_prefix}%{version}-%{release}
Recommends: ceph-mgr-k8sevents = %{_epoch_prefix}%{version}-%{release}
Recommends: ceph-mgr-ssh = %{_epoch_prefix}%{version}-%{release}
Recommends: python%{_python_buildid}-influxdb
%endif
@ -550,6 +551,18 @@ Requires: python%{_python_buildid}-kubernetes
ceph-mgr-rook is a ceph-mgr plugin for orchestration functions using
a Rook backend.
%package mgr-k8sevents
BuildArch: noarch
Summary: Ceph Manager plugin to orchestrate ceph-events to kubernetes' events API
%if 0%{?suse_version}
Group: System/Filesystems
%endif
Requires: ceph-mgr = %{_epoch_prefix}%{version}-%{release}
Requires: python%{_python_buildid}-kubernetes
%description mgr-k8sevents
ceph-mgr-k8sevents is a ceph-mgr plugin that sends every ceph-events
to kubernetes' events API
%package mgr-ssh
Summary: Ceph Manager plugin for SSH-based orchestration
BuildArch: noarch
@ -1707,6 +1720,19 @@ if [ $1 -eq 1 ] ; then
/usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi
%files mgr-k8sevents
%{_datadir}/ceph/mgr/k8sevents
%post mgr-k8sevents
if [ $1 -eq 1 ] ; then
/usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi
%postun mgr-k8sevents
if [ $1 -eq 1 ] ; then
/usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi
%files mgr-ssh
%{_datadir}/ceph/mgr/ssh

16
debian/control vendored
View File

@ -210,6 +210,7 @@ Recommends: ceph-mgr-dashboard,
ceph-mgr-diskprediction-local,
ceph-mgr-diskprediction-cloud,
ceph-mgr-rook,
ceph-mgr-k8sevents,
ceph-mgr-ssh
Suggests: python-influxdb
Replaces: ceph (<< 0.93-417),
@ -294,6 +295,21 @@ Description: rook plugin for ceph-mgr
functionality, to allow ceph-mgr to install and configure ceph using
Rook.
Package: ceph-mgr-k8sevents
Architecture: all
Depends: ceph-mgr (= ${binary:Version}),
python-kubernetes,
${misc:Depends},
${python:Depends},
Description: kubernetes events plugin for ceph-mgr
Ceph is a massively scalable, open-source, distributed
storage system that runs on commodity hardware and delivers object,
block and file system storage.
.
This package contains the k8sevents plugin, to allow ceph-mgr to send
ceph related events to the kubernetes events API, and track all events
that occur within the rook-ceph namespace.
Package: ceph-mgr-ssh
Architecture: all
Depends: ceph-mgr (= ${binary:Version}),

View File

@ -0,0 +1 @@
from .module import Module

File diff suppressed because it is too large Load Diff