Created
November 18, 2022 13:36
-
-
Save miekg/32a6c3bc1cab3d20d49605df57832954 to your computer and use it in GitHub Desktop.
gitopper run : https://github.com/miekg/gitopper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check current service | |
% ./gitopperctl list service @localhost grafana-server | |
SERVICE HASH STATE INFO SINCE | |
grafana-server 606eb576c1b91248e4c1c4cd0d720f27ac0deb70 OK 0001-01-01 00:00:00 +0000 UTC | |
# oh no, we need to rollback | |
% ./gitopperctl state rollback @localhost grafana-server 8df1b3db679253ba501d594de285cc3e9ed308ed | |
# check | |
% ./gitopperctl list service @localhost grafana-server | |
SERVICE HASH STATE INFO SINCE | |
grafana-server 606eb576c1b91248e4c1c4cd0d720f27ac0deb70 ROLLBACK 8df1b3db679253ba501d594de285cc3e9ed308ed 2022-11-18 13:28:42.619731556 +0000 UTC | |
# check state, rollback done. Now state is FREEZE | |
% ./gitopperctl list service @localhost grafana-server | |
SERVICE HASH STATE INFO SINCE | |
grafana-server 8df1b3db679253ba501d594de285cc3e9ed308ed FREEZE Rolled back to: 8df1b3db679253ba501d594de285cc3e9ed308ed 2022-11-18 13:29:17.92401403 +0000 UTC | |
# unfreeze and let it pick up changes again | |
% ./gitopperctl state unfreeze @localhost grafana-server | |
# check the service | |
% ./gitopperctl list service @localhost grafana-server | |
SERVICE HASH STATE INFO SINCE | |
grafana-server 8df1b3db679253ba501d594de285cc3e9ed308ed OK 2022-11-18 13:29:44.824004812 +0000 UTC | |
# and updated to new hash | |
% ./gitopperctl list service @localhost grafana-server | |
SERVICE HASH STATE INFO SINCE | |
grafana-server 606eb576c1b91248e4c1c4cd0d720f27ac0deb70 OK 2022-11-18 13:29:44.824004812 +0000 UTC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment