diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-04-06 16:19:42 -0400 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-04-06 16:19:42 -0400 |
commit | fa4f0f35befc30c43a272defff2a1792893ff1ba (patch) | |
tree | e22ce3202662a643f9c4d17bd0b210e9c01b2db8 /roles/openshift_master | |
parent | b67f7b41fd4efb94d8966f84b8ed08b75f4c991e (diff) | |
parent | 6003856b95031aa8e0c31977e9485ff3d842810e (diff) | |
download | openshift-fa4f0f35befc30c43a272defff2a1792893ff1ba.tar.gz openshift-fa4f0f35befc30c43a272defff2a1792893ff1ba.tar.bz2 openshift-fa4f0f35befc30c43a272defff2a1792893ff1ba.tar.xz openshift-fa4f0f35befc30c43a272defff2a1792893ff1ba.zip |
Merge pull request #1660 from dgoodwin/admission-config
Add support for templating master admissionConfig.
Diffstat (limited to 'roles/openshift_master')
-rw-r--r-- | roles/openshift_master/templates/master.yaml.v1.j2 | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/roles/openshift_master/templates/master.yaml.v1.j2 b/roles/openshift_master/templates/master.yaml.v1.j2 index 813a58d60..e89fdc0ce 100644 --- a/roles/openshift_master/templates/master.yaml.v1.j2 +++ b/roles/openshift_master/templates/master.yaml.v1.j2 @@ -1,3 +1,10 @@ +admissionConfig: +{% if 'admission_plugin_order' in openshift.master %} + pluginOrderOverride:{{ openshift.master.admission_plugin_order | to_padded_yaml(level=2) }} +{% endif %} +{% if 'admission_plugin_config' in openshift.master %} + pluginConfig:{{ openshift.master.admission_plugin_config | to_padded_yaml(level=2) }} +{% endif %} apiLevels: {% if not openshift.common.version_gte_3_1_or_1_1 | bool %} - v1beta3 @@ -96,6 +103,13 @@ kubernetesMasterConfig: - v1beta3 - v1 {% endif %} + admissionConfig: +{% if 'kube_admission_plugin_order' in openshift.master %} + pluginOrderOverride:{{ openshift.master.kube_admission_plugin_order | to_padded_yaml(level=3) }} +{% endif %} +{% if 'kube_admission_plugin_config' in openshift.master %} + pluginConfig:{{ openshift.master.kube_admission_plugin_config | to_padded_yaml(level=3) }} +{% endif %} apiServerArguments: {{ openshift.master.api_server_args | default(None) | to_padded_yaml( level=2 ) }} controllerArguments: {{ openshift.master.controller_args | default(None) | to_padded_yaml( level=2 ) }} masterCount: {{ openshift.master.master_count if openshift.master.cluster_method | default(None) == 'native' else 1 }} @@ -123,9 +137,11 @@ networkConfig: # serviceNetworkCIDR must match kubernetesMasterConfig.servicesSubnet serviceNetworkCIDR: {{ openshift.master.portal_net }} oauthConfig: -{% if 'oauth_template' in openshift.master %} - templates: - login: {{ openshift.master.oauth_template }} +{% if 'oauth_always_show_provider_selection' in openshift.master %} + alwaysShowProviderSelection: {{ openshift.master.oauth_always_show_provider_selection }} +{% endif %} +{% if 'oauth_templates' in openshift.master %} + templates:{{ openshift.master.oauth_templates | to_padded_yaml(level=2) }} {% endif %} assetPublicURL: {{ openshift.master.public_console_url }}/ grantConfig: |