-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: standardize kubectx-kubens feature
- Loading branch information
1 parent
454f473
commit d93e78c
Showing
5 changed files
with
27 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
{ | ||
"name": "Kubectx and Kubens (via Github Releases)", | ||
"id": "kubectx-kubens", | ||
"version": "1.0.3", | ||
"name": "Kubectx and Kubens (via Github Releases)", | ||
"documentationURL": "http://github.com/devcontainers-contrib/features/tree/main/src/kubectx-kubens", | ||
"description": "kubectx is a tool to switch between contexts (clusters) on kubectl faster. kubens is a tool to switch between Kubernetes namespaces (and configure them for kubectl) easily.", | ||
"documentationURL": "https://github.com/devcontainers-contrib/features/tree/main/src/kubectx-kubens", | ||
"installsAfter": [ | ||
"ghcr.io/devcontainers/features/kubectl-helm-minikube:latest" | ||
], | ||
"options": { | ||
"version": { | ||
"type": "string", | ||
"default": "latest", | ||
"description": "Select the version you would like to install (will apply for for both kubectx and kubens.)", | ||
"proposals": [ | ||
"latest", | ||
"0.9.4" | ||
], | ||
"default": "latest", | ||
"description": "Select the version you would like to install (will apply for for both kubectx and kubens.)" | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"installsAfter": [ | ||
"ghcr.io/devcontainers-contrib/features/gh-release" | ||
] | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
#!/bin/bash | ||
#!/bin/bash -i | ||
|
||
set -e | ||
|
||
source dev-container-features-test-lib | ||
|
||
# we are simply checking version for now. | ||
# full operability depends on the existance of kubectl. | ||
check "kubectx version" kubectx --version | ||
check "kubens version" kubens --version | ||
check "kubectx --version" kubectx --version | ||
|
||
check "kubens --version" kubens --version | ||
|
||
reportResults |