armada/armada
Jerry Sun df68a90e05 Fix unauthenticated requests to create locks
Kubernetes requests to create locks in the lock_and_thread decorator
were being done without the bearer token. This creates authentication
errors when communicating with a Kubernetes cluster configured with
an external auth backend. This commit uses the bearer token when
creating the Kubernetes client used to create a lock object for
lock_and_thread

The bearer token is obtained from the tiller object passed to the
function being decorated by lock_and_thread. Currently, all functions
decorated by lock_and_thread passes a tiller object to obtain a token
from. If no tiller object is found in the params, this will be logged
to assist with potential debugging in the future. An exception is not
thrown because a Kubernetes cluster without external auth can be used
without passing any bearer tokens around.

Change-Id: Ic9329c2f605cb508750065ebd0c756869be94199
Signed-off-by: Jerry Sun <jerry.sun@windriver.com>
2019-06-11 15:04:04 -04:00
..
api Introduce v2 docs 2019-04-16 10:15:21 -05:00
cli Introduce v2 docs 2019-04-16 10:15:21 -05:00
common End user logging for audit traceabilty 2019-04-04 13:18:44 +00:00
conf Introduce v2 docs 2019-04-16 10:15:21 -05:00
exceptions Remediate releases stuck in non-DEPLOYED statuses 2019-01-18 23:06:01 +00:00
handlers Fix unauthenticated requests to create locks 2019-06-11 15:04:04 -04:00
schemas [v2 docs] Overhaul wait API 2019-05-13 16:52:44 +00:00
tests [v2 docs] Overhaul wait API 2019-05-13 16:52:44 +00:00
utils Introduce v2 docs 2019-04-16 10:15:21 -05:00
__init__.py fix(init): remove duplicated version code 2018-05-28 05:52:58 -05:00
const.py Introduce v2 docs 2019-04-16 10:15:21 -05:00
shell.py Adding yapf config, plus formatted code. 2018-06-22 14:56:04 -05:00
version.py Fix(linting): Make Armada pep8 compliant 2017-09-29 11:46:58 -04:00