Skip to content

Commit

Permalink
Rename to kubectl-d
Browse files Browse the repository at this point in the history
  • Loading branch information
perrornet committed Sep 14, 2023
1 parent 8475cef commit 6ab1118
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.20.linux-amd64.tar.gz"
project_path: "."
binary_name: "kubectl-debug"
binary_name: "kubectl-d"
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
`kubectl-debug` is a tool that simplifies the use of `kubectl debug`. With just one command, you can enter the container without having to look up information such as the name of the Pod, the name of the container, and the namespace. In addition, it provides configuration for `securityContext`.
`kubectl-d` is a tool that simplifies the use of `kubectl debug`. With just one command, you can enter the container without having to look up information such as the name of the Pod, the name of the container, and the namespace. In addition, it provides configuration for `securityContext`.

## Installation

- Use the following command to install:

```
go install github.com/subscan-explorer/kubectl-debug@latest
go install github.com/subscan-explorer/kubectl-d@latest
```

- Download the binary file from the [release](https://github.com/subscan-explorer/kubectl-debug/releases) page and add it to the `PATH` environment variable.
- Download the binary file from the [release](https://github.com/subscan-explorer/kubectl-d/releases) page and add it to the `PATH` environment variable.

## Usage

- Run `kubectl-debug` in the terminal to enter interactive command line mode. Follow the prompts to operate.
- Run `kubectl-d` in the terminal to enter interactive command line mode. Follow the prompts to operate.
[![asciicast](https://asciinema.org/a/607671.svg)](https://asciinema.org/a/607671)
- Use the following command directly to create a temporary container and enter it:
```
kubectl-debug -n <namespace> <pod-name> -c <container-name> -capabilities <capabilities> -capabilities <capabilities> -image <debug-image>
kubectl-d -n <namespace> <pod-name> -c <container-name> -capabilities <capabilities> -capabilities <capabilities> -image <debug-image>
```
[![asciicast](https://asciinema.org/a/607672.svg)](https://asciinema.org/a/607672)
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module kubectl-debug
module kubectl-d

go 1.20

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"flag"
"github.com/spf13/cast"
"k8s.io/client-go/util/homedir"
"kubectl-debug/pkg"
"kubectl-debug/pkg/args"
"kubectl-d/pkg"
"kubectl-d/pkg/args"
"path/filepath"
)

Expand Down

0 comments on commit 6ab1118

Please sign in to comment.