From 3020414a9030a692c901cb06e7950c048b091dd1 Mon Sep 17 00:00:00 2001 From: Walter Medvedeo Date: Thu, 11 Jan 2024 19:02:05 +0100 Subject: [PATCH] kogito-serverless-operator-356: Temporary use of the nightly images (#347) --- controllers/platform/services/services.go | 10 ++++++++-- .../profiles/common/constants/platform_services.go | 6 +++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/controllers/platform/services/services.go b/controllers/platform/services/services.go index 51bacde71..1c1d032ab 100644 --- a/controllers/platform/services/services.go +++ b/controllers/platform/services/services.go @@ -83,11 +83,14 @@ func (d DataIndex) GetContainerName() string { func (d DataIndex) GetServiceImageName(persistenceName string) string { var tag = version.GetMajorMinor() + var suffix = "" if version.IsSnapshot() { tag = "latest" + //TODO, remove + suffix = constants.ImageNameNightlySuffix } // returns "quay.io/kiegroup/kogito-data-index-:" - return fmt.Sprintf("%s-%s-%s:%s", constants.ImageNamePrefix, constants.DataIndexName, persistenceName, tag) + return fmt.Sprintf("%s-%s-%s:%s", constants.ImageNamePrefix, constants.DataIndexName, persistenceName+suffix, tag) } func (d DataIndex) GetServiceName() string { @@ -250,11 +253,14 @@ func (j JobService) GetContainerName() string { func (j JobService) GetServiceImageName(persistenceName string) string { var tag = version.GetMajorMinor() + var suffix = "" if version.IsSnapshot() { tag = "latest" + //TODO remove + suffix = constants.ImageNameNightlySuffix } // returns "quay.io/kiegroup/kogito-jobs-service-:" - return fmt.Sprintf("%s-%s-%s:%s", constants.ImageNamePrefix, constants.JobServiceName, persistenceName, tag) + return fmt.Sprintf("%s-%s-%s:%s", constants.ImageNamePrefix, constants.JobServiceName, persistenceName+suffix, tag) } func (j JobService) GetServiceName() string { diff --git a/controllers/profiles/common/constants/platform_services.go b/controllers/profiles/common/constants/platform_services.go index 4810554b1..2f4ab5d86 100644 --- a/controllers/profiles/common/constants/platform_services.go +++ b/controllers/profiles/common/constants/platform_services.go @@ -48,7 +48,11 @@ const ( DataIndexServiceName = "data-index-service" JobServiceName = "jobs-service" ImageNamePrefix = "quay.io/kiegroup/kogito" - DataIndexName = "data-index" + //TODO, the usage of this constant was temporary introduced since only the nightly images are being updated for the + //data-index and jobs-service. And this is causing issues at the time of using the workflows integrated with these, etc. + //This will be removed when the CI is fixed. + ImageNameNightlySuffix = "-nightly" + DataIndexName = "data-index" DefaultDatabaseName string = "sonataflow" DefaultPostgreSQLPort int = 5432