Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: fluxcd/flagger
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.21.0
Choose a base ref
...
head repository: fluxcd/flagger
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.22.0
Choose a head ref

Commits on May 9, 2022

  1. add Sanskar Jaiswal (@aryan9600) to MAINTAINERS

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed May 9, 2022
    Copy the full SHA
    22d192e View commit details

Commits on May 10, 2022

  1. Merge pull request #1191 from aryan9600/maintainer-request

    Add Sanskar Jaiswal (@aryan9600) as a maintainer
    stefanprodan authored May 10, 2022
    Copy the full SHA
    c03d138 View commit details

Commits on May 15, 2022

  1. feat: Added the optional appProtocol field to Canary.Service

    Signed-off-by: Phil Nichol <35630607+philnichol@users.noreply.github.com>
    philnichol committed May 15, 2022
    Copy the full SHA
    d798988 View commit details

Commits on May 19, 2022

  1. Merge pull request #1185 from philnichol/adding-appprotocol

    feat: Add an optional `appProtocol` field to `spec.service`
    aryan9600 authored May 19, 2022
    Copy the full SHA
    560f884 View commit details

Commits on May 31, 2022

  1. Update Kubernetes packages to v1.24.1

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed May 31, 2022
    Copy the full SHA
    bfcf288 View commit details
  2. Use leases for leader election

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed May 31, 2022
    Copy the full SHA
    a0fae15 View commit details
  3. Merge pull request #1208 from fluxcd/kubernetes-v1.24.1

    Update Kubernetes packages to v1.24.1
    stefanprodan authored May 31, 2022
    Copy the full SHA
    165c953 View commit details

Commits on Jun 6, 2022

  1. upgrade k8s in CI to 1.23

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jun 6, 2022
    Copy the full SHA
    063d38d View commit details

Commits on Jun 7, 2022

  1. bump provider versions in e2e tests

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jun 7, 2022
    Copy the full SHA
    6dd8a75 View commit details
  2. Merge pull request #1212 from aryan9600/update-e2e

    e2e: Update providers and Kubernetes to v1.23
    stefanprodan authored Jun 7, 2022
    Copy the full SHA
    4ea5a48 View commit details
  3. add ScalerReconciler to canary and refactor hpa out of deployment con…

    …troller
    
    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jun 7, 2022
    Copy the full SHA
    fa595e1 View commit details
  4. add unit tests for hpa reconciler

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jun 7, 2022
    Copy the full SHA
    f23be1d View commit details
  5. add e2e tests for hpa reconciler

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jun 7, 2022
    Copy the full SHA
    9b97bff View commit details

Commits on Jun 8, 2022

  1. refactor hpa reconcile logic to be generic for both versions

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    
    for objectmeta as well
    Sanskar Jaiswal committed Jun 8, 2022
    Copy the full SHA
    e0e2d5c View commit details
  2. Merge pull request #1211 from aryan9600/scaler-reconciler

    Introduce `ScalerReconciler` and refactor HPA reconciliation
    stefanprodan authored Jun 8, 2022
    Copy the full SHA
    4d2a03c View commit details

Commits on Jun 9, 2022

  1. fix primary hpa label reconciliation

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jun 9, 2022
    Copy the full SHA
    9d89411 View commit details
  2. Merge pull request #1215 from aryan9600/scaler-reconciler

    Fix primary HPA label reconciliation
    stefanprodan authored Jun 9, 2022
    Copy the full SHA
    498f065 View commit details
  3. add support for KEDA ScaledObjects via ScaledObjectReconciler

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jun 9, 2022
    Copy the full SHA
    b2dc762 View commit details
  4. add unit tests for ScaledObjectReconciler

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jun 9, 2022
    Copy the full SHA
    6a1b765 View commit details

Commits on Jun 10, 2022

  1. charts: Add namespace parameter to parameters table

    Signed-off-by: Aufar Gilbran <aufargilbran@gmail.com>
    aufarg authored and Sanskar Jaiswal committed Jun 10, 2022
    Copy the full SHA
    703cfd5 View commit details
  2. add e2e tests for KEDA ScaledObjects

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jun 10, 2022
    Copy the full SHA
    b01e4cf View commit details
  3. Merge pull request #1210 from aufarg/add-namespace-to-table

    charts: Add namespace parameter to parameters table
    aryan9600 authored Jun 10, 2022
    Copy the full SHA
    e4252d8 View commit details

Commits on Jun 14, 2022

  1. typo: boostrap -> bootstrap

    Signed-off-by: Daniel Holbach <daniel@weave.works>
    Daniel Holbach committed Jun 14, 2022
    Copy the full SHA
    a5912cc View commit details
  2. fix: add finalizers to canaries

    Signed-off-by: Vladimir Belousov <vbelouso@redhat.com>
    vbelouso committed Jun 14, 2022
    Copy the full SHA
    21923d6 View commit details
  3. Merge pull request #1220 from dholbach/fix-typo

    typo: boostrap -> bootstrap
    Daniel Holbach authored Jun 14, 2022
    Copy the full SHA
    1967e48 View commit details
  4. Merge pull request #1219 from vbelouso/canaries-finalizers

    fix: add finalizers to canaries
    stefanprodan authored Jun 14, 2022
    Copy the full SHA
    aa48ad4 View commit details

Commits on Jun 17, 2022

  1. typo: controller

    Signed-off-by: David Harris <david.harris@weave.works>
    David Harris authored Jun 17, 2022
    Copy the full SHA
    844090f View commit details
  2. fix contour httproxy annotations overwrite

    Signed-off-by: brandoncate <brandon.cate@shipt.com>
    BrandonCate committed Jun 17, 2022
    Copy the full SHA
    0cecab5 View commit details
  3. fix contour prom query when service name is specified

    Signed-off-by: brandoncate <brandon.cate@shipt.com>
    BrandonCate committed Jun 17, 2022
    Copy the full SHA
    e1bd004 View commit details
  4. Merge pull request #1221 from sympatheticmoose/patch-1

    typo: controller
    stefanprodan authored Jun 17, 2022
    Copy the full SHA
    c31ef8a View commit details

Commits on Jun 21, 2022

  1. Merge pull request #1205 from shipt/bugfix-contour-annotation-override

    fix contour httproxy annotations overwrite
    aryan9600 authored Jun 21, 2022
    Copy the full SHA
    7b2c005 View commit details
  2. Merge pull request #1204 from shipt/contour-service-metric-fix

    fix contour prom query for when service name is overwritten
    aryan9600 authored Jun 21, 2022
    Copy the full SHA
    358391b View commit details
  3. Reintroducing the old empty check for metric template references. Rev…

    …erting removal in commit 7df1bee to support the optianl namespace. Adding test for future valdiation.
    
    Signed-off-by: Nick Freyaldenhoven <freyaldenhovennc@gmail.com>
    Freydal committed Jun 21, 2022
    Copy the full SHA
    31856a2 View commit details

Commits on Jun 22, 2022

  1. update install guide on alibaba service mesh

    Signed-off-by: 奇方 <qifang.ly@alibaba-inc.com>
    奇方 committed Jun 22, 2022
    Copy the full SHA
    4f64377 View commit details
  2. include Contour retryOn in the sample canary

    without this change the HTTPProxy - podinfo.test was not getting created due to the following warning:
    ```
    test               4m11s       Warning   Synced                         canary/podinfo                               HTTPProxy podinfo.test create error: HTTPProxy.projectcontour.io "podinfo" is invalid: spec.routes.retryPolicy.retryOn: Unsupported value: "": supported values: "5xx", "gateway-error", "reset", "connect-failure", "retriable-4xx", "refused-stream", "retriable-status-codes", "retriable-headers", "cancelled", "deadline-exceeded", "internal", "resource-exhausted", "unavailable"
    ```
    
    Signed-off-by: Mae Anne Large <Mpluya@users.noreply.github.com>
    Signed-off-by: Mae Large <mlarge@vmware.com>
    Mpluya committed Jun 22, 2022
    Copy the full SHA
    4dd6102 View commit details
  3. updated retryOn supported values link to point to contour's api doc

    Signed-off-by: Mae Large <mlarge@vmware.com>
    Mpluya committed Jun 22, 2022
    Copy the full SHA
    1bb4afa View commit details
  4. Removing stray blank line.

    Signed-off-by: Nick Freyaldenhoven <freyaldenhovennc@gmail.com>
    Freydal committed Jun 22, 2022
    Copy the full SHA
    072d9b9 View commit details

Commits on Jun 23, 2022

  1. Merge pull request #1224 from Freydal/fix-optional-metric-template-na…

    …mespace
    
    Reintroducing empty check for metric template references.
    aryan9600 authored Jun 23, 2022
    Copy the full SHA
    9ce931a View commit details
  2. Merge pull request #1222 from yokoyang/doc-update-for-flagger-install…

    …-on-asm
    
    update guide for flagger on aliyun ASM
    aryan9600 authored Jun 23, 2022
    Copy the full SHA
    5e4b70b View commit details

Commits on Jun 30, 2022

  1. update primary scaler query handling to consider mutliple triggers

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jun 30, 2022
    Copy the full SHA
    a098d04 View commit details
  2. add tutorial for scaledobjects

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jun 30, 2022
    Copy the full SHA
    377a8f4 View commit details

Commits on Jul 1, 2022

  1. use a better query to test primary scaledobject reconciliation

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jul 1, 2022
    Copy the full SHA
    b108672 View commit details
  2. update rbac for helm chart

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jul 1, 2022
    Copy the full SHA
    f68f291 View commit details

Commits on Jul 8, 2022

  1. Merge pull request #1216 from aryan9600/keda-scaled-objects

    Add support for KEDA ScaledObjects as an auto scaler
    aryan9600 authored Jul 8, 2022
    Copy the full SHA
    76bac5d View commit details

Commits on Jul 11, 2022

  1. Merge pull request #1223 from Mpluya/patch-1

    include Contour retryOn in the sample canary
    aryan9600 authored Jul 11, 2022
    Copy the full SHA
    ca044d3 View commit details
  2. Release v1.22.0

    Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
    Sanskar Jaiswal committed Jul 11, 2022
    Copy the full SHA
    a8444a6 View commit details

Commits on Jul 12, 2022

  1. Merge pull request #1228 from fluxcd/release-v1.22.0

    Release v1.22.0
    stefanprodan authored Jul 12, 2022
    Copy the full SHA
    7cf843d View commit details
Showing with 3,894 additions and 379 deletions.
  1. +3 −2 .github/workflows/e2e.yaml
  2. +53 −0 CHANGELOG.md
  3. +1 −0 MAINTAINERS
  4. +6 −0 Makefile
  5. +26 −0 artifacts/flagger/account.yaml
  6. +9 −1 artifacts/flagger/crd.yaml
  7. +1 −1 artifacts/flagger/deployment.yaml
  8. +2 −2 charts/flagger/Chart.yaml
  9. +1 −0 charts/flagger/README.md
  10. +6 −1 charts/flagger/crds/crd.yaml
  11. +26 −0 charts/flagger/templates/rbac.yaml
  12. +1 −1 charts/flagger/values.yaml
  13. +1 −1 cmd/flagger/main.go
  14. +1 −0 docs/gitbook/SUMMARY.md
  15. +24 −103 docs/gitbook/install/flagger-install-on-alibaba-servicemesh.md
  16. +1 −1 docs/gitbook/tutorials/appmesh-progressive-delivery.md
  17. +3 −1 docs/gitbook/tutorials/contour-progressive-delivery.md
  18. +234 −0 docs/gitbook/tutorials/keda-scaledobject.md
  19. +1 −1 docs/gitbook/tutorials/kuma-progressive-delivery.md
  20. +1 −1 docs/gitbook/tutorials/linkerd-progressive-delivery.md
  21. +1 −1 docs/gitbook/tutorials/osm-progressive-delivery.md
  22. +2 −0 docs/gitbook/usage/how-it-works.md
  23. +1 −1 docs/gitbook/usage/metrics.md
  24. +47 −35 go.mod
  25. +173 −73 go.sum
  26. +1 −1 hack/update-codegen.sh
  27. +6 −1 kustomize/base/flagger/crd.yaml
  28. +1 −1 kustomize/base/flagger/kustomization.yaml
  29. +26 −0 kustomize/base/flagger/rbac.yaml
  30. +24 −1 pkg/apis/flagger/v1beta1/canary.go
  31. +25 −2 pkg/apis/flagger/v1beta1/zz_generated.deepcopy.go
  32. +5 −0 pkg/apis/keda/register.go
  33. +5 −0 pkg/apis/keda/v1alpha1/doc.go
  34. +36 −0 pkg/apis/keda/v1alpha1/register.go
  35. +226 −0 pkg/apis/keda/v1alpha1/scaledobject.go
  36. +399 −0 pkg/apis/keda/v1alpha1/zz_generated.deepcopy.go
  37. +0 −22 pkg/canary/deployment_controller.go
  38. +0 −29 pkg/canary/deployment_controller_test.go
  39. +1 −33 pkg/canary/deployment_fixture_test.go
  40. +25 −0 pkg/canary/factory.go
  41. +283 −0 pkg/canary/hpa_reconciler.go
  42. +108 −0 pkg/canary/hpa_reconciler_test.go
  43. +198 −0 pkg/canary/scaled_object_reconciler.go
  44. +156 −0 pkg/canary/scaled_object_reconciler_test.go
  45. +13 −0 pkg/canary/scaler_reconciler.go
  46. +180 −0 pkg/canary/scaler_reconciler_fixture_test.go
  47. +17 −0 pkg/client/clientset/versioned/clientset.go
  48. +7 −0 pkg/client/clientset/versioned/fake/clientset_generated.go
  49. +2 −0 pkg/client/clientset/versioned/fake/register.go
  50. +2 −0 pkg/client/clientset/versioned/scheme/register.go
  51. +20 −0 pkg/client/clientset/versioned/typed/keda/v1alpha1/doc.go
  52. +20 −0 pkg/client/clientset/versioned/typed/keda/v1alpha1/fake/doc.go
  53. +40 −0 pkg/client/clientset/versioned/typed/keda/v1alpha1/fake/fake_keda_client.go
  54. +142 −0 pkg/client/clientset/versioned/typed/keda/v1alpha1/fake/fake_scaledobject.go
  55. +21 −0 pkg/client/clientset/versioned/typed/keda/v1alpha1/generated_expansion.go
  56. +107 −0 pkg/client/clientset/versioned/typed/keda/v1alpha1/keda_client.go
  57. +195 −0 pkg/client/clientset/versioned/typed/keda/v1alpha1/scaledobject.go
  58. +6 −0 pkg/client/informers/externalversions/factory.go
  59. +7 −2 pkg/client/informers/externalversions/generic.go
  60. +46 −0 pkg/client/informers/externalversions/keda/interface.go
  61. +45 −0 pkg/client/informers/externalversions/keda/v1alpha1/interface.go
  62. +90 −0 pkg/client/informers/externalversions/keda/v1alpha1/scaledobject.go
  63. +27 −0 pkg/client/listers/keda/v1alpha1/expansion_generated.go
  64. +99 −0 pkg/client/listers/keda/v1alpha1/scaledobject.go
  65. +1 −1 pkg/controller/events.go
  66. +65 −8 pkg/controller/scheduler.go
  67. +2 −2 pkg/controller/scheduler_deployment_fixture_test.go
  68. +2 −2 pkg/controller/scheduler_metrics.go
  69. +15 −0 pkg/controller/scheduler_metrics_test.go
  70. +2 −1 pkg/loadtester/task_ngrinder_test.go
  71. +3 −3 pkg/metrics/observers/contour.go
  72. +70 −0 pkg/metrics/observers/contour_test.go
  73. +3 −2 pkg/router/contour.go
  74. +4 −0 pkg/router/kubernetes_default.go
  75. +2 −0 pkg/router/kubernetes_default_test.go
  76. +1 −0 pkg/router/router_test.go
  77. +1 −1 pkg/version/version.go
  78. +1 −1 test/contour/install.sh
  79. +35 −10 test/gatewayapi/install.sh
  80. +3 −3 test/gatewayapi/test-ab.sh
  81. +2 −2 test/gatewayapi/test-bg.sh
  82. +5 −5 test/gatewayapi/test-canary.sh
  83. +1 −1 test/gloo/install.sh
  84. +1 −1 test/istio/install.sh
  85. +22 −0 test/keda/install.sh
  86. +11 −0 test/keda/run.sh
  87. +208 −0 test/keda/test-scaledobject.sh
  88. +5 −0 test/kubernetes/run.sh
  89. +167 −0 test/kubernetes/test-hpa.sh
  90. +1 −1 test/kuma/install.sh
  91. +1 −1 test/linkerd/install.sh
  92. +1 −1 test/nginx/install.sh
  93. +11 −9 test/osm/install.sh
  94. +1 −1 test/skipper/install.sh
  95. +10 −4 test/skipper/kustomization.yaml
  96. +1 −1 test/traefik/install.sh
5 changes: 3 additions & 2 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -32,14 +32,15 @@ jobs:
- skipper
- kubernetes
- gatewayapi
- keda
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Kubernetes
uses: engineerd/setup-kind@v0.5.0
with:
version: "v0.11.1"
image: kindest/node:v1.21.1@sha256:fae9a58f17f18f06aeac9772ca8b5ac680ebbed985e266f711d936e91d113bad
version: "v0.14.0"
image: kindest/node:v1.23.6@sha256:b1fa224cc6c7ff32455e0b1fd9cbfd3d3bc87ecaa8fcb06961ed1afb3db0f9ae
- name: Build container image
run: |
docker build -t test/flagger:latest .
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,59 @@

All notable changes to this project are documented in this file.


## 1.22.0

**Release date:** 2022-07-11

This release with support for KEDA ScaledObjects as an alternative to HPAs. Check the
[tutorial](https://docs.flagger.app/tutorials/keda-scaledobject) to understand it's usage
with Flagger.

The `.spec.service.appProtocol` field can now be used to specify the [`appProtocol`](https://kubernetes.io/docs/concepts/services-networking/service/#application-protocol)
of the services that Flagger generates.

In addition, a bug related to the Contour prometheus query for when service name is overwritten
along with a bug related to a Contour `HTTPProxy` annotations have been fixed.

Furthermore, the installation guide for Alibaba ServiceMesh has been updated.

#### Improvements:

- feat: Add an optional `appProtocol` field to `spec.service`
[#1185](https://github.com/fluxcd/flagger/pull/1185)
- Update Kubernetes packages to v1.24.1
[#1208](https://github.com/fluxcd/flagger/pull/1208)
- charts: Add namespace parameter to parameters table
[#1210](https://github.com/fluxcd/flagger/pull/1210)
- Introduce `ScalerReconciler` and refactor HPA reconciliation
[#1211](https://github.com/fluxcd/flagger/pull/1211)
- e2e: Update providers and Kubernetes to v1.23
[#1212](https://github.com/fluxcd/flagger/pull/1212)
- Add support for KEDA ScaledObjects as an auto scaler
[#1216](https://github.com/fluxcd/flagger/pull/1216)
- include Contour retryOn in the sample canary
[#1223](https://github.com/fluxcd/flagger/pull/1223)

#### Fixes:
- fix contour prom query for when service name is overwritten
[#1204](https://github.com/fluxcd/flagger/pull/1204)
- fix contour httproxy annotations overwrite
[#1205](https://github.com/fluxcd/flagger/pull/1205)
- Fix primary HPA label reconciliation
[#1215](https://github.com/fluxcd/flagger/pull/1215)
- fix: add finalizers to canaries
[#1219](https://github.com/fluxcd/flagger/pull/1219)
- typo: boostrap -> bootstrap
[#1220](https://github.com/fluxcd/flagger/pull/1220)
- typo: controller
[#1221](https://github.com/fluxcd/flagger/pull/1221)
- update guide for flagger on aliyun ASM
[#1222](https://github.com/fluxcd/flagger/pull/1222)
- Reintroducing empty check for metric template references.
[#1224](https://github.com/fluxcd/flagger/pull/1224)


## 1.21.0

**Release date:** 2022-05-06
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
@@ -6,3 +6,4 @@ In alphabetical order:

Stefan Prodan, Weaveworks <stefan@weave.works> (github: @stefanprodan, slack: stefanprodan)
Takeshi Yoneda, Tetrate <takeshi@tetrate.io> (github: @mathetake, slack: mathetake)
Sanskar Jaiswal, Weaveworks <sanskar.jaiswal@weave.works> (github: @aryan9600, slack: aryan9600)
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -5,6 +5,12 @@ LT_VERSION?=$(shell grep 'VERSION' cmd/loadtester/main.go | awk '{ print $$4 }'
build:
CGO_ENABLED=0 go build -a -o ./bin/flagger ./cmd/flagger

tidy:
rm -f go.sum; go mod tidy -compat=1.17

vet:
go vet ./...

fmt:
go mod tidy
gofmt -l -s -w ./
26 changes: 26 additions & 0 deletions artifacts/flagger/account.yaml
Original file line number Diff line number Diff line change
@@ -31,6 +31,18 @@ rules:
- update
- patch
- delete
- apiGroups:
- "coordination.k8s.io"
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- apps
resources:
@@ -78,6 +90,7 @@ rules:
resources:
- canaries
- canaries/status
- canaries/finalizers
- metrictemplates
- metrictemplates/status
- alertproviders
@@ -213,6 +226,19 @@ rules:
- update
- patch
- delete
- apiGroups:
- keda.sh
resources:
- scaledobjects
- scaledobjects/finalizers
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- nonResourceURLs:
- /version
verbs:
10 changes: 9 additions & 1 deletion artifacts/flagger/crd.yaml
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ spec:
name:
type: string
autoscalerRef:
description: HPA selector
description: Scaler selector
type: object
required: ["apiVersion", "kind", "name"]
properties:
@@ -114,8 +114,13 @@ spec:
type: string
enum:
- HorizontalPodAutoscaler
- ScaledObject
name:
type: string
primaryScalerQueries:
type: object
additionalProperties:
type: string
ingressRef:
description: Ingress selector
type: object
@@ -158,6 +163,9 @@ spec:
portName:
description: Container port name
type: string
appProtocol:
description: Application protocol of the port
type: string
targetPort:
description: Container target port name
x-kubernetes-int-or-string: true
2 changes: 1 addition & 1 deletion artifacts/flagger/deployment.yaml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ spec:
serviceAccountName: flagger
containers:
- name: flagger
image: ghcr.io/fluxcd/flagger:1.21.0
image: ghcr.io/fluxcd/flagger:1.22.0
imagePullPolicy: IfNotPresent
ports:
- name: http
4 changes: 2 additions & 2 deletions charts/flagger/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: flagger
version: 1.21.0
appVersion: 1.21.0
version: 1.22.0
appVersion: 1.22.0
kubeVersion: ">=1.19.0-0"
engine: gotpl
description: Flagger is a progressive delivery operator for Kubernetes
1 change: 1 addition & 0 deletions charts/flagger/README.md
Original file line number Diff line number Diff line change
@@ -177,6 +177,7 @@ The following tables lists the configurable parameters of the Flagger chart and
| `podDisruptionBudget.minAvailable` | The minimal number of available replicas that will be set in the PodDisruptionBudget | `1` |
| `podDisruptionBudget.minAvailable` | The minimal number of available replicas that will be set in the PodDisruptionBudget | `1` |
| `noCrossNamespaceRefs` | If `true`, cross namespace references to custom resources will be disabled | `false` |
| `namespace` | When specified, Flagger will restrict itself to watching Canary objects from that namespace | `""` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm upgrade`. For example,

7 changes: 6 additions & 1 deletion charts/flagger/crds/crd.yaml
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ spec:
name:
type: string
autoscalerRef:
description: HPA selector
description: Scaler selector
type: object
required: ["apiVersion", "kind", "name"]
properties:
@@ -114,8 +114,13 @@ spec:
type: string
enum:
- HorizontalPodAutoscaler
- ScaledObject
name:
type: string
primaryScalerQueries:
type: object
additionalProperties:
type: string
ingressRef:
description: Ingress selector
type: object
26 changes: 26 additions & 0 deletions charts/flagger/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -27,6 +27,18 @@ rules:
- update
- patch
- delete
- apiGroups:
- "coordination.k8s.io"
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- apps
resources:
@@ -74,6 +86,7 @@ rules:
resources:
- canaries
- canaries/status
- canaries/finalizers
- metrictemplates
- metrictemplates/status
- alertproviders
@@ -221,6 +234,19 @@ rules:
- update
- patch
- delete
- apiGroups:
- keda.sh
resources:
- scaledobjects
- scaledobjects/finalizers
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- nonResourceURLs:
- /version
verbs:
2 changes: 1 addition & 1 deletion charts/flagger/values.yaml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

image:
repository: ghcr.io/fluxcd/flagger
tag: 1.21.0
tag: 1.22.0
pullPolicy: IfNotPresent
pullSecret:

2 changes: 1 addition & 1 deletion cmd/flagger/main.go
Original file line number Diff line number Diff line change
@@ -325,7 +325,7 @@ func startLeaderElection(ctx context.Context, run func(), ns string, kubeClient
id = id + "_" + string(uuid.NewUUID())

lock, err := resourcelock.New(
resourcelock.ConfigMapsResourceLock,
resourcelock.ConfigMapsLeasesResourceLock,
ns,
configMapName,
kubeClient.CoreV1(),
1 change: 1 addition & 0 deletions docs/gitbook/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -35,6 +35,7 @@
* [Gateway API Canary Deployments](tutorials/gatewayapi-progressive-delivery.md)
* [Blue/Green Deployments](tutorials/kubernetes-blue-green.md)
* [Canary analysis with Prometheus Operator](tutorials/prometheus-operator.md)
* [Canary analysis with KEDA ScaledObjects](tutorials/keda-scaledobject.md)
* [Zero downtime deployments](tutorials/zero-downtime-deployments.md)

## Dev
Loading