Skip to content

Commit 54bacbd

Browse files
author
Tiexin Guo
committed
Merge branch 'main' into release-0.6
2 parents 6c08a2c + 3813862 commit 54bacbd

File tree

21 files changed

+138
-25
lines changed

21 files changed

+138
-25
lines changed

.github/workflows/automated-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: upload core
4646
run: bash -e ./hack/release/upload_assets.sh ${{ secrets.GITHUB_TOKEN }} ${{ env.TAG }} ${{ env.GOOS }} ${{ env.GOARCH }}
4747
- name: upload plugin
48-
run: aws s3 cp .devstream/ s3://download.devstream.io/${{ env.TAG }}/ --recursive --acl public-read
48+
run: aws s3 cp .devstream/ s3://download.devstream.io/${{ env.TAG }}/ --recursive --acl public-read
4949

5050
# release for darwin-amd64
5151
build-and-release-on-darwin-amd64:

.github/workflows/e2e-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,19 @@ jobs:
6363
aws eks update-kubeconfig --region ap-southeast-1 --name dtm-test
6464
- name: copy config files
6565
run: cp ./test/e2e/yaml/e2e-*.yaml ./
66-
- name: apply
66+
- name: apply git-ops
6767
run: ./dtm apply -f e2e-config.yaml -y
68-
- name: apply twice
68+
- name: apply twice git-ops
6969
run: ./dtm apply -f e2e-config.yaml -y
70+
- name: apply trello-github
71+
run: ./dtm apply -f e2e-trello-github-config.yaml -y
72+
- name: apply twice trello-github
73+
run: ./dtm apply -f e2e-trello-github-config.yaml -y
7074
- name: check if pod is ready
7175
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
7276
timeout-minutes: 10
7377
- name: verify
7478
run: ./dtm verify -f e2e-config.yaml
7579
- name: clean
7680
run: ./dtm delete -f e2e-config.yaml -y
81+

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ ROOT_DIR := $(abspath $(shell cd $(SELF_DIR) && pwd -P))
2424
endif
2525

2626
ifeq ($(origin VERSION), undefined)
27-
VERSION := $(shell git describe --tags --always --match='v*')
27+
# the VERSION is a number, like 0.6.0
28+
# it doesn't contain the prefix v, not v0.6.0, but 0.6.0
29+
VERSION := $(shell git describe --tags --always --match='v*' | cut -c 2-)
2830
endif
2931

3032
ifeq ($(origin PLUGINS_DIR),undefined)

cmd/devstream/list/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
var PluginsName string
1616

17-
// List all of plugins name
17+
// List all plugins name
1818
func List(pluginFilter string) {
1919
listPluginsName := strings.Fields(PluginsName)
2020
r, _ := regexp.Compile(pluginFilter)

docs/development/creating-a-plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ DevStream uses [go plugin](https://pkg.go.dev/plugin) to implement custom DevOps
5353

5454
When you execute a command which calls any of the interfaces(`Create`, `Read`, `Update`, `Delete`), devstream's pluginengine will call the [`plugin.Lookup("DevStreamPlugin")` function](https://github.com/devstream-io/devstream/blob/38307894bbc08f691b2c5015366d9e45cc87970c/internal/pkg/pluginengine/plugin_helper.go#L28) to load the plugin, get the variable `DevStreamPlugin` that implements the ` DevStreamPlugin` interface, and then you can call the corresponding plugin logic functions. This is why it is not recommended to modify the `/cmd/plugin/YOUR-PLUGIN-NAME/main.go` file directly.
5555

56-
Note: The `main()` in `/cmd/plugin/YOUR-PLUGIN-NAME/main.go` file will not executed, it is only used to avoid the goclangci-lint error.
56+
Note: The `main()` in `/cmd/plugin/YOUR-PLUGIN-NAME/main.go` file will not be executed, it is only used to avoid the goclangci-lint error.

docs/quickstart_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For Linux/Macos users:
1515

1616
## 2 Prepare a Config File
1717

18-
Before you start: for an example of DevStream config, see [examples/tools-quickstart.yaml](./examples/tools-quickstart.yaml). Remember to open this configuration file, modify all FULL_UPPER_CASE_STRINGS (like YOUR_GITHUB_USERNAME, for example) in it to your own. Pay attention to the meaning of each item to ensure that it is what you want. For other plugins, checkout the "Plugins" section in our [doc](https://docs.devstream.io) for detailed usage.
18+
Before you start: for an example of DevStream config, see [examples/tools-quickstart.yaml](https://github.com/devstream-io/devstream/blob/main/examples/tools-quickstart.yaml). Remember to open this configuration file, modify all FULL_UPPER_CASE_STRINGS (like YOUR_GITHUB_USERNAME, for example) in it to your own. Pay attention to the meaning of each item to ensure that it is what you want. For other plugins, checkout the "Plugins" section in our [doc](https://docs.devstream.io) for detailed usage.
1919

2020
Download the [examples/quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/main/examples/quickstart.yaml) and [examples/tools-quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/main/examples/tools-quickstart.yaml) to your working directory and rename `quickstart.yaml` to `config.yaml`:
2121

docs/quickstart_zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
## 2 准备一个配置文件
1414

15-
开始之前:这是一个DevStream配置的例子:[examples/tools-quickstart.yaml](../examples/tools-quickstart.yaml)。记得打开这个配置文件,把里面所有的 `FULL_UPPER_CASE_STRINGS`(比如说 `YOUR_GITHUB_USERNAME` )修改成你自己的。注意每一项的含义,并确保它是你要的。对于其他插件,请查看我们的 [文档](https://docs.devstream.io) 中的"插件"部分,以了解详细用法。
15+
开始之前:这是一个DevStream配置的例子:[examples/tools-quickstart.yaml](https://github.com/devstream-io/devstream/blob/main/examples/tools-quickstart.yaml) 。记得打开这个配置文件,把里面所有的 `FULL_UPPER_CASE_STRINGS`(比如说 `YOUR_GITHUB_USERNAME` )修改成你自己的。注意每一项的含义,并确保它是你要的。对于其他插件,请查看我们的 [文档](https://docs.devstream.io) 中的"插件"部分,以了解详细用法。
1616

1717
[examples/quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/main/examples/quickstart.yaml)[examples/tools-quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/main/examples/tools-quickstart.yaml) 文件下载到你到工作目录下,然后重命名`quickstart.yaml``config.yaml`
1818

hack/release/auto-release-darwin-arm64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ while getopts "t:" opt; do
1818
done
1919

2020
if [ "${tag}" == "invalid" ]; then
21-
echo "Maybe you forgot to use -t flag. E.g. sh auto-release-darwin-arm64.sh -t v0.6.0"
21+
echo "Maybe you forgot to use -t flag. E.g. sh auto-release-darwin-arm64.sh -t 0.6.0"
2222
exit 1
2323
fi
2424
echo "tag: ${tag}"

hack/terraform/bucket-policy.tf

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
resource "aws_s3_bucket_policy" "policy_iterable" {
2+
bucket = "download.devstream.io"
3+
policy = jsonencode({
4+
"Version" : "2012-10-17",
5+
"Statement" : [
6+
{
7+
"Sid" : "PublicReadGetObjectOnlyForCloudFlareIps111",
8+
"Effect" : "Deny",
9+
"Principal" : "*",
10+
"Action" : "s3:GetObject",
11+
"Resource" : [
12+
"arn:aws:s3:::download.devstream.io",
13+
"arn:aws:s3:::download.devstream.io/*"
14+
],
15+
"Condition" : {
16+
"NotIpAddress" : {
17+
"aws:SourceIp" : [
18+
"2400:cb00::/32",
19+
"2606:4700::/32",
20+
"2803:f800::/32",
21+
"2405:b500::/32",
22+
"2405:8100::/32",
23+
"2a06:98c0::/29",
24+
"2c0f:f248::/32",
25+
"173.245.48.0/20",
26+
"103.21.244.0/22",
27+
"103.22.200.0/22",
28+
"103.31.4.0/22",
29+
"141.101.64.0/18",
30+
"108.162.192.0/18",
31+
"190.93.240.0/20",
32+
"188.114.96.0/20",
33+
"197.234.240.0/22",
34+
"198.41.128.0/17",
35+
"162.158.0.0/15",
36+
"104.16.0.0/13",
37+
"104.24.0.0/14",
38+
"172.64.0.0/13",
39+
"131.0.72.0/22"
40+
]
41+
}
42+
}
43+
}
44+
]
45+
})
46+
}

hack/terraform/devstream-iam.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ resource "aws_iam_group_policy" "DevStream-Download-Bucket-RW-Policy" {
141141
"Effect": "Allow",
142142
"Action": [
143143
"s3:GetObject",
144+
"s3:GetObjectAcl",
144145
"s3:PutObject",
146+
"s3:PutObjectAcl",
145147
"s3:DeleteObject",
146148
"s3:RestoreObject",
147149
"s3:ListBucket",

0 commit comments

Comments
 (0)