okozachenko1203 | 622ea92 | 2023-01-27 18:19:41 +1100 | [diff] [blame] | 1 | # Copyright (c) 2022 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 | - name: Uninstall the legacy HelmRelease |
| 16 | run_once: true |
| 17 | block: |
okozachenko1203 | 622ea92 | 2023-01-27 18:19:41 +1100 | [diff] [blame] | 18 | - name: Remove the existing HelmRelease |
Mohammed Naser | f0314a8 | 2023-04-11 18:53:30 +0000 | [diff] [blame] | 19 | failed_when: false |
okozachenko1203 | 622ea92 | 2023-01-27 18:19:41 +1100 | [diff] [blame] | 20 | kubernetes.core.k8s: |
| 21 | state: absent |
| 22 | api_version: helm.toolkit.fluxcd.io/v2beta1 |
| 23 | kind: HelmRelease |
| 24 | name: "{{ ingress_nginx_helm_release_name }}" |
| 25 | namespace: "openstack" |
| 26 | |
| 27 | - name: Deploy Helm chart |
| 28 | run_once: true |
| 29 | kubernetes.core.helm: |
| 30 | name: "{{ ingress_nginx_helm_release_name }}" |
| 31 | chart_ref: "{{ ingress_nginx_helm_chart_ref }}" |
| 32 | release_namespace: "{{ ingress_nginx_helm_release_namespace }}" |
| 33 | create_namespace: true |
| 34 | kubeconfig: /etc/kubernetes/admin.conf |
| 35 | values: "{{ _ingress_nginx_helm_values | combine(ingress_nginx_helm_values, recursive=True) }}" |