Add Kubernetes class to track API connection settings 46/88546/1
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Mon, 27 May 2019 12:39:26 +0000 (14:39 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Mon, 27 May 2019 12:39:26 +0000 (14:39 +0200)
commitc2b38a5d0fec6c74d6e9a8c4cbd7be769cdcfe41
tree94c7b48867e943fb173e8b6d8cfa0fc6e7532b32
parent130dd181af4f4ac4016f35d76dad18562463b8a4
Add Kubernetes class to track API connection settings

This patch moves get_resources() routine into Kubernetes
class. It's object now holds all needed API connection
properties and tracks it's state to avoid passing these
settings through intermediary functions all the way down
to actual API calling routine.

Additional checks are added in get_resources() to produce
more meaningfull debug info in case of connection failure.

Change-Id: Ia50fa086d22466c0fbed9eb677d2dc52709bef9f
Issue-ID: OOM-1806
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
helm_deployment_status.py