mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 08:57:33 -02:30
Add the ability to specify K8S/OCP credentials on a Job Template
see: https://github.com/ansible/awx/issues/5735
This commit is contained in:
@@ -1169,7 +1169,18 @@ ManagedCredentialType(
|
||||
'multiline': True,
|
||||
}],
|
||||
'required': ['host', 'bearer_token'],
|
||||
}
|
||||
},
|
||||
injectors={
|
||||
'file': {
|
||||
'template': '{{ ssl_ca_cert }}'
|
||||
},
|
||||
'env': {
|
||||
'K8S_AUTH_HOST': '{{ host }}',
|
||||
'K8S_AUTH_API_KEY': '{{ bearer_token }}',
|
||||
'K8S_AUTH_VERIFY_SSL': '{{ verify_ssl }}',
|
||||
'K8S_AUTH_SSL_CA_CERT': '{{ tower.filename }}',
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user