浏览代码

Add teams attribute to github identity provider

GitHubIdentityProvider provides the ability to authenticate against
GitHub organization teams [1].
This adds the attribute as optional so that users do not get the error
"provider GitHubIdentityProvider contains unknown keys teams".

[1]: https://docs.openshift.com/container-platform/3.5/install_config/configuring_authentication.html#GitHub
David Moreau-Simard 8 年之前
父节点
当前提交
1a43e7da5f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      roles/openshift_master_facts/filter_plugins/openshift_master.py

+ 2 - 1
roles/openshift_master_facts/filter_plugins/openshift_master.py

@@ -468,7 +468,8 @@ class GitHubIdentityProvider(IdentityProviderOauthBase):
     """
     def __init__(self, api_version, idp):
         IdentityProviderOauthBase.__init__(self, api_version, idp)
-        self._optional += [['organizations']]
+        self._optional += [['organizations'],
+                           ['teams']]
 
 
 class FilterModule(object):