Skip to content

Commit

Permalink
Recategorize Draft commands as Automated Deployments (#751)
Browse files Browse the repository at this point in the history
* recategorize Draft commands as Automated Deployments

* change link text

* update docs images

* update docs text
  • Loading branch information
peterbom authored Jun 20, 2024
1 parent 4edb7b5 commit 85a4155
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/book/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Azure Kubernetes Service (AKS) Extension for Visual Studio Code helps enable AKS
* [Compare AKS Cluster](./features/aks-compare-cluster.md)
* [Run Image Cleaner Eraser Tool](./features/image-cleaner-eraser-tool.md)
* [Run Retina Capture](./features/retina-capture.md)
* [Run Draft Command](./features/draft-integration.md)
* [Run Automated Deployments Commands](./features/draft-integration.md)

## Development and Release

Expand Down
6 changes: 3 additions & 3 deletions docs/book/src/features/draft-integration.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Draft Tool Integration
# Automated Deployments: Draft Tool Integration

This work adds commands for Draft tool integartion with this extension:
The Automated Deployments commands integrate the Draft tool to provide:

- Draft Dockerfile
- Draft Deployment
Expand All @@ -18,6 +18,6 @@ This will allow user to have access to a complete power of Draft tool and allow

![Step 3: Draft Dockerfile first](../resources/draft-dockerfile1.png)

![Step 4: Draftr Deployment](../resources/draft-deployment.png)
![Step 4: Draft Deployment](../resources/draft-deployment.png)

![Step 5: Draft GitHub Workflow](../resources/draft-gh-workflow.png)
Binary file modified docs/book/src/resources/draft-command.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/book/src/resources/draft-deployment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/book/src/resources/draft-dockerfile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/book/src/resources/draft-dockerfile1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/book/src/resources/draft-gh-workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,17 +248,17 @@
{
"command": "aks.draftDockerfile",
"title": "Create a Dockerfile",
"category": "Draft"
"category": "Automated Deployments"
},
{
"command": "aks.draftDeployment",
"title": "Create a Deployment",
"category": "Draft"
"category": "Automated Deployments"
},
{
"command": "aks.draftWorkflow",
"title": "Create a GitHub Workflow",
"category": "Draft"
"category": "Automated Deployments"
},
{
"command": "aks.showInPortal",
Expand Down Expand Up @@ -379,7 +379,7 @@
"when": "view == kubernetes.cloudExplorer && viewItem =~ /aks\\.cluster/i || view == extension.vsKubernetesExplorer && viewItem =~ /vsKubernetes\\.\\w*cluster$/i"
},
{
"submenu": "aks.draftSubMenu",
"submenu": "aks.automatedDeploymentsSubMenu",
"when": "view == kubernetes.cloudExplorer && viewItem =~ /aks\\.cluster/i && workspaceFolderCount >= 1",
"group": "9@1"
},
Expand Down Expand Up @@ -448,7 +448,7 @@
"group": "navigation"
}
],
"aks.draftSubMenu": [
"aks.automatedDeploymentsSubMenu": [
{
"command": "aks.attachAcrToCluster",
"group": "navigation"
Expand Down Expand Up @@ -515,8 +515,8 @@
"label": "Run AKS Diagnostics"
},
{
"id": "aks.draftSubMenu",
"label": "Draft"
"id": "aks.automatedDeploymentsSubMenu",
"label": "Automated Deployments"
},
{
"id": "aks.ghWorkflowSubMenu",
Expand Down
4 changes: 2 additions & 2 deletions webview-ui/src/Draft/DraftDeployment/DraftDeployment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export function DraftDeployment(initialState: InitialState) {
return (
<>
<form className={styles.wrapper} onSubmit={handleFormSubmit}>
<h2>Draft a deployment</h2>
<h2>Automated Deployments: Draft a deployment</h2>
<p>
Enter the appropriate values in the fields below to enable Draft to automatically create Kubernetes
manifests, Helm charts, or Kustomize files for your application. Once created, you will be able to
Expand Down Expand Up @@ -589,7 +589,7 @@ export function DraftDeployment(initialState: InitialState) {
<p>
To generate a GitHub Action, you can run{" "}
<VSCodeLink href="#" onClick={handleDraftWorkflowClick}>
Draft: Create a GitHub workflow
Automated Deployments: Create a GitHub workflow
</VSCodeLink>
.
</p>
Expand Down
6 changes: 3 additions & 3 deletions webview-ui/src/Draft/DraftDockerfile/DraftDockerfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function DraftDockerfile(initialState: InitialState) {

return (
<form className={styles.wrapper} onSubmit={handleFormSubmit}>
<h2>Draft a Dockerfile</h2>
<h2>Automated Deployments: Draft a Dockerfile</h2>
<p>
To automatically containerize the app, please define the application environment, the port to expose the
app, and the directory of the app source code to build.
Expand Down Expand Up @@ -264,7 +264,7 @@ export function DraftDockerfile(initialState: InitialState) {
<p>
If you still need to generate the appropriate deployment files, you can run{" "}
<VSCodeLink href="#" onClick={handleDraftDeploymentClick}>
Draft: Create a deployment
Automated Deployments: Create a deployment
</VSCodeLink>{" "}
to easily create the appropriate files.
</p>
Expand All @@ -273,7 +273,7 @@ export function DraftDockerfile(initialState: InitialState) {
If you already have all the files you need to deploy and would like to generate a GitHub
Action, you can run{" "}
<VSCodeLink href="#" onClick={handleDraftWorkflowClick}>
Draft: Create a GitHub workflow
Automated Deployments: Create a GitHub workflow
</VSCodeLink>
.
</p>
Expand Down
6 changes: 3 additions & 3 deletions webview-ui/src/Draft/DraftWorkflow/DraftWorkflow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -394,16 +394,16 @@ export function DraftWorkflow(initialState: InitialState) {
return (
<>
<form className={styles.wrapper} onSubmit={handleFormSubmit}>
<h2>Draft a GitHub Workflow</h2>
<h2>Automated Deployments: Draft a GitHub Workflow</h2>
<p className={styles.fullWidth}>
Generate a workflow to deploy to Azure Kubernetes Service (AKS). Before running this command, make
sure you have created a Dockerfile and Deployment. You can do this using the{" "}
<VSCodeLink href="#" onClick={handleDraftDockerfileClick}>
Draft: Create a Dockerfile
Automated Deployments: Create a Dockerfile
</VSCodeLink>{" "}
and{" "}
<VSCodeLink href="#" onClick={handleDraftDeploymentClick}>
Draft: Create a Deployment
Automated Deployments: Create a Deployment
</VSCodeLink>{" "}
commands.
</p>
Expand Down

0 comments on commit 85a4155

Please sign in to comment.