From fa0c6af6aaf110294589e83970b8e47aa9ffc265 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Wed, 6 Mar 2019 21:17:13 +0200 Subject: [PATCH 1/3] Release v0.8.0 --- README.md | 2 +- artifacts/flagger/deployment.yaml | 2 +- charts/flagger/Chart.yaml | 4 ++-- charts/flagger/values.yaml | 2 +- docs/gitbook/how-it-works.md | 12 +++++------- pkg/version/version.go | 2 +- 6 files changed, 11 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 19be6714..899488d3 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Flagger documentation can be found at [docs.flagger.app](https://docs.flagger.ap * [Flagger install on GKE](https://docs.flagger.app/install/flagger-install-on-google-cloud) * How it works * [Canary custom resource](https://docs.flagger.app/how-it-works#canary-custom-resource) - * [Virtual Service](https://docs.flagger.app/how-it-works#virtual-service) + * [Routing](https://docs.flagger.app/how-it-works#istio-routing) * [Canary deployment stages](https://docs.flagger.app/how-it-works#canary-deployment) * [Canary analysis](https://docs.flagger.app/how-it-works#canary-analysis) * [HTTP metrics](https://docs.flagger.app/how-it-works#http-metrics) diff --git a/artifacts/flagger/deployment.yaml b/artifacts/flagger/deployment.yaml index 72c52d34..a28a3042 100644 --- a/artifacts/flagger/deployment.yaml +++ b/artifacts/flagger/deployment.yaml @@ -22,7 +22,7 @@ spec: serviceAccountName: flagger containers: - name: flagger - image: quay.io/stefanprodan/flagger:0.7.0 + image: quay.io/stefanprodan/flagger:0.8.0 imagePullPolicy: IfNotPresent ports: - name: http diff --git a/charts/flagger/Chart.yaml b/charts/flagger/Chart.yaml index 62276abe..4681d1a3 100644 --- a/charts/flagger/Chart.yaml +++ b/charts/flagger/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: flagger -version: 0.7.0 -appVersion: 0.7.0 +version: 0.8.0 +appVersion: 0.8.0 kubeVersion: ">=1.11.0-0" engine: gotpl description: Flagger is a Kubernetes operator that automates the promotion of canary deployments using Istio routing for traffic shifting and Prometheus metrics for canary analysis. diff --git a/charts/flagger/values.yaml b/charts/flagger/values.yaml index dee63687..ae818650 100644 --- a/charts/flagger/values.yaml +++ b/charts/flagger/values.yaml @@ -2,7 +2,7 @@ image: repository: quay.io/stefanprodan/flagger - tag: 0.7.0 + tag: 0.8.0 pullPolicy: IfNotPresent metricsServer: "http://prometheus.istio-system.svc.cluster.local:9090" diff --git a/docs/gitbook/how-it-works.md b/docs/gitbook/how-it-works.md index 2fff5bf7..cf69fec6 100644 --- a/docs/gitbook/how-it-works.md +++ b/docs/gitbook/how-it-works.md @@ -96,9 +96,11 @@ spec: The target deployment should expose a TCP port that will be used by Flagger to create the ClusterIP Service and the Istio Virtual Service. The container port from the target deployment should match the `service.port` value. -### Virtual Service +### Istio routing -Flagger creates an Istio Virtual Service based on the Canary service spec. +Flagger creates an Istio Virtual Service based on the Canary service spec. The service configuration lets you expose +an app inside or outside the mesh. +You can also define HTTP match conditions, URI rewrite rules, CORS policies, timeout and retries. The following spec exposes the `frontend` workload inside the mesh on `frontend.test.svc.cluster.local:9898` and outside the mesh on `frontend.example.com`. You'll have to specify an Istio ingress gateway for external hosts. @@ -143,10 +145,6 @@ spec: allowHeaders: - x-some-header maxAge: 24h - # retry policy when a HTTP request fails (optional) - retries: - attempts: 3 - perTryTimeout: 3s ``` For the above spec Flagger will generate the following virtual service: @@ -202,7 +200,7 @@ spec: weight: 0 ``` -Flagger keeps in sync the virtual service with the canary service spec. Any direct modification of the virtual +Flagger keeps in sync the virtual service with the canary service spec. Any direct modification to the virtual service spec will be overwritten. To expose a workload inside the mesh on `http://backend.test.svc.cluster.local:9898`, diff --git a/pkg/version/version.go b/pkg/version/version.go index c6a4403a..f552118c 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -1,4 +1,4 @@ package version -var VERSION = "0.7.0" +var VERSION = "0.8.0" var REVISION = "unknown" From 70a2cbf1c6da211209950b90f1fd58bc0abf7530 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Wed, 6 Mar 2019 21:17:37 +0200 Subject: [PATCH 2/3] Add change log for v0.8.0 --- CHANGELOG.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 807c1768..c5477407 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,22 @@ All notable changes to this project are documented in this file. -## Unreleased +## 0.8.0 (2019-03-06) + +Adds support for CORS policy and HTTP request headers manipulation #### Features -- Allow headers to be appended to HTTP requests [#70](https://github.com/stefanprodan/flagger/pull/70) +- CORS policy support [#83](https://github.com/stefanprodan/flagger/pull/83) +- Allow headers to be appended to HTTP requests [#82](https://github.com/stefanprodan/flagger/pull/82) + +#### Improvements + +- Refactor the routing management + [#72](https://github.com/stefanprodan/flagger/pull/72) + [#80](https://github.com/stefanprodan/flagger/pull/80) +- Fine-grained RBAC [#73](https://github.com/stefanprodan/flagger/pull/73) +- Add option to limit Flagger to a single namespace [#78](https://github.com/stefanprodan/flagger/pull/78) ## 0.7.0 (2019-02-28) From e2417e4e40a8463702033543fe2b0688491a74c0 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Wed, 6 Mar 2019 21:19:42 +0200 Subject: [PATCH 3/3] Skip e2e tests for release branches --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9bedd9ae..6c812451 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,3 +19,4 @@ workflows: ignore: - gh-pages - /docs-.*/ + - /release-.*/