| | |
| | | - ocp_username is defined |
| | | - ocp_user_groups | default([]) | length > 0 |
| | | |
| | | - name: "Remove user {{ ocp_username }}'s Quotas" |
| | | k8s: |
| | | state: absent |
| | | api_version: quota.openshift.io/v1 |
| | | kind: ClusterResourceQuota |
| | | name: "{{ item }}" |
| | | loop: |
| | | - "clusterquota-{{ ocp_username }}-{{ guid }}" |
| | | - "clusterquota-{{ ocp_username }}" |
| | | |
| | | - name: "Remove user {{ ocp_username }} from Grading Jenkins" |
| | | - name: Remove ClusterResourceQuota and remove access to Grading Jenkins |
| | | k8s: |
| | | state: absent |
| | | definition: "{{ lookup('template', item ) | from_yaml }}" |
| | | loop: |
| | | - ./templates/cluster_resource_quota.j2 |
| | | - ./templates/jenkins_role_binding.j2 |
| | | |
| | | - name: "Find all projects for user {{ ocp_username }}" |