Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Azure/draft #7290

Merged
merged 1 commit into from Oct 22, 2022
Merged

Conversation

ponkio-o
Copy link
Sponsor Contributor

@ponkio-o ponkio-o commented Oct 22, 2022

#7290 Azure/draft: A day 0 tool for getting your app on k8s fast

$ aqua g -i Azure/draft

How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well. Please confirm if this package works well yourself as much as possible.

Command and output

$ draft --help
Draft is a Command Line Tool (CLI) that creates the miminum required files for your Kubernetes deployments.

To start a k8s deployment with draft, run the 'draft create' command 🀩

        $ draft create

This will prompt you to create a Dockerfile and deployment files for your project ✨

For more information, please visit the Draft Github page: https://github.com/Azure/draft.


Usage:

  draft [command]


Available Commands:

  completion         Generate the autocompletion script for the specified shell
  create             Add minimum required files to the directory
  generate-workflow  Generates a Github workflow for automatic build and deploy to AKS
  help               Help about any command
  setup-gh           Automates the Github OIDC setup process
  update             Updates your application to be internet accessible
  version            Get the current version of Draft


Flags:

      --config string     config file (default is $HOME/.draft.yaml)
  -h, --help              help for draft
  -p, --provider string   cloud provider (default "azure")
      --silent            enable silent logging
  -v, --verbose           enable verbose logging


Use "draft [command] --help" for more information about a command.

If files such as configuration file are needed, please share them.

$ draft create
[Draft] --- Detecting Language ---
βœ” yes
[Draft] --> Draft detected Go Checksums (58.840614%)

[Draft] --> Could not find a pack for Go Checksums. Trying to find the next likely language match...
[Draft] --> Draft detected Go (35.418813%)

[Draft] --- Dockerfile Creation ---
Please enter the port exposed in the application (default: 80): 80
Please enter the version of go used by the application (default: 1.18):
[Draft] --> Creating Dockerfile...

[Draft] --- Deployment File Creation ---
βœ” manifests
Please enter the port exposed in the application (default: 80): 80
Please enter the name of the application: test
βœ” Please enter the port the service uses to make the application accessible from outside the cluster (defaul
βœ” Please enter the port the service uses to make the application accessible from outside the cluster (defaul
Please enter the port the service uses to make the application accessible from outside the cluster (default:
βœ” Please enter  the namespace to place new resources in (default: default): β–ˆ
Please enter the name of the image to use in the deployment (default: test): : β–ˆ
βœ” Please enter the name of the image to use in the deployment (default: test): β–ˆ
[Draft] --> Creating manifests Kubernetes resources...

[Draft] Draft has successfully created deployment resources for your project πŸ˜ƒ
[Draft] Use 'draft setup-gh' to set up Github OIDC.
$ cat manifest/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: test
  labels:
    app: test
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: test
  template:
    metadata:
      labels:
        app: test
    spec:
      containers:
        - name: test
          image:
          ports:
            - containerPort: 80%

Reference

[Azure/draft](https://github.com/Azure/draft): A day 0 tool for getting your app on k8s fast

```console
$ aqua g -i Azure/draft
```

## How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.

Command and output

```console
$
```

If files such as configuration file are needed, please share them.

```
```

Reference

-
@ponkio-o ponkio-o mentioned this pull request Oct 22, 2022
@ponkio-o
Copy link
Sponsor Contributor Author

Issue #977

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Oct 22, 2022
@suzuki-shunsuke suzuki-shunsuke added this to the v3.79.1 milestone Oct 22, 2022
@suzuki-shunsuke
Copy link
Member

Thank you always!

@suzuki-shunsuke suzuki-shunsuke merged commit 2566d86 into aquaproj:main Oct 22, 2022
@suzuki-shunsuke suzuki-shunsuke linked an issue Oct 22, 2022 that may be closed by this pull request
@suzuki-shunsuke
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add draft
2 participants