Explorar o código

openshift_console: remove OAuthClient when uninstalling

The OAuthClient is created within openshift-console installation
(tasks/install.yml, files/console-template.yml).

With this patch, the client is deleted by removal task.
Marek Libra %!s(int64=6) %!d(string=hai) anos
pai
achega
953c09e002
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      roles/openshift_console/tasks/remove.yml

+ 5 - 1
roles/openshift_console/tasks/remove.yml

@@ -4,4 +4,8 @@
     name: openshift-console
     state: absent
 
-# TODO: Remove OAuthClient
+- name: Remove openshift-console OAuth client
+  oc_obj:
+    kind: oauthclient
+    name: openshift-console
+    state: absent