瀏覽代碼

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 6 年之前
父節點
當前提交
953c09e002
共有 1 個文件被更改,包括 5 次插入1 次删除
  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