Skip to content

Commit

Permalink
[Bugfix] Fix Maintenance Action plan (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajanikow authored Apr 13, 2021
1 parent 3886e15 commit 9af0fec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
- Bump Kubernetes Dependencies to 1.19.x
- Add ArangoMember status propagation
- Add ShutdownMethod option for members
- Fix Maintenance Plan actions

## [1.1.6](https://github.com/arangodb/kube-arangodb/tree/1.1.6) (2021-03-02)
- Add ArangoMember Resource and required RBAC rules
Expand Down
2 changes: 1 addition & 1 deletion pkg/deployment/reconcile/plan_builder_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func createMaintenanceManagementPlan(ctx context.Context,

if m.Enabled() && !spec.Database.GetMaintenance() {
log.Info().Msgf("Disabling maintenance mode")
return api.Plan{api.NewAction(api.ActionTypeEnableMaintenance, api.ServerGroupUnknown, "")}
return api.Plan{api.NewAction(api.ActionTypeDisableMaintenance, api.ServerGroupUnknown, "")}
}

return nil
Expand Down

0 comments on commit 9af0fec

Please sign in to comment.