-
Notifications
You must be signed in to change notification settings - Fork 448
Bump go requirements to 1.24, refactor leadership, fixing k8s code to support latest versions, tests on github actions #926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ctrix
wants to merge
90
commits into
sorintlab:master
Choose a base branch
from
ctrix:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,445,808
−1,275
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…sion, when kube-api has a downtime, there will be a probability of connection timeout, and then can not select the master Signed-off-by: bingbing ma <[email protected]>
Migrated from libkv APIs to kvtools/valkeyrie for KV backend operations. Updated imports, initialization logic, and context handling to align with the new library. Removed redundant import registrations and streamlined code for better maintainability.
This commit removes the etcdV3 store code and its integration with KV-backed elections. The support for etcdV3 is no longer required, simplifying the codebase and focusing on other store implementations.
Unified formatting for multi-line comments across files. Added explicit `//go:build` directives for platform-specific code and adjusted variable alignment for improved readability. These changes enhance code clarity and maintainability.
This was referenced Mar 7, 2025
Standardize the use of store-specific constants for backend names, replacing hardcoded strings with predefined constants. Add a default case to validate unknown store backends, improving error handling. This helps maintain consistency and prevents misconfiguration issues.
Consolidated duplicate switch cases for cleaner and more concise code. This change improves maintainability by reducing redundancy in the logic for backend selection. Functionality remains unchanged.
Updated the autogenerated timestamp in multiple Stolon command documentation files to reflect the new generation date. This ensures consistency and clarity in the generated docs.
…ic operations are already guaranteed by the stdlib. Removed the internal/timer package and updated all references to use Go's built-in time package. This simplifies the codebase by leveraging standard library utilities for time management and avoids maintaining redundant custom code.
…ollision) Renamed the variable `url` to `c_url` in the ConsulConfig function to avoid shadowing the imported `url` package. This improves code clarity and prevents potential issues involving namespace conflicts. No changes were made to the function's logic or overall behavior.
Renamed variables for clarity and consistency (e.g., maj/min to vmaj/vmin). Improved context and parameter handling by replacing unused parameters with underscores. Added defensive checks for potential nil references to enhance reliability.
Simplified and standardized error messages for TCP address resolution and metrics server. Replaced unused function parameters with underscores to improve clarity. Added error suppression for listener closure to prevent potential runtime issues.
Introduced const groups for better organization of dbTypes, dbValidity, and dbStatus values. Simplified function signatures by replacing unused parameters with underscores. Added a harmless placeholder comment for the Converged case in db status handling.
…name collision) Updated the variable name from 'cluster' to 'scluster' for clarity and to better reflect its purpose. This improves code readability and avoids potential confusion with other similarly named identifiers.
Replaced unused parameters in the versionCommand function with underscores for clarity and to adhere to Go conventions. This improves code readability and signals that the parameters are intentionally unused.
Replaced the named variable `cmd` with `_` to acknowledge it is unused. This improves code clarity and adheres to Go conventions for unused parameters. No functional changes introduced.
@ctrix Thanks for you work! It would be great, and simplify merging, if you could split the commits in multiple self-contained PRs (like: support postgres16, new kv store library) so I can easily review them, verify tests works and then merge them. |
…rary is the same.
The -failfast flag ensures that testing stops at the first failure, making it easier to identify issues quickly. This change improves the debugging process, especially for large test suites.
Replace custom timer usage with standard time package in tests (tests should be included in the build) Refactored the code to replace the usage of the internal `timer` package with the standard `time` package for consistency and readability. This change simplifies time-related logic and ensures adherence to standard Go practices. Removed the unnecessary timer import as part of the cleanup. ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is quite a massive change to the project.
I needed it to work on the latest vesions of postgres and i took this opportunity to update the code and refactor a bit.
Feel free to cherry pick and merge whatever you want.