Skip to content

Commit 110741e

Browse files
authored
Serverless: switch to _reset-internal-credentials. (#4202)
The previous _reset-credentials endpoint will soon return a less privileged user. The internal variant returns one with operator privileges to allow inspect cluster health for testing purposes.
1 parent d8f5134 commit 110741e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/testing/ess/serverless.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ func (srv *ServerlessClient) WaitForKibana(ctx context.Context) error {
250250

251251
// ResetCredentials resets the credentials for the given ESS instance
252252
func (srv *ServerlessClient) ResetCredentials(ctx context.Context) (CredResetResponse, error) {
253-
resetURL := fmt.Sprintf("%s/api/v1/serverless/projects/%s/%s/_reset-credentials", serverlessURL, srv.projectType, srv.proj.ID)
253+
resetURL := fmt.Sprintf("%s/api/v1/serverless/projects/%s/%s/_reset-internal-credentials", serverlessURL, srv.projectType, srv.proj.ID)
254254

255255
resetHandler, err := http.NewRequestWithContext(ctx, "POST", resetURL, nil)
256256
if err != nil {

0 commit comments

Comments
 (0)