File tree Expand file tree Collapse file tree
chaoscenter/graphql/server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ type SubscriberConfigurations struct {
2020}
2121
2222func 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
Original file line number Diff line number Diff 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"`
You can’t perform that action at this time.
0 commit comments