Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kogito-serverless-operator-356: Temporary use of the nightly images #347

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions controllers/platform/services/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down