Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Issue-ID: OOM-1724
Change-Id: Ie634a441641abd3afd4093661c5d4f57245946ee
Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
|