Skip to content

BUG: preserve OpenSearch PVC template labels across chart upgrades #230

Closed

Description

@ramioooz

Problem

Upgrading the existing OpenSearch SIT release fails before the credentials hook runs because Kubernetes rejects a change to the StatefulSet volumeClaimTemplates metadata.

Root Cause

The chart includes the chart version in the PVC template label helm.sh/chart. Bumping the chart from 0.1.0 to 0.1.1 changes an immutable StatefulSet field even though the persistent volume configuration is unchanged.

Scope

  • Keep the existing PVC template labels stable across OpenSearch chart upgrades.
  • Preserve the chart version label on the mutable StatefulSet metadata.
  • Add render validation for the stable PVC template label.
  • Do not replace the StatefulSet or delete the existing SIT PVC.

Acceptance Criteria

  • An in-place helm upgrade does not attempt to mutate immutable PVC template metadata.
  • The existing data-opensearch-0 PVC remains bound and reusable.
  • OpenSearch hook and Fluent Bit validations continue to pass.

Parent: TASK: Deploy OpenSearch and OpenSearch Dashboards in SIT (#93)
Sprint: Sprint 6 - Operational Resilience and Observability
Assignee: ramioooz

Activity

  1. self-assigned this
    on Sep 5, 2026
  2. added theissue type on Sep 5, 2026
  3. ramioooz commented on Sep 5, 2026

    @ramioooz
    MemberAuthor

    Completion evidence after merged infra-sit#36: the OpenSearch StatefulSet upgrade completed without attempting to mutate the existing PVC template; data-opensearch-0 remained Bound and OpenSearch/OpenSearch Dashboards stayed Ready in digital-bank-sit. The linked implementation and rollout are complete.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions