Move k8s_auth library from community.kubernetes to openshift_auth (#33)

* Add openshift_auth module

* add task to print out config

* Attempt to configure auth

* Update molecule/default/tasks/openshift_auth.yml

* fix sanity test and use incluster address for now

* Get integration tests passing locally

* Give test user cluster-level admin permissions

* Use a less verbose resource for testing

* Add alias to k8s_auth for backwards compatibility
This commit is contained in:
Fabian von Feilitzsch
2020-09-21 18:15:53 -04:00
committed by GitHub
parent f52d63c83f
commit 037f8b1f4f
6 changed files with 461 additions and 1 deletions

View File

@@ -328,7 +328,7 @@ class OKDRawModule(KubernetesRawModule):
if resource.kind == 'DeploymentConfig':
if definition.get('spec', {}).get('triggers'):
definition = self.resolve_imagestream_triggers(existing, definition)
elif existing['metadata'].get('annotations', '{}').get(TRIGGER_ANNOTATION):
elif existing['metadata'].get('annotations', {}).get(TRIGGER_ANNOTATION):
definition = self.resolve_imagestream_trigger_annotation(existing, definition)
return super(OKDRawModule, self).perform_action(resource, definition)