File tree 4 files changed +37
-5
lines changed
4 files changed +37
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : pre-commit
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+
8
+ jobs :
9
+ pre-commit :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ - uses : actions/setup-python@v3
14
+ -
uses :
pre-commit/[email protected]
Original file line number Diff line number Diff line change
1
+ ---
2
+ exclude : ^vendor/|^test/tools/vendor/
3
+ repos :
4
+ - repo : https://github.com/pre-commit/pre-commit-hooks.git
5
+ rev : v3.4.0
6
+ hooks :
7
+ - id : end-of-file-fixer
8
+ - id : trailing-whitespace
9
+ - id : mixed-line-ending
10
+ - id : check-byte-order-marker
11
+ - id : check-executables-have-shebangs
12
+ - id : check-merge-conflict
13
+ - id : check-yaml
14
+ - repo : https://github.com/codespell-project/codespell
15
+ rev : v2.3.0
16
+ hooks :
17
+ - id : codespell
18
+ exclude : go.sum
Original file line number Diff line number Diff line change @@ -45,12 +45,12 @@ the target process as they run in separate containers.
45
45
46
46
#### Delete the debugging Pod
47
47
48
- Delete the ` DevWorkspace ` Custom resource to stop the debugging session and cleanup the Kubernetes resources created by
48
+ Delete the ` DevWorkspace ` Custom resource to stop the debugging session and cleanup the Kubernetes resources created by
49
49
` kubectl debug-id ` :
50
50
51
51
``` bash
52
52
TARGET_POD=" outyet"
53
- kubectl delete ${TARGET_POD} -dw
53
+ kubectl delete ${TARGET_POD} -dw
54
54
```
55
55
56
56
:mega : ` kubectl delete pod ` doesn't work, the DevWorkspace Operator restarts the Pod.
@@ -64,7 +64,7 @@ Building (and currently installing too) requires [Go](https://go.dev/dl/).
64
64
65
65
## Installation
66
66
67
- To install ` kubectl debug-ide ` clone this git repository and run ` go install ` :
67
+ To install ` kubectl debug-ide ` clone this git repository and run ` go install ` :
68
68
69
69
``` sh
70
70
$ go install cmd/kubectl-debug_ide.go
@@ -88,5 +88,5 @@ You can "uninstall" this plugin from kubectl by simply removing it from your PAT
88
88
The awesome [ sample-cli-plugin] ( https://github.com/kubernetes/sample-cli-plugin ) was used to kick off this plugin.
89
89
90
90
` kubectl debug-ide ` is just a generator of DevWorkspace Custom Resources. The heavy lifting, the Cloud Development
91
- Environment provisioning, is done by the [ DevWorkspace Operator] ( https://github.com/devfile/devworkspace-operator )
91
+ Environment provisioning, is done by the [ DevWorkspace Operator] ( https://github.com/devfile/devworkspace-operator )
92
92
:heart : . Go check it out!
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ func (o *DebugIDEOptions) Run() error {
307
307
// Convert the DevWorkspace to an Unstructured
308
308
obj , err := runtime .DefaultUnstructuredConverter .ToUnstructured (& dw )
309
309
if err != nil {
310
- return fmt .Errorf ("found error while coverting resource to unstructured err - %v" , err )
310
+ return fmt .Errorf ("found error while converting resource to unstructured err - %v" , err )
311
311
}
312
312
unstructuredResource := & unstructured.Unstructured {Object : obj }
313
313
You can’t perform that action at this time.
0 commit comments