-
Notifications
You must be signed in to change notification settings - Fork 181
Description
Describe the bug
Unable to re-install/upgrade the helm chart as the STS is getting patched for persistentVolumeClaimRetentionPolicy .
spec:
persistentVolumeClaimRetentionPolicy:
whenDeleted: Retain
whenScaled: Retain
CRD:
sumologic-kubernetes-collection/deploy/helm/sumologic/crds/crd-opentelemetrycollector.yaml
Line 6953 in e7b1392
persistentVolumeClaimRetentionPolicy: |
Template:
sumologic-kubernetes-collection/deploy/helm/sumologic/templates/logs/otelcol/statefulset.yaml
Line 20 in e7b1392
whenScaled: {{ .Values.metadata.logs.statefulset.persistentVolumeClaimRetentionPolicywhenScaled }} |
Logs
Error: UPGRADE FAILED: failed to create patch: unable to find api field in struct StatefulSetSpec for the json field "persistentVolumeClaimRetentionPolicy" && failed to create patch: unable to find api field in struct StatefulSetSpec for the json field "persistentVolumeClaimRetentionPolicy"
Command used to install/upgrade Collection
helm upgrade --install --wait --timeout 600s -f values.yaml -n sumologic sumologic-release-name sumologic/sumologic --version 4.12.0 --create-namespace
Configuration Configuration used for Collection e.g. user-values.yaml for helm.
To Reproduce Steps to reproduce the behavior.
Upgrade the helm chart with minor changes to otel logs
Expected behavior
Helm release should upgrade without any issue
Environment (please complete the following information):
Production
- Collection version (e.g.
helm ls -n sumologic
):
sumologic-stage-ee sumologic 2 2025-03-07 14:38:58.553504137 +0000 UTC failed sumologic-4.12.0 4.12.0 - Kubernetes version (e.g.
kubectl version
): 1.31 - Cloud provider: aws
- Others:
Anything else do we need to know Add any other context about the problem here, e.g. issue happens only occasionally.