Skip to content

Commit

Permalink
SRVLOGIC-390: Adjust cors configuration for the dev profile deploymen…
Browse files Browse the repository at this point in the history
…ts, and JS and DI deployments (#82)

- property in the application-dev.properties can't start with %dev
  • Loading branch information
wmedvede authored Sep 23, 2024
1 parent bf8e67e commit 4b9e6dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion controllers/profiles/common/properties/managed.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func NewManagedPropertyHandler(workflow *operatorapi.SonataFlow, platform *opera
}

func setDevProfileProperties(props *properties.Properties) {
props.Set(fmt.Sprintf("%%dev.%s", constants.QuarkusDevUICorsEnabled), "false")
props.Set(constants.QuarkusDevUICorsEnabled, "false")
}

// ApplicationManagedProperties immutable default application properties that can be used with any workflow based on Quarkus.
Expand Down
6 changes: 3 additions & 3 deletions controllers/profiles/common/properties/managed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ func generateJobServiceWorkflowDevProperties() *properties.Properties {
props.Set("kogito.events.processdefinitions.enabled", "false")
props.Set("kogito.events.processinstances.enabled", "false")
props.Set("kogito.events.usertasks.enabled", "false")
props.Set("%dev.quarkus.dev-ui.cors.enabled", "false")
props.Set("quarkus.dev-ui.cors.enabled", "false")
props.Sort()
return props
}
Expand Down Expand Up @@ -523,7 +523,7 @@ func generateDataIndexWorkflowDevProperties() *properties.Properties {
props.Set("kogito.events.processdefinitions.enabled", "false")
props.Set("kogito.events.processinstances.enabled", "false")
props.Set("kogito.events.usertasks.enabled", "false")
props.Set("%dev.quarkus.dev-ui.cors.enabled", "false")
props.Set("quarkus.dev-ui.cors.enabled", "false")
props.Sort()
return props
}
Expand Down Expand Up @@ -581,7 +581,7 @@ func generateDataIndexAndJobServiceWorkflowDevProperties() *properties.Propertie
props.Set("kogito.events.processdefinitions.enabled", "false")
props.Set("kogito.events.processinstances.enabled", "false")
props.Set("kogito.events.usertasks.enabled", "false")
props.Set("%dev.quarkus.dev-ui.cors.enabled", "false")
props.Set("quarkus.dev-ui.cors.enabled", "false")
props.Sort()
return props
}
Expand Down

0 comments on commit 4b9e6dc

Please sign in to comment.