2023-11-15 20:25:07 +00:00
{
2023-12-14 08:36:45 +00:00
"name" : "kubectl-cli" ,
2023-11-15 20:25:07 +00:00
"displayName" : "kubectl CLI" ,
"description" : "Install and update kubectl CLI Tools without leaving Podman Desktop" ,
2024-06-19 21:13:22 +00:00
"version" : "1.12.0-next" ,
2023-11-15 20:25:07 +00:00
"icon" : "icon.png" ,
2023-12-06 09:47:43 +00:00
"publisher" : "podman-desktop" ,
2023-11-15 20:25:07 +00:00
"license" : "Apache-2.0" ,
"engines" : {
"podman-desktop" : "^0.0.1"
} ,
"main" : "./dist/extension.js" ,
2023-12-06 09:47:43 +00:00
"contributes" : {
"commands" : [
{
"command" : "kubectl.install" ,
2024-03-31 19:14:06 +00:00
"title" : "Kubectl: Install..."
2023-12-06 09:47:43 +00:00
} ,
{
"command" : "kubectl.checks" ,
2024-03-31 19:14:06 +00:00
"title" : "Kubectl: Checks..."
2023-12-06 09:47:43 +00:00
} ,
{
"command" : "kubectl.onboarding.checkDownloadedCommand" ,
2024-03-31 19:14:06 +00:00
"title" : "Kubectl: Check kubectl Downloaded"
2023-12-06 09:47:43 +00:00
} ,
{
"command" : "kubectl.onboarding.downloadCommand" ,
2024-03-31 19:14:06 +00:00
"title" : "Kubectl: Download kubectl"
2023-12-06 09:47:43 +00:00
}
] ,
"onboarding" : {
"title" : "kubectl Setup" ,
"enablement" : "!kubectl.isKubectlInstalledSystemWide" ,
"steps" : [
{
"id" : "checkDownloadedCommand" ,
"label" : "Check kubectl" ,
"title" : "Checking for kubectl installation" ,
"command" : "kubectl.onboarding.checkDownloadedCommand" ,
"completionEvents" : [
"onCommand:kubectl.onboarding.checkDownloadedCommand"
]
} ,
{
"id" : "welcomeDownloadView" ,
"label" : "kubectl Download" ,
2024-03-07 15:35:57 +00:00
"title" : "kubectl download" ,
2023-12-22 14:49:01 +00:00
"when" : "!kubectl.isKubectlInstalledSystemWide && onboardingContext:kubectlIsNotDownloaded" ,
2023-12-06 09:47:43 +00:00
"content" : [
[
{
"value" : "kubectl support in Podman Desktop enables you to use kubectl CLI ."
}
] ,
[
{
"value" : "kubectl will be downloaded in the next step (Version ${onboardingContext:kubectlDownloadVersion}). :link[Want to download a different version?]{command=kubectl.onboarding.promptUserForVersion}" ,
"when" : "!onboardingContext:kubectlShowCustomDownloadDialog"
}
]
]
} ,
{
"id" : "downloadCommand" ,
"title" : "Downloading kubectl ${onboardingContext:kubectlDownloadVersion}" ,
"description" : "Downloading the binary.\n\nOnce downloaded, the next step will install kubectl system-wide." ,
2023-12-22 14:49:01 +00:00
"when" : "!kubectl.isKubectlInstalledSystemWide && onboardingContext:kubectlIsNotDownloaded" ,
2023-12-06 09:47:43 +00:00
"command" : "kubectl.onboarding.downloadCommand" ,
"completionEvents" : [
"onCommand:kubectl.onboarding.downloadCommand"
]
} ,
{
"id" : "downloadFailure" ,
2024-03-07 15:35:57 +00:00
"title" : "Failed downloading kubectl" ,
2023-12-22 14:49:01 +00:00
"when" : "!kubectl.isKubectlInstalledSystemWide && onboardingContext:kubectlIsNotDownloaded" ,
2023-12-06 09:47:43 +00:00
"state" : "failed"
} ,
{
"id" : "downloadSuccessfulView" ,
2024-03-07 15:35:57 +00:00
"title" : "kubectl successfully downloaded" ,
2023-12-22 14:49:01 +00:00
"when" : "!kubectl.isKubectlInstalledSystemWide && !onboardingContext:kubectlIsNotDownloaded" ,
2023-12-06 09:47:43 +00:00
"content" : [
[
{
2023-12-22 14:49:01 +00:00
"value" : "kubectl has been successfully downloaded! In order to use kubectl from the terminal, it is required for kubectl to be installed system-wide.\n\nThe next step will install kubectl system-wide. **You will be prompted for system privileges when enabling this.**"
2023-12-06 09:47:43 +00:00
}
]
]
} ,
{
"id" : "installSystemWideCommand" ,
"title" : "Install kubectl" ,
"description" : "Installing the binary system-wide.\n\n You may be prompted for elevated system privileges." ,
2023-12-22 14:49:01 +00:00
"when" : "!kubectl.isKubectlInstalledSystemWide && !kubectl.isKubectlInstalledSystemWide" ,
2023-12-06 09:47:43 +00:00
"command" : "kubectl.onboarding.installSystemWideCommand" ,
"completionEvents" : [
"onCommand:kubectl.onboarding.installSystemWideCommand"
]
} ,
{
"id" : "installSystemWideFailure" ,
2024-03-07 15:35:57 +00:00
"title" : "Failed installing kubectl" ,
2023-12-22 14:49:01 +00:00
"when" : "!kubectl.isKubectlInstalledSystemWide && !kubectl.isKubectlInstalledSystemWide" ,
2023-12-06 09:47:43 +00:00
"state" : "failed"
} ,
{
"id" : "installSystemWideSuccess" ,
2024-03-07 15:35:57 +00:00
"title" : "kubectl installed" ,
2023-12-22 14:49:01 +00:00
"when" : "kubectl.isKubectlInstalledSystemWide" ,
2023-12-06 09:47:43 +00:00
"state" : "completed" ,
"content" : [
2023-12-22 14:49:01 +00:00
[
{
"value" : "#### How to use kubectl \nRun `kubectl help` in the terminal for a list of commands to interact with your Kubernetes cluster. For example, try the 'Deploy to Kubernetes' button within Podman Desktop and view your pods with `kubectl`:\n\n`$ kubectl get pods`" ,
"highlight" : true
}
2023-12-06 09:47:43 +00:00
]
]
}
]
} ,
"configuration" : {
"title" : "Kubectl" ,
"properties" : {
"kubectl.binary.installKubectlSystemWide" : {
"type" : "boolean" ,
"default" : false ,
"scope" : [
"DEFAULT" ,
"Onboarding"
] ,
"hidden" : true ,
"description" : "Install system-wide instead of just your user directory, so kubectl can be accessed on the command line. Note: You may be prompted for elevated system privileges when enabling this."
}
}
}
} ,
2023-11-15 20:25:07 +00:00
"scripts" : {
"build" : "vite build && node ./scripts/build.js" ,
"test" : "vitest run --coverage" ,
"watch" : "vite build -w" ,
"format:check" : "prettier --check \"**/*.ts\" \"scripts/*.js\"" ,
"format:fix" : "prettier --write \"**/*.ts\" \"scripts/*.js\""
} ,
"dependencies" : {
2023-12-06 09:47:43 +00:00
"@podman-desktop/api" : "^0.0.1" ,
2024-06-21 09:58:09 +00:00
"@octokit/rest" : "^21.0.0" ,
2023-12-06 09:47:43 +00:00
"shell-path" : "^3.0.0"
2023-11-15 20:25:07 +00:00
} ,
"devDependencies" : {
2024-06-05 09:54:07 +00:00
"adm-zip" : "^0.5.14" ,
2023-11-15 20:25:07 +00:00
"byline" : "^5.0.0" ,
"copyfiles" : "^2.4.1" ,
2023-11-23 06:56:07 +00:00
"mkdirp" : "^3.0.1" ,
2024-07-16 11:15:44 +00:00
"vite" : "^5.3.4" ,
2024-05-06 10:46:07 +00:00
"vitest" : "^1.6.0"
2023-11-15 20:25:07 +00:00
}
}