Skip to content

Make NICo storage class handling configurable#2034

Open
praveendhawan wants to merge 1 commit into
NVIDIA:mainfrom
praveendhawan:feature/add-optional-storage-class
Open

Make NICo storage class handling configurable#2034
praveendhawan wants to merge 1 commit into
NVIDIA:mainfrom
praveendhawan:feature/add-optional-storage-class

Conversation

@praveendhawan
Copy link
Copy Markdown

Description

Add postgresql.storageClass to the nico-prereqs chart so operators can choose the StorageClass used by the Zalando-managed NICo Postgres cluster.

The default remains local-path-persistent to preserve existing behavior.

Add NICO_MANAGE_DEFAULT_STORAGE_CLASS to setup.sh. By default setup still annotates local-path as the default StorageClass, but operators can set NICO_MANAGE_DEFAULT_STORAGE_CLASS=false to leave an existing cluster default unchanged.

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Related Issues (Optional)

Breaking Changes

  • This PR contains breaking changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Additional Notes

Validated chart rendering with an overridden storage class:

helm template nico-prereqs helm-prereqs --set postgresql.storageClass=rook-ceph-block

Confirmed the rendered Postgres CR contains:

storageClass: "rook-ceph-block"

Existing behavior is preserved unless operators explicitly opt out by setting:

NICO_MANAGE_DEFAULT_STORAGE_CLASS=false

This is useful for clusters where a production StorageClass is already managed outside NICo setup.

@praveendhawan praveendhawan requested review from a team and shayan1995 as code owners June 1, 2026 06:15
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Jun 1, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@praveendhawan praveendhawan force-pushed the feature/add-optional-storage-class branch from 408a791 to 307188b Compare June 1, 2026 06:35
Add postgresql.storageClass to the nico-prereqs chart so operators can choose the
StorageClass used by the Zalando-managed NICo Postgres cluster.

The default remains local-path-persistent to preserve existing behavior.

Add NICO_MANAGE_DEFAULT_STORAGE_CLASS to setup.sh.
By default setup still annotates local-path as the default StorageClass,
but operators can set NICO_MANAGE_DEFAULT_STORAGE_CLASS=false to leave
an existing cluster default unchanged.

Add NICO_STORAGE_CLASS to setup.sh for Vault data and audit PVCs.
The default remains local-path-persistent, while operators can set it to an
existing production StorageClass such as rook-ceph-block.

Signed-off-by: Praveen Dhawan <praveen.dhawan@e2enetworks.com>
@praveendhawan praveendhawan force-pushed the feature/add-optional-storage-class branch from 307188b to e2ec292 Compare June 1, 2026 11:47
@ajf
Copy link
Copy Markdown
Collaborator

ajf commented Jun 1, 2026

/ok to test e2ec292

@ajf
Copy link
Copy Markdown
Collaborator

ajf commented Jun 3, 2026

@praveendhawan I see you use yadm for your dot files as well! I'll have to check them out.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants