Jelajahi Sumber

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 tahun lalu
induk
melakukan
1a43e7da5f

+ 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):