bcgov / DITP-DevOps

Digital Identity and Trust Program Team's DevOps Documentation Repository
Apache License 2.0
2 stars 5 forks source link

Update Sandbox banner to include next reset date #126

Closed esune closed 10 months ago

esune commented 11 months ago

Update the sandbox reset/redeploy GHA to include the top banner message.

The message should be in the format: Sandbox. This environment will be next reset on Nov 1st 2023 @ 2am PST, or something similarly meaningful.

swcurran commented 11 months ago

Suggest instead: BC Gov Traction Sandbox: This environment is normally reset on the 1st and 15th of each month. It was last reset on January 1, 2024., where the date at the end is dynamically inserted. Its best to know the date of the last reset because:

esune commented 11 months ago

My only concern is with the verbosity of the message, since we will have limited space in the banner (unless we implement text scrolling too, that is).

loneil commented 10 months ago

Is this to programmatically know the previous or next reset date? The message will pull from the values file, which should be represented in the file in the repo. So would someone update it every 2 weeks manually, or is there intended to be a mechanism where the GHA that does the reset programmatically commits a change to sandbox values or something else like that?

Would rigging any of that be worth the work over just using a generic message?

esune commented 10 months ago

If we can be more specific about last/next reset it would be great. I was thinking we could use a bash script to generate the message string (with the dates) and then inject it OVER the values file using the --set-string argument

WadeBarnes commented 10 months ago

Can that be updated automatically by the GitHub workflows that perform the reset? I see that has already been suggested.

esune commented 10 months ago

Can that be updated automatically by the GitHub workflows that perform the reset? I see that has already been suggested.

Yes, that is the idea: the workflow compiles the new string value and sets it for the deployment using --set-string when installing the chart.

popkinj commented 10 months ago

Couldn't we just have a constant like... Reset every Sunday night at 11pm... Then have the front end do the math of "Will reset in 2 days and 4 hours"?

popkinj commented 10 months ago

Update the sandbox reset/redeploy GHA to include the top banner message.

The message should be in the format: Sandbox. This environment will be next reset on Nov 1st 2023 @ 2am PST, or something similarly meaningful.

Is the reset always at 2am?