Skip to content

Commit

Permalink
Add yaml formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed Apr 8, 2024
1 parent 97b92c9 commit 197cb86
Show file tree
Hide file tree
Showing 32 changed files with 1,072 additions and 988 deletions.
140 changes: 70 additions & 70 deletions .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,84 +2,84 @@ name: Bug Report
description: Report a bug encountered while operating Kwok
labels: kind/bug
body:
- type: checkboxes
id: usage
attributes:
label: How to use it?
options:
- label: kwok
- label: kwokctl --runtime=docker (default runtime)
- label: kwokctl --runtime=binary
- label: kwokctl --runtime=nerdctl
- label: kwokctl --runtime=kind
- type: checkboxes
id: usage
attributes:
label: How to use it?
options:
- label: kwok
- label: kwokctl --runtime=docker (default runtime)
- label: kwokctl --runtime=binary
- label: kwokctl --runtime=nerdctl
- label: kwokctl --runtime=kind

- type: textarea
id: problem
attributes:
label: What happened?
description: |
Please provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner.
If this matter is security related, please disclose it privately via https://kubernetes.io/security
validations:
required: true
- type: textarea
id: problem
attributes:
label: What happened?
description: |
Please provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner.
If this matter is security related, please disclose it privately via https://kubernetes.io/security
validations:
required: true

- type: textarea
id: expected
attributes:
label: What did you expect to happen?
validations:
required: true
- type: textarea
id: expected
attributes:
label: What did you expect to happen?
validations:
required: true

- type: textarea
id: repro
attributes:
label: How can we reproduce it (as minimally and precisely as possible)?
validations:
required: true
- type: textarea
id: repro
attributes:
label: How can we reproduce it (as minimally and precisely as possible)?
validations:
required: true

- type: textarea
id: additional
attributes:
label: Anything else we need to know?
- type: textarea
id: additional
attributes:
label: Anything else we need to know?

- type: textarea
id: kwokVersion
attributes:
label: Kwok version
value: |
<details>
- type: textarea
id: kwokVersion
attributes:
label: Kwok version
value: |
<details>
```console
$ kwok --version
# paste output here
```console
$ kwok --version
# paste output here
$ kwokctl --version
# paste output here
```
$ kwokctl --version
# paste output here
```
</details>
validations:
required: true
</details>
validations:
required: true

- type: textarea
id: osVersion
attributes:
label: OS version
value: |
<details>
```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here
- type: textarea
id: osVersion
attributes:
label: OS version
value: |
<details>
```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here
# On Darwin:
$ uname -a
# paste output here
# On Darwin:
$ uname -a
# paste output here
# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```
</details>
# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```
</details>
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
contact_links:
- name: Support Request
url: https://github.com/kubernetes-sigs/kwok/discussions
about: Support request or question relating to Kwok
- name: Support Request
url: https://github.com/kubernetes-sigs/kwok/discussions
about: Support request or question relating to Kwok
32 changes: 16 additions & 16 deletions .github/ISSUE_TEMPLATE/enhancement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ name: Enhancement Tracking Issue
description: Provide supporting details for a feature in development
labels: kind/feature
body:
- type: textarea
id: feature
attributes:
label: What would you like to be added?
description: |
Feature requests are unlikely to make progress as issues. Please consider engaging with SIGs on slack and mailing lists, instead.
A proposal that works through the design along with the implications of the change can be opened as a KEP.
See https://git.k8s.io/enhancements/keps#kubernetes-enhancement-proposals-keps
validations:
required: true
- type: textarea
id: feature
attributes:
label: What would you like to be added?
description: |
Feature requests are unlikely to make progress as issues. Please consider engaging with SIGs on slack and mailing lists, instead.
A proposal that works through the design along with the implications of the change can be opened as a KEP.
See https://git.k8s.io/enhancements/keps#kubernetes-enhancement-proposals-keps
validations:
required: true

- type: textarea
id: rationale
attributes:
label: Why is this needed?
validations:
required: true
- type: textarea
id: rationale
attributes:
label: Why is this needed?
validations:
required: true
56 changes: 28 additions & 28 deletions .github/ISSUE_TEMPLATE/failing-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,35 @@ name: Failing Test
description: Report continuously failing tests or jobs in Kwok CI
labels: kind/failing-test
body:
- type: textarea
id: jobs
attributes:
label: Which jobs are failing?
placeholder: |
Please only use this template for submitting reports about continuously failing tests or jobs in Kwok CI.
validations:
required: true
- type: textarea
id: jobs
attributes:
label: Which jobs are failing?
placeholder: |
Please only use this template for submitting reports about continuously failing tests or jobs in Kwok CI.
validations:
required: true

- type: textarea
id: tests
attributes:
label: Which tests are failing?
validations:
required: true
- type: textarea
id: tests
attributes:
label: Which tests are failing?
validations:
required: true

- type: textarea
id: since
attributes:
label: Since when has it been failing?
validations:
required: true
- type: textarea
id: since
attributes:
label: Since when has it been failing?
validations:
required: true

- type: textarea
id: reason
attributes:
label: Reason for failure (if possible)
- type: textarea
id: reason
attributes:
label: Reason for failure (if possible)

- type: textarea
id: additional
attributes:
label: Anything else we need to know?
- type: textarea
id: additional
attributes:
label: Anything else we need to know?
32 changes: 16 additions & 16 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
labels:
- "area/dependency"
- "release-note-none"
- "ok-to-test"
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: weekly
labels:
- "area/dependency"
- "release-note-none"
- "ok-to-test"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
labels:
- "area/dependency"
- "release-note-none"
- "ok-to-test"
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: weekly
labels:
- "area/dependency"
- "release-note-none"
- "ok-to-test"
22 changes: 11 additions & 11 deletions .github/workflows/bump_releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

schedule:
- cron: "0 0 * * *"
- cron: "0 0 * * *"

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -14,13 +14,13 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.repository == 'kubernetes-sigs/kwok' }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Update
env:
SEND_PR: 'true'
run: |
./hack/supported_releases.sh
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Update
env:
SEND_PR: 'true'
run: |
./hack/supported_releases.sh
20 changes: 10 additions & 10 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ on:
pull_request:
types: [opened, edited, synchronize, reopened]
branches:
- main
- main
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
args: --timeout=30m --config=.golangci.yaml
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
args: --timeout=30m --config=.golangci.yaml
Loading

0 comments on commit 197cb86

Please sign in to comment.