Skip to content

feat: add kubectl-cnpg plugin support for CloudNativePG management#82

Merged
fentas merged 2 commits intomainfrom
feat/kubectl-cnpg
Aug 22, 2025
Merged

feat: add kubectl-cnpg plugin support for CloudNativePG management#82
fentas merged 2 commits intomainfrom
feat/kubectl-cnpg

Conversation

@fentas
Copy link
Owner

@fentas fentas commented Aug 22, 2025

This pull request adds support for the kubectl-cnpg binary, 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:

  • Added new package pkg/binaries/kubectl-cnpg with logic for downloading, versioning, and extracting the kubectl-cnpg binary, including custom URL and version parsing.
  • Registered kubectl-cnpg in the main application by importing the new package and including it in the list of managed binaries in cmd/b/main.go. [1] [2]

Documentation update:

  • Updated README.md to list kubectl-cnpg as a supported binary, including a link to its upstream repository.

@fentas fentas requested a review from Copilot August 22, 2025 13:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 fentas merged commit f38878a into main Aug 22, 2025
6 of 7 checks passed
@fentas fentas deleted the feat/kubectl-cnpg branch August 22, 2025 13:30
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).
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.

2 participants