-
Notifications
You must be signed in to change notification settings - Fork 1
ROX-35435: Support differing versions of Central and SecuredCluster #246
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
base: main
Are you sure you want to change the base?
Changes from all commits
ca9ea6b
563b361
3c1e9b6
9cfb545
3be5d41
e0951ee
690f227
b51e01d
52cb864
cdd2a71
0b4f021
e722b1d
596519f
6476db3
0db0eab
e6bebed
dc168d9
8f09943
cde6154
55de33a
879ae62
780994c
b34e56f
15d408a
dcb8379
2dfa903
20f93e8
2896d20
d1eec45
e27161f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,30 +7,23 @@ import ( | |
| ) | ||
|
|
||
| func imagesForConfig(config Config) []string { | ||
| images := make([]string, 0) | ||
| prefix := "" | ||
| if config.Roxie.KonfluxImagesEnabled() { | ||
| prefix = "release-" | ||
| } | ||
|
|
||
| var images []string | ||
| imageRegistry := constants.DefaultRegistry | ||
| images = append(images, fmt.Sprintf("%s/%s%s:%s", imageRegistry, prefix, "main", config.Roxie.Version)) | ||
| images = append(images, fmt.Sprintf("%s/%s%s:%s", imageRegistry, prefix, "central-db", config.Roxie.Version)) | ||
| images = append(images, fmt.Sprintf("%s/%s%s:%s", imageRegistry, prefix, "scanner-v4-db", config.Roxie.Version)) | ||
| images = append(images, fmt.Sprintf("%s/%s%s:%s", imageRegistry, prefix, "scanner-v4", config.Roxie.Version)) | ||
| if !config.Roxie.KonfluxImagesEnabled() { | ||
| prefix = "stackrox-" | ||
|
|
||
| for _, instance := range config.OperatorInstances() { | ||
| prefix := "" | ||
| if instance.KonfluxImagesEnabled() { | ||
| prefix = "release-" | ||
| } | ||
| images = append(images, | ||
| fmt.Sprintf("%s/%s%s:%s", imageRegistry, prefix, "main", instance.Version), | ||
| fmt.Sprintf("%s/%s%s:%s", imageRegistry, prefix, "central-db", instance.Version), | ||
| fmt.Sprintf("%s/%s%s:%s", imageRegistry, prefix, "scanner-v4-db", instance.Version), | ||
| fmt.Sprintf("%s/%s%s:%s", imageRegistry, prefix, "scanner-v4", instance.Version), | ||
| instance.OperatorImage(), | ||
| instance.BundleImage(), | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't quite understand why we have an
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in 20f93e8. Also the other |
||
| ) | ||
| } | ||
| images = append(images, fmt.Sprintf("%s/%s%s:%s", imageRegistry, prefix, "operator", config.Operator.Version)) | ||
| images = append(images, OperatorBundleImage(config)) | ||
|
|
||
| return images | ||
| } | ||
|
|
||
| func OperatorBundleImage(config Config) string { | ||
| imageRegistry := constants.DefaultRegistry | ||
| if config.Roxie.KonfluxImagesEnabled() { | ||
| return fmt.Sprintf("%s/release-operator-bundle:v%s", imageRegistry, config.Operator.Version) | ||
| } | ||
| return fmt.Sprintf("%s/stackrox-operator-bundle:v%s", imageRegistry, config.Operator.Version) | ||
| } | ||
|
mclasmeier marked this conversation as resolved.
|
Uh oh!
There was an error while loading. Please reload this page.