This is an automated email from the ASF dual-hosted git repository.
wmedvedeo pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-serverless-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 039efc3c kogito-serverless-operator-356: Temporary use of the nightly
images (#347)
039efc3c is described below
commit 039efc3c6a0636620aff25b10ad7a3e7a182c773
Author: Walter Medvedeo <[email protected]>
AuthorDate: Thu Jan 11 19:02:05 2024 +0100
kogito-serverless-operator-356: Temporary use of the nightly images (#347)
---
controllers/platform/services/services.go | 10 ++++++++--
controllers/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 51bacde7..1c1d032a 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-<persistence_layer>:<tag>"
- 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-<persistece_layer>:<tag>"
- 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 4810554b..2f4ab5d8 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]