Adding disableWait flag into HelmRelease resources

Some pods where getting stuck due the following cyclic dependency:
The api pod where stuck in the Init state awaiting for jobs to be
executed. Jobs had a post-install hook, meaning that will only be
executed when all resources are loaded into Kubernetes [1]. Since
the api pod where stuck in a Init state, the jobs never spawns and
consequently the api pod. To solve this issue it was added a
disableWait flag into the HelmReleases, meaning that the waiting for
resources to be ready after a helm install has been performed will
be disabled [2], allowing the api pods and jobs to spawn.

Test Plan:
PASS - Build stx-openstack tarball.
PASS - Upload/apply stx-openstack.
PASS - Remove/delete stx-openstack.

[1] - https://helm.sh/docs/topics/charts_hooks/
[2] - https://fluxcd.io/flux/components/helm/helmreleases/

Signed-off-by: Rafael Falcao <rafael.vieirafalcao@windriver.com>
Change-Id: Iacc7544a5b3ecc8729aca991741255c105d5eb22
This commit is contained in:
Rafael Falcão 2022-10-18 15:30:04 -03:00
parent ad0c1dc0e6
commit f3f74c96be
7 changed files with 14 additions and 0 deletions

View File

@ -26,8 +26,10 @@ spec:
enable: false enable: false
install: install:
disableHooks: false disableHooks: false
disableWait: true
upgrade: upgrade:
disableHooks: false disableHooks: false
disableWait: true
dependsOn: dependsOn:
- name: glance - name: glance
namespace: openstack namespace: openstack

View File

@ -26,8 +26,10 @@ spec:
enable: false enable: false
install: install:
disableHooks: false disableHooks: false
disableWait: true
upgrade: upgrade:
disableHooks: false disableHooks: false
disableWait: true
dependsOn: dependsOn:
- name: keystone - name: keystone
namespace: openstack namespace: openstack

View File

@ -26,8 +26,10 @@ spec:
enable: false enable: false
install: install:
disableHooks: false disableHooks: false
disableWait: true
upgrade: upgrade:
disableHooks: false disableHooks: false
disableWait: true
dependsOn: dependsOn:
- name: placement - name: placement
namespace: openstack namespace: openstack

View File

@ -26,8 +26,10 @@ spec:
enable: false enable: false
install: install:
disableHooks: false disableHooks: false
disableWait: true
upgrade: upgrade:
disableHooks: false disableHooks: false
disableWait: true
dependsOn: dependsOn:
- name: rabbitmq - name: rabbitmq
namespace: openstack namespace: openstack

View File

@ -26,8 +26,10 @@ spec:
enable: false enable: false
install: install:
disableHooks: false disableHooks: false
disableWait: true
upgrade: upgrade:
disableHooks: false disableHooks: false
disableWait: true
dependsOn: dependsOn:
- name: placement - name: placement
namespace: openstack namespace: openstack

View File

@ -26,8 +26,10 @@ spec:
enable: false enable: false
install: install:
disableHooks: false disableHooks: false
disableWait: true
upgrade: upgrade:
disableHooks: false disableHooks: false
disableWait: true
dependsOn: dependsOn:
- name: placement - name: placement
namespace: openstack namespace: openstack

View File

@ -26,8 +26,10 @@ spec:
enable: false enable: false
install: install:
disableHooks: false disableHooks: false
disableWait: true
upgrade: upgrade:
disableHooks: false disableHooks: false
disableWait: true
dependsOn: dependsOn:
- name: cinder - name: cinder
namespace: openstack namespace: openstack