From: Todd Malsbary Date: Wed, 9 Mar 2022 18:31:59 +0000 (-0800) Subject: Address error with helm-controller restarting X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=a4b13b17060ad388fa14ba6393c449146c6cf9ec;p=icn.git Address error with helm-controller restarting Ensure that all Helm charts are deployed in the cluster before deploying the SriovNetwork. Deploying the SriovNetwork causes the node to drain, which in turn causes the helm-controller to restart. If the helm-controller is restarted while reconciling a HelmRelease, it's possible the HelmRelease becomes stuck in a failed state. Signed-off-by: Todd Malsbary Change-Id: I1ec23f024707b936a0cd3c8bd3ff2b873de814a9 --- diff --git a/deploy/site/pod11/cluster/icn/addons.yaml b/deploy/site/pod11/cluster/icn/addons.yaml index 170028a..a84b32f 100644 --- a/deploy/site/pod11/cluster/icn/addons.yaml +++ b/deploy/site/pod11/cluster/icn/addons.yaml @@ -13,3 +13,30 @@ spec: name: icn wait: true timeout: 10m + patches: + - patch: | + - op: add + path: /spec/healthChecks/- + value: + apiVersion: helm.toolkit.fluxcd.io/v2beta1 + kind: HelmRelease + name: monitor + namespace: emco + - op: add + path: /spec/healthChecks/- + value: + apiVersion: helm.toolkit.fluxcd.io/v2beta1 + kind: HelmRelease + name: services + namespace: emco + - op: add + path: /spec/healthChecks/- + value: + apiVersion: helm.toolkit.fluxcd.io/v2beta1 + kind: HelmRelease + name: tools + namespace: emco + target: + kind: Kustomization + name: sriov-network-operator + namespace: kud