cert_manager: Remove deprecated ClusterIssuer and its Secret (#8064)
This commit is contained in:
parent
1a57780a75
commit
6c004efd5f
3 changed files with 0 additions and 61 deletions
|
@ -45,7 +45,6 @@
|
||||||
- { name: deploy-cert-manager, file: deploy-cert-manager.yml, type: deploy }
|
- { name: deploy-cert-manager, file: deploy-cert-manager.yml, type: deploy }
|
||||||
- { name: svc-cert-manager, file: svc-cert-manager.yml, type: svc }
|
- { name: svc-cert-manager, file: svc-cert-manager.yml, type: svc }
|
||||||
- { name: webhook-cert-manager, file: webhook-cert-manager.yml, type: webhook }
|
- { 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
|
- name: Cert Manager | Create manifests
|
||||||
template:
|
template:
|
||||||
|
@ -66,31 +65,3 @@
|
||||||
with_items: "{{ cert_manager_manifests.results }}"
|
with_items: "{{ cert_manager_manifests.results }}"
|
||||||
when:
|
when:
|
||||||
- inventory_hostname == groups['kube_control_plane'][0]
|
- 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
|
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
# Copyright YEAR The Jetstack cert-manager contributors.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: cert-manager.io/v1alpha2
|
|
||||||
kind: ClusterIssuer
|
|
||||||
metadata:
|
|
||||||
name: ca-issuer
|
|
||||||
namespace: {{ cert_manager_namespace }}
|
|
||||||
spec:
|
|
||||||
ca:
|
|
||||||
secretName: ca-key-pair
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: ca-key-pair
|
|
||||||
namespace: {{ cert_manager_namespace }}
|
|
||||||
data:
|
|
||||||
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ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