Skip to content

Conversation

@shreyaskm623
Copy link
Contributor

This PR adds support for -

  • Custom path configuration via CrdbWalFailoverSpec.Path field
  • Handling migration of WAL failover settings from Helm StatefulSets to the operator based deployments.

@shreyaskm623 shreyaskm623 self-assigned this Sep 10, 2025
@shreyaskm623 shreyaskm623 marked this pull request as ready for review October 3, 2025 10:46
Copy link
Collaborator

@prafull01 prafull01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on suggested changes, the test cases will also change.

# size: "25Gi"
#
# storageClassName defines the StorageClass for the PVC.
# If not set, the default provisioner will be chosen (gp2 on AWS, standard on GKE).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per our discussion it is not true. When left empty in CockroachDB operator it doesn't pickup the default storage class. So we have to take an input from user if enabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prafull01 In case of a fresh deployment - if the storageClassName is not provided , it picks up the default provisioner , only in case of migration , since the storageClassName would already be present , we not giving the className in the spec would cause problems. So populating the storageClassName is important during migration and not mandatory for fresh deployments.

Copy link
Collaborator

@prafull01 prafull01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an e2e tests for WAL failover in migrate

@shreyaskm623 shreyaskm623 force-pushed the walfailover-custom-path branch from 87758a0 to 2b13c23 Compare October 15, 2025 07:39
shreyaskm623 and others added 2 commits October 15, 2025 13:26
- Fixed function signatures that were malformed during conflict resolution
- Corrected indentation and bracket placement in helpers.go and helpers_test.go
- Added missing import for k8s.io/apimachinery/pkg/api/resource in test file
- All tests now pass successfully
- Both PCR and WAL failover functionality preserved and working

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@shreyaskm623 shreyaskm623 force-pushed the walfailover-custom-path branch from 2b13c23 to c1ab842 Compare October 15, 2025 08:04
pullPolicy: IfNotPresent
# tag is the image tag.
tag: "6f62639e9fee99d99b0387a9dccda84daa1a489b592b008f2f354ec57eae09ac"
tag: "496a3d0b4b4a38637d97299aec52646c41eb32380c56b425376c8dd262c8b882"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your Image is not correct, that is why test is not working. Check the registry and repository as well

@shreyaskm623
Copy link
Contributor Author

I'll close this PR in favour of : #565

I have addressed all the comments added above in the new PR , if there are any discussions we can continue in the newer one.

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