Skip to content

Commit ab51de5

Browse files
authored
Release version v0.41.0 (#4090)
* Release version v0.41.0 * Update release note * Change order * Add new features note * Update note * Update note
1 parent 2947414 commit ab51de5

File tree

78 files changed

+6269
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+6269
-67
lines changed

RELEASE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tag: v0.40.1
1+
tag: v0.41.0
22

33
releaseNoteGenerator:
44
showCommitter: false

docs/config.toml

+4
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ no = 'Sorry to hear that. Please <a href="https://github.com/pipe-cd/pipecd/issu
163163
githubbranch = "master"
164164
url = "/docs-dev/"
165165

166+
[[params.versions]]
167+
version = "v0.41.x"
168+
url = "/docs-v0.41.x/"
169+
166170
[[params.versions]]
167171
version = "v0.40.x"
168172
url = "/docs-v0.40.x/"
+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
---
2+
title: "Release v0.41.0"
3+
linkTitle: "Release v0.41.0"
4+
date: 2022-12-20
5+
description: >
6+
Release v0.41.0
7+
---
8+
9+
## Changes since v0.40.1
10+
11+
### Breaking Changes
12+
13+
All __applications configuration__ file should NOT use the `spec.triggerPaths` (marked as deprecated previously), but use `spec.trigger.onCommit.paths` instead. Refer to [application configuration docs](/docs/user-guide/configuration-reference/#deploymenttrigger)
14+
15+
```yaml
16+
apiVersion: pipecd.dev/v1beta1
17+
kind: KubernetesApp
18+
spec:
19+
name: analysis-by-http
20+
labels:
21+
env: example
22+
team: product
23+
# Previously, this will NOT be accepted for new version.
24+
triggerPaths:
25+
- deployment.yaml
26+
# Use this pattern instead.
27+
trigger:
28+
onCommit:
29+
paths:
30+
- deployment.yaml
31+
```
32+
33+
* Remove trigger paths ([#4037](https://github.com/pipe-cd/pipecd/pull/4037))
34+
35+
### New features
36+
37+
From now, you can have a better insight into your application/project's deployment via deployment data visualized by the PipeCD insight feature. Please refer to the [docs](/docs/user-guide/insights/).
38+
39+
![image](/images/insights.png)
40+
41+
* Introduce Insights feature ([#4071](https://github.com/pipe-cd/pipecd/pull/4071))
42+
* Support Cloud Run application for planpreview ([#4079](https://github.com/pipe-cd/pipecd/pull/4079))
43+
* Support setting kubectlVersion via piped config ([#4081](https://github.com/pipe-cd/pipecd/pull/4081))
44+
* Add `spec.trigger.onCommit.ignores` to application config ([#4059](https://github.com/pipe-cd/pipecd/pull/4059))
45+
46+
### Notable Changes
47+
48+
* Improve the health description for Cloud Run live state ([#4085](https://github.com/pipe-cd/pipecd/pull/4085))
49+
* Add `--include-crds` option to include CRDS for Helm ([#4077](https://github.com/pipe-cd/pipecd/pull/4077))
50+
* Ensure newly created revision is ready to receive traffic before going to the next stage ([#4074](https://github.com/pipe-cd/pipecd/pull/4074))
51+
* Update web dependencies ([#4061](https://github.com/pipe-cd/pipecd/pull/4061))
52+
* Use helper "serviceAccountName" on create role binding ([#4054](https://github.com/pipe-cd/pipecd/pull/4054))
53+
54+
### Internal Changes
55+
56+
* Refactor the loadCloudRunManifest function ([#4089](https://github.com/pipe-cd/pipecd/pull/4089))
57+
* Enable to run lint/go on M1 ([#4088](https://github.com/pipe-cd/pipecd/pull/4088))
58+
* Implement lint/go command for local ([#4086](https://github.com/pipe-cd/pipecd/pull/4086))
59+
* Fix the wrong link for tools ([#4083](https://github.com/pipe-cd/pipecd/pull/4083))
60+
* Remove unused docs ([#4082](https://github.com/pipe-cd/pipecd/pull/4082))
61+
* Rename symbol cloudProvider to platformProvider ([#4080](https://github.com/pipe-cd/pipecd/pull/4080))
62+
* Rename Insighs step to resolution ([#4078](https://github.com/pipe-cd/pipecd/pull/4078))
63+
* Fix application store listBy method ([#4075](https://github.com/pipe-cd/pipecd/pull/4075))
64+
* Fix app live resource lister wrong attribute ([#4072](https://github.com/pipe-cd/pipecd/pull/4072))
65+
* Update pull request template ([#4073](https://github.com/pipe-cd/pipecd/pull/4073))
66+
* Update insights doc ([#4070](https://github.com/pipe-cd/pipecd/pull/4070))
67+
* Add the log for detecting pruned manifest ([#4068](https://github.com/pipe-cd/pipecd/pull/4068))
68+
* Better time range based on step to request Insights data ([#4069](https://github.com/pipe-cd/pipecd/pull/4069))
69+
* Update the codeql actoins to v2 ([#4067](https://github.com/pipe-cd/pipecd/pull/4067))
70+
* Make it possible to run the codeql workflow manually ([#4066](https://github.com/pipe-cd/pipecd/pull/4066))
71+
* Update the codeql analysis schedule ([#4065](https://github.com/pipe-cd/pipecd/pull/4065))
72+
* fix description of apiAddress ([#4064](https://github.com/pipe-cd/pipecd/pull/4064))
73+
* Enable deployment frequency and failure rate charts ([#4062](https://github.com/pipe-cd/pipecd/pull/4062))
74+
* Update docs for onCommit.ignores ([#4063](https://github.com/pipe-cd/pipecd/pull/4063))
75+
* Fix bug on parsing empty kubernetes manifest ([#4060](https://github.com/pipe-cd/pipecd/pull/4060))
76+
* Apply cache to store completed Insight chunk ([#4057](https://github.com/pipe-cd/pipecd/pull/4057))
77+
* Update the default resources docs ([#4058](https://github.com/pipe-cd/pipecd/pull/4058))
78+
* Add release command ([#4056](https://github.com/pipe-cd/pipecd/pull/4056))
79+
* Update gen release docs command ([#4055](https://github.com/pipe-cd/pipecd/pull/4055))
80+
* Ensure group version docs ([#4053](https://github.com/pipe-cd/pipecd/pull/4053))
81+
* Update actions-gh-release version to v2.4.0 ([#4052](https://github.com/pipe-cd/pipecd/pull/4052))
82+
* Fix the wrong link for actions-gh-release ([#4051](https://github.com/pipe-cd/pipecd/pull/4051))
83+
* Replace all of pull request numbers with their link because of release note ([#4050](https://github.com/pipe-cd/pipecd/pull/4050))
84+
* Add release commands to make ([#4049](https://github.com/pipe-cd/pipecd/pull/4049))
85+
* Remove unused config ([#4045](https://github.com/pipe-cd/pipecd/pull/4045))
86+
* Use a make command instead of a hack command directly ([#4046](https://github.com/pipe-cd/pipecd/pull/4046))
87+
* Bump decode-uri-component from 0.2.0 to 0.2.2 in /web ([#4048](https://github.com/pipe-cd/pipecd/pull/4048))
88+
* Replace deprecated actions commands with env files ([#4047](https://github.com/pipe-cd/pipecd/pull/4047))
89+
* Remove unused docs ([#4044](https://github.com/pipe-cd/pipecd/pull/4044))
90+
* Add helm 3.8.2 to PipeCD prerequisites ([#4043](https://github.com/pipe-cd/pipecd/pull/4043))
91+
* Fix the release note ([#4042](https://github.com/pipe-cd/pipecd/pull/4042))
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: "Welcome to PipeCD"
3+
linkTitle: "Documentation [v0.41.x]"
4+
type: docs
5+
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
title: "Concepts"
3+
linkTitle: "Concepts"
4+
weight: 2
5+
description: >
6+
This page describes several core concepts in PipeCD.
7+
---
8+
9+
![](/images/architecture-overview.png)
10+
<p style="text-align: center;">
11+
Component Architecture
12+
</p>
13+
14+
### Piped
15+
16+
`piped` is a single binary component you run as an agent in your cluster, your local network to handle the deployment tasks.
17+
It can be run inside a Kubernetes cluster by simply starting a Pod or a Deployment.
18+
This component is designed to be stateless, so it can also be run in a single VM or even your local machine.
19+
20+
### Control Plane
21+
22+
A centralized component managing deployment data and provides gPRC API for connecting `piped`s as well as all web-functionalities of PipeCD such as
23+
authentication, showing deployment list/details, application list/details, delivery insights...
24+
25+
### Project
26+
27+
A project is a logical group of applications to be managed by a group of users.
28+
Each project can have multiple `piped` instances from different clouds or environments.
29+
30+
There are three types of project roles:
31+
32+
- **Viewer** has only permissions of viewing to deployment and application in the project.
33+
- **Editor** has all viewer permissions, plus permissions for actions that modify state such as manually trigger/cancel the deployment.
34+
- **Admin** has all editor permissions, plus permissions for managing project data, managing project `piped`.
35+
36+
### Application
37+
38+
A collect of resources (containers, services, infrastructure components...) and configurations that are managed together.
39+
PipeCD supports multiple kinds of applications such as `KUBERNETES`, `TERRAFORM`, `ECS`, `CLOUDRUN`, `LAMBDA`...
40+
41+
### Application Configuration
42+
43+
A YAML file that contains information to define and configure application.
44+
Each application requires one file at application directory stored in the Git repository.
45+
The default file name is `app.pipecd.yaml`.
46+
47+
### Application Directory
48+
49+
A directory in Git repository containing application configuration file and application manifests.
50+
Each application must have one application directory.
51+
52+
### Deployment
53+
54+
A deployment is a process that does transition from the current state (running state) to the desired state (specified state in Git) of a specific application.
55+
When the deployment is success, it means the running state is being synced with the desired state specified in the target commit.
56+
57+
### Sync Strategy
58+
59+
There are 3 strategies that PipeCD supports while syncing your application state with its configuration stored in Git. Which are:
60+
- Quick Sync: a fast way to make the running application state as same as its Git stored configuration. The generated pipeline contains only one predefined `SYNC` stage.
61+
- Pipeline Sync: sync the running application state with its Git stored configuration through a pipeline defined in its application configuration.
62+
- Auto Sync: depends on your defined application configuration, `piped` will decide the best way to sync your application state with its Git stored configuration.
63+
64+
### Platform Provider
65+
66+
Note: The previous name of this concept was Cloud Provider.
67+
68+
PipeCD supports multiple platforms and multiple kinds of applications.
69+
Platform Provider defines which platform, cloud and where application should be deployed to.
70+
71+
Currently, PipeCD is supporting these five platform providers: `KUBERNETES`, `ECS`, `TERRAFORM`, `CLOUDRUN`, `LAMBDA`.
72+
73+
### Analysis Provider
74+
An external product that provides metrics/logs to evaluate deployments, such as `Prometheus`, `Datadog`, `Stackdriver`, `CloudWatch` and so on.
75+
It is mainly used in the [Automated deployment analysis](../user-guide/managing-application/customizing-deployment/automated-deployment-analysis/) context.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: "Contributor Guide"
3+
linkTitle: "Contributor Guide"
4+
weight: 6
5+
description: >
6+
This guide is for anyone who want to contribute to PipeCD project. We are so excited to have you!
7+
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: "Architectural overview"
3+
linkTitle: "Architectural overview"
4+
weight: 3
5+
description: >
6+
This page describes the architecture of PipeCD.
7+
---
8+
9+
![](/images/architecture-overview.png)
10+
<p style="text-align: center;">
11+
Component Architecture
12+
</p>
13+
14+
### Piped
15+
16+
A single binary component runs in your cluster, your local network to handle the deployment tasks.
17+
It can be run inside a Kubernetes cluster by simply starting a Pod or a Deployment.
18+
This component is designed to be stateless, so it can also be run in a single VM or even your local machine.
19+
20+
### Control Plane
21+
22+
A centralized component manages deployment data and provides gPRC API for connecting `piped`s as well as all web-functionalities of PipeCD such as
23+
authentication, showing deployment list/details, application list/details, delivery insights...
24+
25+
Control Plane contains the following components:
26+
- `server`: a service to provide api for piped, web and serve static assets for web.
27+
- `ops`: a service to provide administrative features for Control Plane owner like adding/managing projects.
28+
- `cache`: a redis cache service for caching internal data.
29+
- `datastore`: data storage for storing deployment, application data
30+
- this can be a fully-managed service such as `Firestore`, `Cloud SQL`...
31+
- or a self-managed such as `MySQL`
32+
- `filestore`: file storage for storing logs, application states
33+
- this can a fully-managed service such as `GCS`, `S3`...
34+
- or a self-managed service such as `Minio`
35+
36+
For more information, see [Architecture overview of Control Plane](../../user-guide/managing-controlplane/architecture-overview/).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: "Contributing"
3+
linkTitle: "Contributing"
4+
weight: 1
5+
description: >
6+
This page describes how to contribute to PipeCD.
7+
---
8+
9+
PipeCD is an open source project that anyone in the community can use, improve, and enjoy. We'd love you to join us!
10+
11+
## Contributor License Agreement
12+
13+
Contributions to this project must be accompanied by a Contributor License Agreement ("CLA") described at [pipe-cd/pipecd/master/CLA.md](https://github.com/pipe-cd/pipecd/blob/master/CLA.md). You (or your employer) retain the copyright to your contribution; this simply gives us permission to use and redistribute your contributions as part of the project.
14+
15+
You generally only need to sign a CLA once, so if you've already signed one, you probably don't need to do it again.
16+
17+
In case you have not signed yet, [pipecd-bot](https://github.com/pipecd-bot) will guide you to sign the CLA _when you send the first pull request to [pipe-cd/pipecd](https://github.com/pipe-cd/pipecd) repository_.
18+
19+
## Creating an issue
20+
21+
If you've found a problem, please create an issue in the [pipe-cd/pipecd](https://github.com/pipe-cd/pipecd/issues) repository.
22+
23+
## Creating a pull request
24+
25+
Look at our [help wanted issues](https://github.com/pipe-cd/pipecd/issues?q=is%3Aissue+is%3Aopen+label%3A"help+wanted") or our [good first issues](https://github.com/pipe-cd/pipecd/issues?q=is%3Aissue+is%3Aopen+label%3A"good+first+issue") for finding some good issues for your first pull request.
26+
27+
### Small tips
28+
29+
The pull request title is used to generate our release changelog. Therefore, it would be great if you write the title that is easier to understand from the user's point of view.
30+
31+
## Code reviews
32+
33+
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult [GitHub Help](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) for more information on using pull requests.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
title: "Development"
3+
linkTitle: "Development"
4+
weight: 2
5+
description: >
6+
This page describes how to build, test PipeCD source code at your local environment.
7+
---
8+
9+
## Prerequisites
10+
11+
- [Go 1.19](https://go.dev/)
12+
- [Docker](https://www.docker.com/)
13+
- [kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation) (If you want to run Control Plane locally)
14+
- [helm 3.8](https://helm.sh/docs/intro/install/) (If you want to run Control Plane locally)
15+
16+
## Repositories
17+
- [pipecd](https://github.com/pipe-cd/pipecd): contains all source code and documentation of PipeCD project.
18+
- [examples](https://github.com/pipe-cd/examples): contains various generated examples to demonstrate how to use PipeCD.
19+
20+
## Commands
21+
22+
- `make build/go`: builds all go modules including pipecd, piped, pipectl.
23+
- `make build/web`: builds the static files for web.
24+
25+
- `make test/go`: runs all unit tests of go modules.
26+
- `make test/web`: runs all unit tests of web.
27+
- `make test/integration`: runs integration tests.
28+
29+
- `make run/piped`: runs Piped locally (for more information, see [here](#how-to-run-piped-agent-locally)).
30+
- `make run/site`: runs PipeCD site locally (requires [hugo](https://github.com/gohugoio/hugo) with `_extended` version `0.92.1` or later to be installed).
31+
32+
- `make gen/code`: generate Go and Typescript code from protos and mock configs. You need to run it if you modified any proto or mock definition files.
33+
34+
For the full list of available commands, please see the Makefile at the root of repository.
35+
36+
## How to run Control Plane locally
37+
38+
1. Start running a Kubernetes cluster
39+
40+
``` console
41+
make kind-up
42+
```
43+
44+
Once it is no longer used, run `make kind-down` to delete it.
45+
46+
2. Install Control Plane into the local cluster
47+
48+
``` console
49+
make run/pipecd
50+
```
51+
52+
Once all components are running up, use `kubectl port-forward` to expose the installed Control Plane on your localhost:
53+
54+
``` console
55+
kubectl -n pipecd port-forward svc/pipecd 8080
56+
```
57+
58+
3. Access to the local Control Plane web console
59+
60+
Point your web browser to [http://localhost:8080](http://localhost:8080) to login with the configured static admin account: project = `quickstart`, username = `hello-pipecd`, password = `hello-pipecd`.
61+
62+
## How to run Piped agent locally
63+
64+
1. Prepare the piped configuration file `piped-config.yaml`
65+
66+
2. Ensure that your `kube-context` is connecting to the right kubernetes cluster
67+
68+
3. Run the following command to start running `piped` (if you want to connect Piped to a locally running Control Plane, add `INSECURE=true` option)
69+
70+
``` console
71+
make run/piped CONFIG_FILE=piped-config.yaml
72+
```
73+
74+
## Docs and workaround with docs
75+
76+
PipeCD official site contains multiple versions of documentation, all placed under the `/docs/content/en` directory, which are:
77+
- `/docs`: stable version docs, usually synced with the latest released version docs.
78+
- `/docs-dev`: experimental version docs, contains docs for not yet released features or changes.
79+
- `/docs-v0.x.x`: contains docs for specified version family (a version family is all versions which in the same major release).
80+
81+
Basically, we have two simple rules:
82+
- Do not touch to the `/docs` content directly.
83+
- Keep stable docs version synced with the latest released docs version.
84+
85+
Here are the flow of docs contribution regard some known scenarios:
86+
1. Update docs that are related to a specified version (which is not the latest released version):
87+
In such case, update the docs under `/docs-v0.x.x` is enough.
88+
2. Update docs for not yet released features or changes:
89+
In such case, update the docs under `/docs-dev` is enough.
90+
3. Update docs that are related to the latest released docs version:
91+
- Change the docs' content that fixes the issue under `/docs-dev` and `/docs-v0.x.x`, they share the same file structure so you should find the right files in both directories.
92+
- Use `make gen/stable-docs` command to sync the latest released version docs under `/docs-v0.x.x` to `/docs`
93+
94+
If you find any issues related to the docs, we're happy to accept your help.

0 commit comments

Comments
 (0)