Mohammed Naser | 9edc07f | 2023-01-24 20:42:06 +0000 | [diff] [blame] | 1 | # Copyright (c) 2023 VEXXHOST, Inc. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
| 15 | # NOTE(mnaser): We should get rid of this task eventually as it is suspending |
| 16 | # the old HelmRelease and removing it to avoid uninstalling the |
| 17 | # Helm chart. |
| 18 | - name: Uninstall the legacy HelmRelease |
| 19 | run_once: true |
| 20 | block: |
| 21 | - name: Suspend the existing HelmRelease |
Mohammed Naser | f0314a8 | 2023-04-11 18:53:30 +0000 | [diff] [blame] | 22 | failed_when: false |
Mohammed Naser | 9edc07f | 2023-01-24 20:42:06 +0000 | [diff] [blame] | 23 | kubernetes.core.k8s: |
| 24 | state: patched |
| 25 | api_version: helm.toolkit.fluxcd.io/v2beta1 |
| 26 | kind: HelmRelease |
Mohammed Naser | c4499c1 | 2023-09-21 10:24:54 -0400 | [diff] [blame] | 27 | name: cert-manager |
| 28 | namespace: cert-manager |
Mohammed Naser | 9edc07f | 2023-01-24 20:42:06 +0000 | [diff] [blame] | 29 | definition: |
| 30 | spec: |
| 31 | suspend: true |
| 32 | |
| 33 | - name: Remove the existing HelmRelease |
Mohammed Naser | f0314a8 | 2023-04-11 18:53:30 +0000 | [diff] [blame] | 34 | failed_when: false |
Mohammed Naser | 9edc07f | 2023-01-24 20:42:06 +0000 | [diff] [blame] | 35 | kubernetes.core.k8s: |
| 36 | state: absent |
| 37 | api_version: helm.toolkit.fluxcd.io/v2beta1 |
| 38 | kind: HelmRelease |
Mohammed Naser | c4499c1 | 2023-09-21 10:24:54 -0400 | [diff] [blame] | 39 | name: cert-manager |
| 40 | namespace: cert-manager |
Mohammed Naser | 9edc07f | 2023-01-24 20:42:06 +0000 | [diff] [blame] | 41 | |
| 42 | - name: Deploy Helm chart |
Mohammed Naser | c4499c1 | 2023-09-21 10:24:54 -0400 | [diff] [blame] | 43 | ansible.builtin.include_role: |
| 44 | name: vexxhost.kubernetes.cert_manager |
| 45 | vars: |
| 46 | cert_manager_image_cli: "{{ atmosphere_images['cert_manager_cli'] }}" |
| 47 | cert_manager_image_controller: "{{ atmosphere_images['cert_manager_controller'] }}" |
| 48 | cert_manager_image_cainjector: "{{ atmosphere_images['cert_manager_cainjector'] }}" |
| 49 | cert_manager_image_webhook: "{{ atmosphere_images['cert_manager_webhook'] }}" |
vexxhost-bot | 321420b | 2024-09-24 18:11:55 -0400 | [diff] [blame] | 50 | cert_manager_image_acmesolver: "{{ atmosphere_images['cert_manager_acmesolver'] }}" |
Mohammed Naser | c4499c1 | 2023-09-21 10:24:54 -0400 | [diff] [blame] | 51 | cert_manager_node_selector: |
| 52 | openstack-control-plane: enabled |