summaryrefslogtreecommitdiffstats
path: root/helm_deployment_status.py
AgeCommit message (Collapse)AuthorFilesLines
2019-06-13Fix missing import in helm_deployment_status.pyBartek Grzybowski1-5/+3
After recent changes a regression emerged due to not properly imported 'subprocess' module 'check_output' function. Predefined list of available healthcheck modes is also removed to allow passing any mode that will be supported in future by healthcheck script. Change-Id: I2dc681da079f75449f9f2456249d51b3c859f434 Issue-ID: OOM-1806 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-05-30Make healthcheck script output unbufferedBartek Grzybowski1-14/+11
A subprocess.Popen object is created instead of convenience check_output() routine usage to allow unbuffered reading stdout from asynchronously running subprocess. Change-Id: I0dca13d6ac5d533d0ef19ddc5713830c57b37175 Issue-ID: OOM-1806 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-05-28Support running healthcheck in any mode supportedBartek Grzybowski1-4/+8
So far it was only possible to run health checking script with a default option of 'health'. This patch allows passing through to healtcheck script any mode that it supports via --health-mode runtime option. Change-Id: Ic0145e5b4a1f17d64867287538dd63b850d86feb Issue-ID: OOM-1806 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-05-28Always show healthcheck output if it was runBartek Grzybowski1-3/+2
This patch changes the default behavior of showing healthcheck script results. So far output was printed only in increased verbosity mode but the proper action should be to print it whenever it was called. A bug in exec_healthcheck() routine is also fixed (subprocess.check_output() returns byte string, not an object with 'output' attribute). Change-Id: Ifd7294de9bed321123f74977f881999ce69cf878 Issue-ID: OOM-1806 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-05-27Support SSL certificate based authentication to kube APIBartek Grzybowski1-1/+43
With this change script by default connects to kube API performing SSL authentication with certificates that it tries to read from kube config. A flag of '--no-ssl-auth' is provided to disable this behaviour. Change-Id: Ibc1ea21c0c9f3c4a298b5bfef35d916652b598d4 Issue-ID: OOM-1806 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2019-05-27Add Kubernetes class to track API connection settingsBartek Grzybowski1-35/+56
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>
2019-04-15Add monitoring script for deployment progressMilan Verespej1-0/+245
Issue-ID: OOM-1724 Change-Id: Ie634a441641abd3afd4093661c5d4f57245946ee Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>