diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-11-23 10:24:10 -0500 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2015-11-23 11:56:03 -0500 |
commit | bc9a52fcc1b27379c093eac5d8b63e87c0511c35 (patch) | |
tree | d9aac53b50b3a26f2c83a9396fa347f5acc43b29 /playbooks/common/openshift-cluster/upgrades | |
parent | 8e979def0a56b40ab8a3acbd2e1a146457a5aaa6 (diff) | |
download | openshift-bc9a52fcc1b27379c093eac5d8b63e87c0511c35.tar.gz openshift-bc9a52fcc1b27379c093eac5d8b63e87c0511c35.tar.bz2 openshift-bc9a52fcc1b27379c093eac5d8b63e87c0511c35.tar.xz openshift-bc9a52fcc1b27379c093eac5d8b63e87c0511c35.zip |
Add serviceAccountConfig.masterCA during 3.1 upgrade
- uses the value of oauthConfig.masterCA if present, otherwise sets it to
ca.crt
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades')
-rwxr-xr-x | playbooks/common/openshift-cluster/upgrades/library/openshift_upgrade_config.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/library/openshift_upgrade_config.py b/playbooks/common/openshift-cluster/upgrades/library/openshift_upgrade_config.py index a6721bb92..9a065fd1c 100755 --- a/playbooks/common/openshift-cluster/upgrades/library/openshift_upgrade_config.py +++ b/playbooks/common/openshift-cluster/upgrades/library/openshift_upgrade_config.py @@ -78,6 +78,10 @@ def upgrade_master_3_0_to_3_1(ansible_module, config_base, backup): config['kubernetesMasterConfig'].pop('apiLevels') changes.append('master-config.yaml: removed kubernetesMasterConfig.apiLevels') + # Add masterCA to serviceAccountConfig + if 'serviceAccountConfig' in config and 'masterCA' not in config['serviceAccountConfig']: + config['serviceAccountConfig']['masterCA'] = config['oauthConfig'].get('masterCA', 'ca.crt') + # Add proxyClientInfo to master-config if 'proxyClientInfo' not in config['kubernetesMasterConfig']: config['kubernetesMasterConfig']['proxyClientInfo'] = { |