Skip to content

Commit

Permalink
feat: migrate zeebe's backup api from /backups to /backup-runtime (#617)
Browse files Browse the repository at this point in the history
Updates the actuator endpoints to match
camunda/camunda#24456

closes #616
  • Loading branch information
entangled90 authored Nov 19, 2024
2 parents 90d9985 + 1ea9c6f commit 25fc215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go-chaos/cmd/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func takeBackup(flags *Flags) error {

port, closePortForward := k8Client.MustGatewayPortForward(0, 9600)
defer closePortForward()
url := fmt.Sprintf("http://localhost:%d/actuator/backups/%s", port, flags.backupId)
url := fmt.Sprintf("http://localhost:%d/actuator/backup-runtime/%s", port, flags.backupId)
resp, err := http.Post(url, "", nil)
if err != nil {
return err
Expand Down Expand Up @@ -336,7 +336,7 @@ func restoreEnvFromSfs(flags *Flags, sfs *apps.StatefulSet) []core.EnvVar {
}

func getBackupStatus(port int, backupId string) (*BackupStatus, error) {
url := fmt.Sprintf("http://localhost:%d/actuator/backups/%s", port, backupId)
url := fmt.Sprintf("http://localhost:%d/actuator/backup-runtime/%s", port, backupId)
resp, err := http.Get(url)
if err != nil {
return nil, err
Expand Down

0 comments on commit 25fc215

Please sign in to comment.