]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/rook: create KubernetesCustomResource class to fetch CRs
authorJoseph Sawaya <jsawaya@redhat.com>
Fri, 9 Jul 2021 20:36:36 +0000 (16:36 -0400)
committerJoseph Sawaya <jsawaya@redhat.com>
Tue, 13 Jul 2021 17:55:05 +0000 (13:55 -0400)
commit48b24ceb2d885950707149546f7d9dcc4226fd4a
tree81b7cb609521c46193e9f27aa88d3d5e5c3af274
parenta8a12392d993f15314ecb02f9ff8775dca64a91f
mgr/rook: create KubernetesCustomResource class to fetch CRs

This commit creates the KubernetesCustomResource class that inherits from
KubernetesResource to be able to fetch CRs using the CustomObjectsApi
in a cleaner way. It replaces previous try-except pattern.

Signed-off-by: Joseph Sawaya <jsawaya@redhat.com>
src/pybind/mgr/rook/rook_cluster.py