Merge pull request #11530 from ansible/dont_expose_k8s_api_token_by_default

Don't expose serviceAccount token on default pod spec
This commit is contained in:
Marcelo Moreira de Mello 2022-01-14 12:04:14 -05:00 committed by GitHub
commit 59d582ce83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,8 @@ def get_default_pod_spec():
"kind": "Pod",
"metadata": {"namespace": settings.AWX_CONTAINER_GROUP_DEFAULT_NAMESPACE},
"spec": {
"serviceAccountName": "default",
"automountServiceAccountToken": False,
"containers": [
{
"image": ee.image,