Skip to content

Upgrade alertmanager to v0.31.1#7267

Open
friedrichg wants to merge 9 commits intomasterfrom
upgrade-alertmanager-31
Open

Upgrade alertmanager to v0.31.1#7267
friedrichg wants to merge 9 commits intomasterfrom
upgrade-alertmanager-31

Conversation

@friedrichg
Copy link
Member

@friedrichg friedrichg commented Feb 14, 2026

What this PR does: Upgrade alertmanager to v0.31.1

Continues #7221

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
@friedrichg friedrichg force-pushed the upgrade-alertmanager-31 branch from 749ba20 to e97f2ee Compare February 14, 2026 16:35
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
@friedrichg friedrichg force-pushed the upgrade-alertmanager-31 branch from db6114a to 3826076 Compare February 15, 2026 00:15
}
} else if strings.Contains(t.PkgPath(), "alertmanager/config") &&
strings.HasSuffix(t.Name(), "Config") {
// Unhandled config type - fail to ensure we don't miss new types.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We were missing configuration types before. We want to make sure they are all validated in the future after upgrades

if cfg.BasicAuth != nil && cfg.BasicAuth.PasswordFile != "" {
return errPasswordFileNotAllowed
}
if cfg.BasicAuth != nil && cfg.BasicAuth.UsernameFile != "" {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check was missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant