This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
UpdateTZ - Init container to make sure that tz db is up to date #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Although I couldn't prove yet, this should fix #24 because this PR introduces updatetz to be an additional init container and the init container ensures that the Time Zone database is updated at least once before cronjobber starts.
I've updated the version to 0.1.1 but the docker image is not built (I presume the owner will build it).
Below is the outcome of the test I performed for this PR (some details are masked):
describe pod after deployment
cronjobber logs
Note that;
1- init-updatetz updates the local time zone database at 18:38:07
2- updatetz says the local time zone database is already up to date at 18:38:11.
3- cronjobber starts at 18:38:09, which is post init-updatetz