ibm-apiconnect / v10-postmortem

Log collection tool for API Connect v10.
Apache License 2.0
4 stars 27 forks source link

Warn if postmortem scripts are out of date #107

Closed bhavnitpatel closed 1 year ago

bhavnitpatel commented 1 year ago

Hash the latest postmortem scripts and compare with the local one to warn the user if they have an out of date script. This should hopefully push users towards using the latest postmortem scripts.

e.g.

❯ ./generate_postmortem.sh --specific-namespace=bhav 
Postmortem Version: 13, Date: Tue Oct 17 22:48:14 UTC 2023, URL: https://github.com/ibm-apiconnect/v10-postmortem/blob/001e835045cfddd3b49aa666edc60c38320f9cf6/generate_postmortem.sh
using [oc] command for cluster cli
---------------------------------------------------------
NOTE: There is a newer version of generate_postmortem.sh available. Please download the latest postmortem script from https://github.com/ibm-apiconnect/v10-postmortem so that up-to-date information is gathered.
WARNING: If you don't use the latest generate_postmortem.sh script, IBM support may ask you to download the latest generate_postmortem.sh script and run it again.
---------------------------------------------------------
Generating postmortem, please wait...
evanskinner commented 1 year ago

LGTM