Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module github.com/VictoriaMetrics/operator/api
go 1.26.6

require (
github.com/VictoriaMetrics/VictoriaMetrics v1.150.0
github.com/VictoriaMetrics/VictoriaMetrics v1.151.0
github.com/VictoriaMetrics/metricsql v0.87.3
github.com/prometheus/alertmanager v0.34.0
github.com/stretchr/testify v1.12.1
Expand Down
4 changes: 2 additions & 2 deletions api/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ github.com/Masterminds/semver/v3 v3.4.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lpr
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/VictoriaMetrics/VictoriaLogs v1.51.1-0.20260624061259-dc94972a8708 h1:D9/Jzlm3B8PBnrWxg4ft8KYZdG607dV3lpBfPCoiJD8=
github.com/VictoriaMetrics/VictoriaLogs v1.51.1-0.20260624061259-dc94972a8708/go.mod h1:H4sDxcvk6OmC6zOt++IlDyrwfbn4F1eSLwMpR+kpRt8=
github.com/VictoriaMetrics/VictoriaMetrics v1.150.0 h1:HyHgg1neFIM/+Db3XXUNditq+Iu9nBc1UCIZ3M09eTE=
github.com/VictoriaMetrics/VictoriaMetrics v1.150.0/go.mod h1:Mp7qEBDOXwP50gC93cF8wJmaGjTFSJP2WA6dRtMI7qU=
github.com/VictoriaMetrics/VictoriaMetrics v1.151.0 h1:Svzb/7gPYbzmQnvLjab8h1Jl9olB76mokDE7ykvF/ro=
github.com/VictoriaMetrics/VictoriaMetrics v1.151.0/go.mod h1:Mp7qEBDOXwP50gC93cF8wJmaGjTFSJP2WA6dRtMI7qU=
github.com/VictoriaMetrics/easyproto v1.2.0 h1:FJT9uNXA2isppFuJErbLqD306KoFlehl7Wn2dg/6oIE=
github.com/VictoriaMetrics/easyproto v1.2.0/go.mod h1:QlGlzaJnDfFd8Lk6Ci/fuLxfTo3/GThPs2KH23mv710=
github.com/VictoriaMetrics/metrics v1.44.0 h1:Fr8yqQSV+ZfYaDD/anqk1E8e9YPgfleSleJmAI0M0Tw=
Expand Down
6 changes: 5 additions & 1 deletion docs/config-reloader-flags.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/VictoriaMetrics/operator

go 1.26.6
go 1.27.1

require (
github.com/Masterminds/semver/v3 v3.5.0
github.com/VictoriaMetrics/VictoriaMetrics v1.150.0
github.com/VictoriaMetrics/VictoriaMetrics v1.151.0
github.com/VictoriaMetrics/metrics v1.44.0
github.com/VictoriaMetrics/metricsql v0.87.3
github.com/VictoriaMetrics/operator/api v0.74.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ github.com/Masterminds/semver/v3 v3.5.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lpr
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/VictoriaMetrics/VictoriaLogs v1.51.1-0.20260624061259-dc94972a8708 h1:D9/Jzlm3B8PBnrWxg4ft8KYZdG607dV3lpBfPCoiJD8=
github.com/VictoriaMetrics/VictoriaLogs v1.51.1-0.20260624061259-dc94972a8708/go.mod h1:H4sDxcvk6OmC6zOt++IlDyrwfbn4F1eSLwMpR+kpRt8=
github.com/VictoriaMetrics/VictoriaMetrics v1.150.0 h1:HyHgg1neFIM/+Db3XXUNditq+Iu9nBc1UCIZ3M09eTE=
github.com/VictoriaMetrics/VictoriaMetrics v1.150.0/go.mod h1:Mp7qEBDOXwP50gC93cF8wJmaGjTFSJP2WA6dRtMI7qU=
github.com/VictoriaMetrics/VictoriaMetrics v1.151.0 h1:Svzb/7gPYbzmQnvLjab8h1Jl9olB76mokDE7ykvF/ro=
github.com/VictoriaMetrics/VictoriaMetrics v1.151.0/go.mod h1:Mp7qEBDOXwP50gC93cF8wJmaGjTFSJP2WA6dRtMI7qU=
github.com/VictoriaMetrics/easyproto v1.2.0 h1:FJT9uNXA2isppFuJErbLqD306KoFlehl7Wn2dg/6oIE=
github.com/VictoriaMetrics/easyproto v1.2.0/go.mod h1:QlGlzaJnDfFd8Lk6Ci/fuLxfTo3/GThPs2KH23mv710=
github.com/VictoriaMetrics/metrics v1.44.0 h1:Fr8yqQSV+ZfYaDD/anqk1E8e9YPgfleSleJmAI0M0Tw=
Expand Down
13 changes: 9 additions & 4 deletions internal/controller/operator/factory/vmalert/rules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,6 @@ func TestCreateOrUpdateRuleConfigMaps(t *testing.T) {
func TestRuleRebalance(t *testing.T) {
ctx := context.Background()

origLimit := config.MustGetBaseConfig().ConfigDataBudgetBytes
config.MustGetBaseConfig().ConfigDataBudgetBytes = 90
defer func() { config.MustGetBaseConfig().ConfigDataBudgetBytes = origLimit }()

mkRule := func(ns, name, recordName string) *vmv1beta1.VMRule {
return &vmv1beta1.VMRule{
ObjectMeta: metav1.ObjectMeta{Name: name, Namespace: ns},
Expand All @@ -361,6 +357,15 @@ func TestRuleRebalance(t *testing.T) {
}
}

singleGroupData, err := yaml.Marshal([]vmv1beta1.RuleGroup{mkRule("default", "rule-x", "job:x:total").Spec.Groups[0]})
assert.NoError(t, err)
singleGroupCompressed, err := build.GzipConfig(singleGroupData)
assert.NoError(t, err)

origLimit := config.MustGetBaseConfig().ConfigDataBudgetBytes
config.MustGetBaseConfig().ConfigDataBudgetBytes = len(singleGroupCompressed)
defer func() { config.MustGetBaseConfig().ConfigDataBudgetBytes = origLimit }()

ns := "default"
cr := &vmv1beta1.VMAlert{
ObjectMeta: metav1.ObjectMeta{Name: "recording", Namespace: ns},
Expand Down