-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prototype CloudRund deployment with the new design of deployment conf…
…iguration (#660) **What this PR does / why we need it**: **Which issue(s) this PR fixes**: Fixes # **Does this PR introduce a user-facing change?**: <!-- If no, just write "NONE" in the release-note block below. --> ```release-note NONE ``` This PR was merged by Kapetanios.
- Loading branch information
Showing
19 changed files
with
293 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,17 @@ | ||
apiVersion: pipecd.dev/v1beta1 | ||
kind: CloudRunApp | ||
spec: | ||
input: | ||
platform: managed | ||
region: asia-northeast1 | ||
pipeline: | ||
stages: | ||
# Deploy workloads of the new version. | ||
# But this is still receiving no traffic. | ||
- name: CLOUDRUN_CANARY_ROLLOUT | ||
# Change the traffic routing state where | ||
# the new version will receive the specified percentage of traffic. | ||
# This is known as multi-phase canary strategy. | ||
- name: CLOUDRUN_TRAFFIC_ROUTING | ||
# Promote new version to receive amount of traffic. | ||
- name: CLOUDRUN_PROMOTE | ||
with: | ||
canary: 10 | ||
percent: 10 | ||
# Optional: We can also add an ANALYSIS stage to verify the new version. | ||
# If this stage finds any not good metrics of the new version, | ||
# a rollback process to the previous version will be executed. | ||
- name: ANALYSIS | ||
# Change the traffic routing state where | ||
# the new version will receive 100% of the traffic. | ||
- name: CLOUDRUN_TRAFFIC_ROUTING | ||
# Promote new version to receive all traffic. | ||
- name: CLOUDRUN_PROMOTE | ||
with: | ||
canary: 100 | ||
percent: 100 |
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 |
---|---|---|
|
@@ -2,6 +2,3 @@ | |
apiVersion: pipecd.dev/v1beta1 | ||
kind: CloudRunApp | ||
spec: | ||
input: | ||
platform: managed | ||
region: asia-northeast1 |
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
15 changes: 15 additions & 0 deletions
15
pkg/app/piped/cloudprovider/cloudrun/servicemanifest_test.go
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 @@ | ||
// Copyright 2020 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. | ||
|
||
package cloudrun |
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
Oops, something went wrong.