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 @@ -21,11 +21,11 @@ type SubscriberConfigurations struct {
2121
2222func 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
3131func GetK8sInfraYaml (host string , infra dbChaosInfra.ChaosInfra ) ([]byte , error ) {
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