Skip to content

Commit dc0f494

Browse files
committed
fix: Update graphQL endpoint configuration to use ChaosGraphQLEndpoint (#5369)
Signed-off-by: Ramez Medhat <iramezdev@gmail.com>
1 parent 22f6071 commit dc0f494

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

chaoscenter/graphql/server/pkg/chaos_infrastructure/infra_utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ type SubscriberConfigurations struct {
2020
}
2121

2222
func GetEndpoint(host string) (string, error) {
23-
const apiPath = "/api/query"
23+
const apiPath = "/query"
2424
// returns endpoint from env, if provided by user
25-
if utils.Config.ChaosCenterUiEndpoint != "" {
26-
return strings.TrimRight(utils.Config.ChaosCenterUiEndpoint, "/") + apiPath, nil
25+
if utils.Config.ChaosGraphQLEndpoint != "" {
26+
return strings.TrimRight(utils.Config.ChaosGraphQLEndpoint, "/") + apiPath, nil
2727
}
2828

2929
return strings.TrimRight(host, "/") + apiPath, nil

chaoscenter/graphql/server/utils/variables.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ type Configuration struct {
2020
ContainerRuntimeExecutor string `required:"true" split_words:"true"`
2121
WorkflowHelperImageVersion string `required:"true" split_words:"true"`
2222
ChaosCenterUiEndpoint string `split_words:"true" default:"https://localhost:8080"`
23+
ChaosGraphQLEndpoint string `split_words:"true" default:"http://chaos-litmus-server-service:9002"`
2324
TlsCertB64 string `split_words:"true"`
2425
LitmusAuthGrpcEndpoint string `split_words:"true" default:"localhost"`
2526
LitmusAuthGrpcPort string `split_words:"true" default:"3030"`

0 commit comments

Comments
 (0)