Minimal OpenShift fixes (#255)

* notify user when no tfvars file is used

* add comment for additionalTrustBundle in configuration template
This commit is contained in:
Ludovico Magnocavallo 2021-06-03 08:11:48 +02:00 committed by GitHub
parent 7f840bc08c
commit f53aba9bba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -37,3 +37,5 @@ publish: Internal
pullSecret: ""
sshKey: |
xxx
# additionalTrustBundle: |

View File

@ -56,6 +56,8 @@ def _parse_tfvars(tfvars=None, tfdir=None):
if tfvars:
with open(os.path.join(tfdir, tfvars)) as f:
result.update(hcl.load(f))
else:
logging.info('no tfvars file used')
except (KeyError, ValueError) as e:
raise Error(f'Wrong variable files syntax: {e}')
except (IOError, OSError) as e: