Skip to content

Commit d161d24

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

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
@@ -21,11 +21,11 @@ type SubscriberConfigurations struct {
2121

2222
func GetEndpoint(host string) (string, error) {
2323
// returns endpoint from env, if provided by user
24-
if utils.Config.ChaosCenterUiEndpoint != "" {
25-
return utils.Config.ChaosCenterUiEndpoint + "/api/query", nil
24+
if utils.Config.ChaosGraphQLEndpoint != "" {
25+
return utils.Config.ChaosGraphQLEndpoint + "/query", nil
2626
}
2727

28-
return host + "/api/query", nil
28+
return host + "/query", nil
2929
}
3030

3131
func GetK8sInfraYaml(host string, infra dbChaosInfra.ChaosInfra) ([]byte, error) {

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)