https://github.com/ardaguclu/kubectl-dapply
Kubectl plugin shows differences and asks user to proceed to apply
https://github.com/ardaguclu/kubectl-dapply
krew-plugin kubectl kubectl-plugins
Last synced: over 1 year ago
JSON representation
Kubectl plugin shows differences and asks user to proceed to apply
- Host: GitHub
- URL: https://github.com/ardaguclu/kubectl-dapply
- Owner: ardaguclu
- License: apache-2.0
- Created: 2022-07-29T07:50:13.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-29T09:38:34.000Z (almost 4 years ago)
- Last Synced: 2025-01-24T09:43:43.146Z (over 1 year ago)
- Topics: krew-plugin, kubectl, kubectl-plugins
- Language: Go
- Homepage:
- Size: 71.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kubectl-dapply
This plugin wraps `kubectl apply` with showing differences that will be applied and asking user to proceed or not prior to apply.
[](https://godoc.org/github.com/ardaguclu/kubectl-dapply)
[](https://goreportcard.com/report/github.com/ardaguclu/kubectl-dapply)
## Details
Currenly, if user wants to see the differences before apply, user has to manually run `kubectl diff` command. This plugin provides a combined way of `kubectl apply` and `kubectl diff` commands
with user interaction. It shows differences first and if user decides to proceed, it applies resources exactly the same way of `kubectl apply` does.
## Installation
Use [krew](https://sigs.k8s.io/krew) plugin manager to install;
```shell script
wget https://github.com/ardaguclu/kubectl-dapply/blob/main/.krew.yaml
kubectl krew install --manifest=.krew.yaml
kubectl dapply --help
```
Or manually clone the repo and install into your $GOPATH;
```shell script
go install cmd/kubectl-dapply.go
```
## Usage
It is fully compatible with `kubectl apply` command.
[](https://asciinema.org/a/uLIzpkgsgXyEdroXDVpDuvaOm)