Skip to content

Commit

Permalink
cert_manager: Remove deprecated ClusterIssuer and its Secret
Browse files Browse the repository at this point in the history
  • Loading branch information
rtsp committed Oct 8, 2021
1 parent ab4356a commit 20065ad
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
- { name: deploy-cert-manager, file: deploy-cert-manager.yml, type: deploy }
- { name: svc-cert-manager, file: svc-cert-manager.yml, type: svc }
- { name: webhook-cert-manager, file: webhook-cert-manager.yml, type: webhook }
- { name: secret-cert-manager, file: secret-cert-manager.yml, type: secret }

- name: Cert Manager | Create manifests
template:
Expand All @@ -66,31 +65,3 @@
with_items: "{{ cert_manager_manifests.results }}"
when:
- inventory_hostname == groups['kube_control_plane'][0]

- name: Cert Manager | Wait for Webhook pods become ready
command: "{{ bin_dir }}/kubectl wait po --namespace={{ cert_manager_namespace }} --selector app=webhook --for=condition=Ready --timeout=600s"
register: cert_manager_webhook_pods_ready
when: inventory_hostname == groups['kube_control_plane'][0]
until: cert_manager_webhook_pods_ready is succeeded
retries: 30
delay: 10

- name: Cert Manager | Create ClusterIssuer manifest
template:
src: "clusterissuer-cert-manager.yml.j2"
dest: "{{ kube_config_dir }}/addons/cert_manager/clusterissuer-cert-manager.yml"
register: cert_manager_clusterissuer_manifest
when:
- inventory_hostname == groups['kube_control_plane'][0] and cert_manager_webhook_pods_ready is succeeded

- name: Cert Manager | Apply ClusterIssuer manifest
kube:
name: "clusterissuer-cert-manager"
kubectl: "{{ bin_dir }}/kubectl"
filename: "{{ kube_config_dir }}/addons/cert_manager/clusterissuer-cert-manager.yml"
state: "latest"
when: inventory_hostname == groups['kube_control_plane'][0] and cert_manager_clusterissuer_manifest is succeeded
register: cert_manager_apply_clusterissuer_manifest
until: cert_manager_apply_clusterissuer_manifest is succeeded
retries: 30
delay: 10

This file was deleted.

This file was deleted.

0 comments on commit 20065ad

Please sign in to comment.