Skip to content

Commit b5256ed

Browse files
authored
Remove default image as public constants (#172)
1 parent a98040b commit b5256ed

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

controllers/builder/openshiftbuilder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func Test_openshiftBuilderManager_Reconcile(t *testing.T) {
6565
assert.NoError(t, client.Get(context.TODO(), namespacedName, bc))
6666
is := &imgv1.ImageStream{}
6767
assert.NoError(t, client.Get(context.TODO(), namespacedName, is))
68-
assert.Contains(t, *bc.Spec.Source.Dockerfile, "FROM "+workflowdef.GetDefaultImageTag(workflowdef.DefaultWorkflowBuilderImage)+" AS builder")
68+
assert.Contains(t, *bc.Spec.Source.Dockerfile, "FROM "+workflowdef.GetDefaultWorkflowBuilderImageTag()+" AS builder")
6969

7070
// Reconcile
7171
// unfortunately, the fake buildclient doesn't implement the RESTAPI, thus we can't push a new build to it

controllers/workflowdef/image.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323
const (
2424
latestImageTag = "latest"
2525
nightlySuffix = "nightly"
26-
DefaultWorkflowDevModeImage = "quay.io/kiegroup/kogito-swf-devmode"
27-
DefaultWorkflowBuilderImage = "quay.io/kiegroup/kogito-swf-builder"
26+
defaultWorkflowDevModeImage = "quay.io/kiegroup/kogito-swf-devmode"
27+
defaultWorkflowBuilderImage = "quay.io/kiegroup/kogito-swf-builder"
2828
)
2929

3030
// GetWorkflowAppImageNameTag retrieve the tag for the image based on the Workflow based annotation, <workflowid>:latest otherwise
@@ -37,11 +37,11 @@ func GetWorkflowAppImageNameTag(w *v1alpha08.SonataFlow) string {
3737
}
3838

3939
func GetDefaultWorkflowDevModeImageTag() string {
40-
return GetDefaultImageTag(DefaultWorkflowDevModeImage)
40+
return GetDefaultImageTag(defaultWorkflowDevModeImage)
4141
}
4242

4343
func GetDefaultWorkflowBuilderImageTag() string {
44-
return GetDefaultImageTag(DefaultWorkflowBuilderImage)
44+
return GetDefaultImageTag(defaultWorkflowBuilderImage)
4545
}
4646

4747
func GetDefaultImageTag(imgTag string) string {

0 commit comments

Comments
 (0)