From be71ae7fa5613dec76a781a31c6550ef7af6fbdc Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Wed, 17 Jan 2024 14:55:41 +0000 Subject: [PATCH] config - nodepoo-builder - add missing annotation for config repo The change fixes the missing annotation that prevent the nodepool-builder pod to be recreated when the config-location change. Change-Id: I8bcd1844469ca35a669fb9c2039be4c8f97a6347 --- controllers/nodepool.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/nodepool.go b/controllers/nodepool.go index 7592e7ff..c1b15d2d 100644 --- a/controllers/nodepool.go +++ b/controllers/nodepool.go @@ -526,6 +526,10 @@ func (r *SFController) DeployNodepoolBuilder(statsdExporterVolume apiv1.Volume, "corporate-ca-certs-version": getCMVersion(corporateCM, corporateCMExists), } + if r.isConfigRepoSet() { + annotations["config-repo-info-hash"] = r.cr.Spec.ConfigRepositoryLocation.BaseURL + r.cr.Spec.ConfigRepositoryLocation.Name + } + initContainer := base.MkContainer("nodepool-builder-init", base.NodepoolBuilderImage) initContainer.Command = []string{"/usr/local/bin/init-container.sh"}