mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +00:00
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:
commit
199d6418f4
26
ceph.spec.in
26
ceph.spec.in
@ -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
16
debian/control
vendored
@ -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}),
|
||||
|
1
src/pybind/mgr/k8sevents/__init__.py
Normal file
1
src/pybind/mgr/k8sevents/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .module import Module
|
1103
src/pybind/mgr/k8sevents/module.py
Normal file
1103
src/pybind/mgr/k8sevents/module.py
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user