Skip to content

Commit 25a43d4

Browse files
authored
Merge pull request #663 from slok/slok/prepare-v0130
Prepare for v0.13.0
2 parents 25c5ed0 + 327e2d1 commit 25a43d4

File tree

10 files changed

+6
-13
lines changed

10 files changed

+6
-13
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
- Core SLO validation and SLO rules generation migrated to SLO plugins.
1010
- (BREAKING) `--sli-plugins-path`, `--slo-plugins-path`, `-m` args and it's env vars `SLOTH_SLI_PLUGINS_PATH`and `SLOTH_SLO_PLUGINS_PATH` have been removed in favor or `--plugins-path`, `-p` and it's env var `SLOTH_PLUGINS_PATH` that discovers and loads SLI and SLO plugins with a single flag.
1111
- Simplify validation and improve validation message by using custom logic instead of `go-playground/validator`.
12-
- (BREAKING) `--disable-optimized-rules` flag and associated env var has been removed.
12+
- (BREAKING) `--disable-optimized-rules` flag and associated env var has been removed.
13+
- (BREAKING) Helm chart has removed the option for disabling optimized rules.
1314
- Update to Kubernetes v1.34.
1415
- Update to Go v1.25.
1516

deploy/kubernetes/helm/sloth/templates/deployment.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ spec:
6161
{{- with .Values.sloth.defaultSloPeriod }}
6262
- --default-slo-period={{ . }}
6363
{{- end }}
64-
{{- if not .Values.sloth.optimizedRules }}
65-
- --disable-optimized-rules
66-
{{- end }}
6764
{{- if .Values.customSloConfig.enabled }}
6865
- --slo-period-windows-path={{ .Values.customSloConfig.path }}
6966
{{- end }}

deploy/kubernetes/helm/sloth/tests/testdata/output/deployment_custom.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ spec:
5252
- --extra-labels=k1=v1
5353
- --extra-labels=k2=v2
5454
- --plugins-path=/plugins
55-
- --disable-optimized-rules
5655
- --logger=default
5756
ports:
5857
- containerPort: 8081

deploy/kubernetes/helm/sloth/tests/testdata/output/deployment_custom_no_extras.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ spec:
5151
- --label-selector=x=y,z!=y
5252
- --extra-labels=k1=v1
5353
- --extra-labels=k2=v2
54-
- --disable-optimized-rules
5554
- --logger=default
5655
securityContext:
5756
allowPrivilegeEscalation: false

deploy/kubernetes/helm/sloth/tests/testdata/output/deployment_custom_slo_config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ spec:
5252
- --label-selector=x=y,z!=y
5353
- --extra-labels=k1=v1
5454
- --extra-labels=k2=v2
55-
- --disable-optimized-rules
5655
- --slo-period-windows-path=/windows
5756
- --logger=default
5857
ports:

deploy/kubernetes/helm/sloth/tests/testdata/output/deployment_default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
serviceAccountName: sloth
3333
containers:
3434
- name: sloth
35-
image: ghcr.io/slok/sloth:v0.12.0
35+
image: ghcr.io/slok/sloth:v0.13.0
3636
args:
3737
- kubernetes-controller
3838
- --plugins-path=/plugins

deploy/kubernetes/helm/sloth/tests/values_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ func customValues() msi {
2727
"workers": 99,
2828
"labelSelector": `x=y,z!=y`,
2929
"namespace": "somens",
30-
"optimizedRules": false,
3130
"extraLabels": msi{
3231
"k1": "v1",
3332
"k2": "v2",

deploy/kubernetes/helm/sloth/values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ labels: {}
66
image:
77
registry: ghcr.io # This field cannot be empty if global.imageRegistry is also empty.
88
repository: slok/sloth
9-
tag: v0.12.0
9+
tag: v0.13.0
1010

1111
# -- Container resources: requests and limits for CPU, Memory
1212
resources:
@@ -28,7 +28,6 @@ sloth:
2828
namespace: "" # The namespace where sloth will the CRs to process.
2929
extraLabels: {} # Labels that will be added to all the generated SLO Rules.
3030
defaultSloPeriod: "" # The slo period used by sloth (e.g. 30d).
31-
optimizedRules: true # Reduce prom load for calculating period window burnrates.
3231
debug:
3332
enabled: false
3433
# Could be: default or json

deploy/kubernetes/raw/sloth-with-common-plugins.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ spec:
8585
serviceAccountName: sloth
8686
containers:
8787
- name: sloth
88-
image: ghcr.io/slok/sloth:v0.12.0
88+
image: ghcr.io/slok/sloth:v0.13.0
8989
args:
9090
- kubernetes-controller
9191
- --plugins-path=/plugins

deploy/kubernetes/raw/sloth.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ spec:
8585
serviceAccountName: sloth
8686
containers:
8787
- name: sloth
88-
image: ghcr.io/slok/sloth:v0.12.0
88+
image: ghcr.io/slok/sloth:v0.13.0
8989
args:
9090
- kubernetes-controller
9191
- --logger=default

0 commit comments

Comments
 (0)