Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation Error: unknown time zone. Add tzdata pkg to Dockerfile #3

Open
jlaberge-league opened this issue May 16, 2023 · 0 comments

Comments

@jlaberge-league
Copy link

When running this action against alertmanager configs that contain time_intervals, and the location is set, the validation will fail as the timezone is not known.

The alpine:3 docker image does not contain tzdata, so the Dockerfile should add this package alongside the others.

# Without tzdata package
> amtool check-config alertmanager.yaml
Checking 'alertmanager.yaml'  FAILED: unknown time zone America/New_York

amtool: error: failed to validate 1 file(s)

# Add tzdata package
> apk add tzdata
(1/1) Installing tzdata (2023c-r1)
OK: 46 MiB in 28 packages
> amtool check-config alertmanager.yaml
Checking 'alertmanager.yaml'  SUCCESS
Found:
 - global config
 - route
 - 1 inhibit rules
 - 71 receivers
 - 1 templates
  SUCCESS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant