Skip to content

Commit 69dd083

Browse files
authored
Merge pull request #1291 from devstream-io/main
Prepare to Release v0.10.1
2 parents 520d7e8 + b7d1842 commit 69dd083

39 files changed

+846
-864
lines changed

.github/ISSUE_TEMPLATE/bug-report.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ body:
2828
label: 'DevStream Version'
2929
description: "To find out the version run: `dtm version`"
3030
options:
31-
- < v0.9.1
32-
- v0.9.1
31+
- < v0.10.0
32+
- v0.10.0
3333
- latest
3434
validations:
3535
required: true

.github/workflows/e2e-test.yml

+24-15
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ env:
1818
# see https://github.com/devstream-io/devstream/pull/414 for more info
1919
GITHUB_TOKEN: ${{ secrets.E2E_GITHUB_TOKEN }}
2020
DOCKERHUB_USERNAME: ${{ secrets.E2E_DOCKERHUB_USERNAME }}
21+
# for github actions
2122
DOCKERHUB_TOKEN: ${{ secrets.E2E_DOCKERHUB_TOKEN }}
22-
TRELLO_API_KEY: ${{ secrets.E2E_TRELLO_API_KEY }}
23-
TRELLO_TOKEN: ${{ secrets.E2E_TRELLO_TOKEN }}
23+
# for apps
24+
IMAGE_REPO_PASSWORD: ${{ secrets.E2E_DOCKERHUB_TOKEN }}
2425

2526
concurrency:
2627
group: ${{ github.workflow }}
@@ -39,7 +40,6 @@ jobs:
3940
runs-on: [self-hosted, linux, X64]
4041
name: e2e-test-${{ matrix.os }}
4142
steps:
42-
- run: echo "🐧 This job is now running on a ${{ runner.os }}-${{ runner.arch }} server hosted by GitHub!"
4343
- name: Checkout
4444
uses: actions/checkout@v3
4545
- name: Setup Golang env
@@ -65,24 +65,33 @@ jobs:
6565
- name: Configure EKS credentials
6666
run: |
6767
aws eks update-kubeconfig --region ap-southeast-1 --name dtm-test
68-
- name: copy config files
69-
run: cp ./test/e2e/yaml/e2e-*.yaml ./
70-
- name: apply git-ops
71-
run: ./dtm apply -f e2e-config.yaml -y
72-
- name: apply twice git-ops
73-
run: ./dtm apply -f e2e-config.yaml -y
74-
- name: install kubectl
68+
- name: Install kubectl
7569
run: |
7670
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.22.0/bin/linux/amd64/kubectl
7771
chmod +x ./kubectl
7872
sudo mv ./kubectl /usr/local/bin/kubectl
79-
- name: check if pod is ready
73+
- name: copy config files
74+
run: cp ./test/e2e/yaml/e2e-*.yaml ./
75+
- name: test 1 - apply git-ops (tools only)
76+
run: ./dtm apply -f e2e-tools.yaml -y
77+
- name: test 1 - apply git-ops (tools only) again
78+
run: ./dtm apply -f e2e-tools.yaml -y
79+
- name: test 1 - check if pod is ready
80+
run: while [[ $(kubectl get pods -l app=dtme2epython -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "pod not ready yet..."; sleep 3; done
81+
timeout-minutes: 10
82+
- name: test 1 - verify
83+
run: ./dtm verify -f e2e-tools.yaml
84+
- name: test 1 - clean
85+
run: ./dtm delete -f e2e-tools.yaml -y
86+
- name: test 2 - apply (apps)
87+
run: ./dtm apply -f e2e-apps.yaml -y
88+
- name: test 2 - apply (apps) again
89+
run: ./dtm apply -f e2e-apps.yaml -y
90+
- name: test 2 - check if pod is ready
8091
run: while [[ $(kubectl get pods -l app=dtm-e2e-go -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "pod not ready yet..."; sleep 3; done
8192
timeout-minutes: 10
82-
- name: verify
83-
run: ./dtm verify -f e2e-config.yaml
84-
- name: clean
85-
run: ./dtm delete -f e2e-config.yaml -y
93+
- name: test 2 - clean
94+
run: ./dtm delete -f e2e-apps.yaml -y
8695
- name: test e2e success or not
8796
if: failure()
8897
run: |

.github/workflows/lint-yaml.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Yaml Lint
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
paths:
7+
- '**.yaml'
8+
- '**.yml'
9+
10+
jobs:
11+
yamlLint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Remove All Strings In Square Brackets
16+
run: |
17+
# remove strings in "[[]]" in .yml or .yaml files, or yaml lint will fail
18+
sed -i "s/\[\[.*\]\]//g" `grep "\[\[.*\]\]" -rl --include="*.yml" --include="*.yaml" .`
19+
- name: Yaml Lint
20+
uses: ibiqlik/action-yamllint@v3
21+
with:
22+
file_or_dir: .
23+
config_file: .yamllint.yml

.yamllint.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
extends: default
2+
rules:
3+
brackets: disable # do not check brackets
4+
comments:
5+
require-starting-space: true
6+
min-spaces-from-content: 1 # at leaset 1 space between comment and content
7+
document-start: disable # whether the document must start with '---' is optional
8+
indentation:
9+
spaces: 2
10+
# block sequences should not be indented
11+
# e.g.:
12+
# OK:
13+
# key:
14+
# - value1
15+
# - value2
16+
# NOT OK:
17+
# key:
18+
# - value1
19+
# - value2
20+
indent-sequences: false
21+
line-length: disable
22+
new-line-at-end-of-file: enable # must have a new line at the end of file
23+
trailing-spaces: disable # do not check trailing spaces
24+
truthy: disable # do not check truthy
25+
ignore: |
26+
*.tpl.yaml
27+
*.tpl.yml
28+
*tmpl.yaml
29+
*tmpl.yml
30+
*template.yml
31+
*template.yaml
32+
**/.github/**
33+
**/githubactions/**
34+
**/workflows/**

docs/best-practices/air-gapped-deployment.zh.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ chmod +x dtm
3333

3434
```shell
3535
$ dtm version
36-
0.9.1
36+
0.10.0
3737
```
3838

3939
### 1.2、下载 plugins

0 commit comments

Comments
 (0)