Skip to content

Commit 2f2ae26

Browse files
Update charts/victoria-metrics-operator/CHANGELOG.md
Co-authored-by: Hui Wang <[email protected]>
1 parent 32e4b56 commit 2f2ae26

File tree

13 files changed

+3217
-250
lines changed

13 files changed

+3217
-250
lines changed

charts/victoria-metrics-k8s-stack/values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ argocdReleaseOverride: ""
2626
victoria-metrics-operator:
2727
enabled: true
2828
crds:
29-
upgrade:
30-
enabled: false
29+
plain: true
3130
cleanup:
3231
enabled: true
3332
image:
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{{- $files := .Files }}
2-
{{- $name := .Chart.Name }}
32
{{- $crds := $files.Get "crd.yaml" | splitList "---" }}
43
{{- $extra := dict "metadata" (dict "annotations" .Values.annotations "labels" .Values.labels) -}}
54
{{- range $crds }}
65
{{- $crd := merge (fromYaml .) $extra }}
7-
{{- if hasPrefix $name $crd.metadata.name }}
8-
{{- range $attrKey, $attrValue := $crd }}
9-
{{- $attrKey }}: {{ toJson $attrValue }}
10-
{{- printf "\n" -}}
11-
{{ end }}
12-
{{- print "\n---\n" }}
13-
{{- end }}
6+
{{- range $attrKey, $attrValue := $crd }}
7+
{{- $attrKey }}: {{ toJson $attrValue }}
8+
{{- printf "\n" -}}
9+
{{ end }}
10+
{{- print "\n---\n" }}
1411
{{- end }}
Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
1-
# -- operator common CRD annotations
2-
annotations: &annotations {}
3-
vm:
4-
# -- Annotations for VM-prefixed CRDs
5-
annotations: *annotations
6-
vl:
7-
# -- Annotations for VL-prefixed CRDs
8-
annotations: *annotations
9-
vt:
10-
# -- Annotations for VT-prefixed CRDs
11-
annotations: *annotations
1+
# -- VM operator CRD annotations
2+
annotations: {}

charts/victoria-metrics-operator/CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Next release
22

3-
**Update note 1**: CRD template was replaced by CRD upgrade job. `Values.crds.plain` property was removed. Consider replacing it with `.Values.crds.upgrade.enabled: true` if automatic CRD upgrade is expected.
4-
**Update note 2**: Replaced `.Values.admissionWebhooks.enabledCRDValidation` map with `.Values.admissionWebhooks.disabledFor` list of CRD names to disable validation for.
3+
**Update node 1**: CRDs generated with `.Values.crds.plain: false` are now specless. For this case operator is fully responsible for VM specs validation. This was done to decrease helm release secret size limit. This change affects `kubectl explain` users and tools, that are rely on CRD specs during input data validation. If this behaviour is not acceptable consider using either `victoria-metrics-operator-crds` chart for CRDs management or set `.Values.crds.plain: true` to use plain CRDs.
54

65
- Added `securityContext` to the `cleanup` job.
7-
- Removed `.Values.crds.plain` property, CRDs as templates are not supported by chart anymore. Added upgrade job instead, which is enabled by `.Values.crds.upgrade.enabled` property.
8-
- Replaced `.Values.admissionWebhooks.enabledCRDValidation` with `.Values.admissionWebhooks.disabledFor` list of CRD names to disable validation for.
6+
- Make CRDs, that are rendered using template, specless. This allows to decrease size of k8s secret significantly. If this option is not acceptable for you consider installing CRDs separately using `victoria-metrics-operator-crds` chart or set `.Values.crds.plain: true` and `.Values.crds.upgrade.enabled: true` to use plain CRDs with upgrade job instead.
7+
- Replaced `.Values.admissionWebhooks.enabledCRDValidation` with `.Values.admissionWebhooks.disabledFor` list of CRD names to disable validation for. This change should not affect anyone, since before condition with `.Values.admissionWebhooks.enabledCRDValidation` was not working at all.
8+
- Added CRDs upgrade job, which is only available only for plain CRDs (`.Values.crds.plain: true`). See [#2334](https://github.com/VictoriaMetrics/helm-charts/issues/2334).
99

1010
## 0.53.0
1111

charts/victoria-metrics-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ home: https://github.com/VictoriaMetrics/operator
66
sources:
77
- https://github.com/VictoriaMetrics/helm-charts
88
- https://github.com/VictoriaMetrics/operator
9-
version: 0.53.0
9+
version: 0.54.0
1010
appVersion: v0.63.0
1111
icon: https://avatars.githubusercontent.com/u/43720803?s=200&v=4
1212
kubeVersion: ">=1.25.0-0"
@@ -39,4 +39,4 @@ dependencies:
3939
repository: https://victoriametrics.github.io/helm-charts
4040
- name: crds
4141
version: "0.0.*"
42-
condition: crds.enabled
42+
condition: crds.plain
File renamed without changes.

0 commit comments

Comments
 (0)