feat: add kubectl-cnpg plugin support for CloudNativePG management#82
Merged
feat: add kubectl-cnpg plugin support for CloudNativePG management#82
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for the kubectl-cnpg plugin, a kubectl extension for managing CloudNativePG (PostgreSQL) resources. It integrates the binary into the existing binary management system and updates documentation to reflect the new capability.
- Implements a new binary package for kubectl-cnpg with custom URL construction, version parsing, and tar.gz extraction support
- Registers kubectl-cnpg in the main application's binary list
- Updates README documentation to include kubectl-cnpg as a supported binary
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| pkg/binaries/kubectl-cnpg/kubectl-cnpg.go | New binary implementation with GitHub release URL construction and version extraction logic |
| cmd/b/main.go | Import and registration of the kubectl-cnpg binary in the main application |
| README.md | Documentation update adding kubectl-cnpg to the list of supported binaries |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
fentas
pushed a commit
that referenced
this pull request
Aug 22, 2025
🤖 I have created a release *beep* *boop* --- ## [4.3.0](v4.2.0...v4.3.0) (2025-08-22) ### Features * add kubectl-cnpg plugin support for CloudNativePG management ([#82](#82)) ([f38878a](f38878a)) ### Bug Fixes * docker build for goreleaser ([#85](#85)) ([0c19bae](0c19bae)) * split docker builds into separate amd64/arm64 manifests with multi-arch support ([#84](#84)) ([4dda766](4dda766)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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
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 pull request adds support for the
kubectl-cnpgbinary, a kubectl plugin for managing CloudNativePG (PostgreSQL) resources. The changes include updating the documentation, integrating the new binary into the main application, and implementing its packaging and versioning logic.Integration of kubectl-cnpg binary:
pkg/binaries/kubectl-cnpgwith logic for downloading, versioning, and extracting thekubectl-cnpgbinary, including custom URL and version parsing.kubectl-cnpgin the main application by importing the new package and including it in the list of managed binaries incmd/b/main.go. [1] [2]Documentation update:
README.mdto listkubectl-cnpgas a supported binary, including a link to its upstream repository.