-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
… (#4128) * Keep new line at end of file in yamlprocessor (#4033) * Keep new line at end of file in yamlprocessor * add a new line to the EOF in case of there is no at EOF * update comment * update eventwatcher_test * consider new line at EOF on parsing kubernetes manifest * update go-yaml v1.9.8 * remove TODO because PR of go-yaml was merged * consider to handle multiple new line at EOF * remove indent vioration of tab * support standalone ECS task (#4084) Fixes #2734 * Small lint fix (#4097) * fix null pointer (#4102) * fix null pointer * apply review * Add example for ecs standalone task (#4104) * add example for ecs standalone task * add example for ecs standalone task * wip * add yaml example to docs. * add example for ecs standalone task * wip * add yaml example to docs. * apply review * Update docs/content/en/docs-dev/user-guide/managing-application/defining-app-configuration/ecs.md Co-authored-by: Khanh Tran <[email protected]> Co-authored-by: Khanh Tran <[email protected]> * Add update contributions command (#4114) * Add update contributions command * Update hack/gen-contributions.sh * Run update go deps (#4117) * feature: cli and grpc to disable application (#4119) * Add new line in detailsFormat to fix plan preview format (#4122) * add document how to disable (#4123) Co-authored-by: Kurochan <[email protected]> Co-authored-by: Tomoki Hori <[email protected]> Co-authored-by: Khanh Tran <[email protected]> Co-authored-by: kevin55156 <[email protected]> Co-authored-by: Yoshiaki Ishihara <[email protected]>
- Loading branch information
1 parent
4277963
commit a7c563c
Showing
37 changed files
with
1,327 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
examples/ecs/standalone-task/launch-type/ec2/network-mode/awsvpc/app.pipecd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: pipecd.dev/v1beta1 | ||
kind: ECSApp | ||
spec: | ||
name: standalonetask-ec2-awsvpc | ||
labels: | ||
env: example | ||
team: xyz | ||
input: | ||
taskDefinitionFile: taskdef.yaml | ||
clusterArn: arn:aws:ecs:ap-northeast-1:XXXX:cluster/test-cluster | ||
launchType: EC2 | ||
awsvpcConfiguration: | ||
subnets: | ||
- subnet-YYYY | ||
- subnet-YYYY | ||
description: | | ||
This app demonstrates how to deploy an ECS application with [Quick Sync](https://pipecd.dev/docs/concepts/#sync-strategy) strategy.\ | ||
No pipeline is specified then in each deployment PipeCD will roll out the new version and switch all traffic to it immediately.\ | ||
References: [adding a new app](https://pipecd.dev/docs/user-guide/managing-application/adding-an-application/), [app configuration](https://pipecd.dev/docs/user-guide/configuration-reference/) |
20 changes: 20 additions & 0 deletions
20
examples/ecs/standalone-task/launch-type/ec2/network-mode/awsvpc/taskdef.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
family: nginx-test-fam-ec2 | ||
executionRoleArn: arn:aws:iam::XXXX:role/ecsTaskExecutionRole | ||
containerDefinitions: | ||
- command: null | ||
cpu: 100 | ||
image: XXXX.dkr.ecr.ap-northeast-1.amazonaws.com/nginx:1 | ||
memory: 100 | ||
mountPoints: [] | ||
name: web | ||
portMappings: | ||
- containerPort: 80 | ||
compatibilities: | ||
- EC2 | ||
requiresCompatibilities: | ||
- EC2 | ||
networkMode: awsvpc | ||
memory: 512 | ||
cpu: 256 | ||
pidMode: "" | ||
volumes: [] |
15 changes: 15 additions & 0 deletions
15
examples/ecs/standalone-task/launch-type/ec2/network-mode/bridge/app.pipecd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: pipecd.dev/v1beta1 | ||
kind: ECSApp | ||
spec: | ||
name: standalonetask-ec2-bridge-1 | ||
labels: | ||
env: example | ||
team: xyz | ||
input: | ||
taskDefinitionFile: taskdef.yaml | ||
launchType: EC2 | ||
clusterArn: arn:aws:ecs:ap-northeast-1:XXXX:cluster/test-cluster | ||
description: | | ||
This app demonstrates how to deploy an ECS application with [Quick Sync](https://pipecd.dev/docs/concepts/#sync-strategy) strategy.\ | ||
No pipeline is specified then in each deployment PipeCD will roll out the new version and switch all traffic to it immediately.\ | ||
References: [adding a new app](https://pipecd.dev/docs/user-guide/managing-application/adding-an-application/), [app configuration](https://pipecd.dev/docs/user-guide/configuration-reference/) |
20 changes: 20 additions & 0 deletions
20
examples/ecs/standalone-task/launch-type/ec2/network-mode/bridge/taskdef.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
family: nginx-test-fam-ec2-bridge | ||
executionRoleArn: arn:aws:iam::XXXX:role/ecsTaskExecutionRole | ||
containerDefinitions: | ||
- command: null | ||
cpu: 100 | ||
image: XXXX.dkr.ecr.ap-northeast-1.amazonaws.com/nginx:1 | ||
memory: 100 | ||
mountPoints: [] | ||
name: web | ||
portMappings: | ||
- containerPort: 80 | ||
compatibilities: | ||
- EC2 | ||
requiresCompatibilities: | ||
- EC2 | ||
networkMode: bridge | ||
memory: 512 | ||
cpu: 256 | ||
pidMode: "" | ||
volumes: [] |
21 changes: 21 additions & 0 deletions
21
examples/ecs/standalone-task/launch-type/fargate/app.pipecd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: pipecd.dev/v1beta1 | ||
kind: ECSApp | ||
spec: | ||
name: standalonetask-fargate | ||
labels: | ||
env: example | ||
team: xyz | ||
input: | ||
taskDefinitionFile: taskdef.yaml | ||
clusterArn: arn:aws:ecs:ap-northeast-1:XXXX:cluster/test-cluster | ||
awsvpcConfiguration: | ||
assignPublicIp: ENABLED | ||
subnets: | ||
- subnet-YYYY | ||
- subnet-YYYY | ||
securityGroups: | ||
- sg-YYYY | ||
description: | | ||
This app demonstrates how to deploy an ECS application with [Quick Sync](https://pipecd.dev/docs/concepts/#sync-strategy) strategy.\ | ||
No pipeline is specified then in each deployment PipeCD will roll out the new version and switch all traffic to it immediately.\ | ||
References: [adding a new app](https://pipecd.dev/docs/user-guide/managing-application/adding-an-application/), [app configuration](https://pipecd.dev/docs/user-guide/configuration-reference/) |
20 changes: 20 additions & 0 deletions
20
examples/ecs/standalone-task/launch-type/fargate/taskdef.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
family: nginx-test-fam-1 | ||
executionRoleArn: arn:aws:iam::XXXX:role/ecsTaskExecutionRole | ||
containerDefinitions: | ||
- command: null | ||
cpu: 100 | ||
image: XXXX.dkr.ecr.ap-northeast-1.amazonaws.com/nginx:1 | ||
memory: 100 | ||
mountPoints: [] | ||
name: web | ||
portMappings: | ||
- containerPort: 80 | ||
compatibilities: | ||
- FARGATE | ||
requiresCompatibilities: | ||
- FARGATE | ||
networkMode: awsvpc | ||
memory: 512 | ||
cpu: 256 | ||
pidMode: "" | ||
volumes: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2022 The PipeCD Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
echo "Updating the contributors list on README.md ..." | ||
|
||
LINE_NUM=$(($(grep -Fn "### Thanks to the contributors of PipeCD" README.md | cut -f1 -d ':')+1)) | ||
head -n $LINE_NUM README.md >> README.md.tmp | ||
|
||
while read -r line | ||
do | ||
cat <<EOT >> README.md.tmp | ||
$line | ||
EOT | ||
done < <(gh api -XGET /repos/pipe-cd/pipecd/contributors -F per_page=100 | jq -r '.[] | "<a href=\"\(.html_url)\"><img src=\"\(.avatar_url)\" title=\"\(.login)\" width=\"80\" height=\"80\"></a>"') | ||
|
||
mv README.md.tmp README.md | ||
|
||
echo "Successfully update the contributions list on README.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.