Skip to content

Commit

Permalink
add support for KEDA HTTPScaledObjects via HTTPScaledObjectReconciler
Browse files Browse the repository at this point in the history
Signed-off-by: kahirokunn <[email protected]>
  • Loading branch information
kahirokunn committed Nov 8, 2024
1 parent a159421 commit 212b865
Show file tree
Hide file tree
Showing 53 changed files with 4,673 additions and 47 deletions.
13 changes: 13 additions & 0 deletions artifacts/flagger/account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,19 @@ rules:
- update
- patch
- delete
- apiGroups:
- http.keda.sh
resources:
- httpscaledobjects
- httpscaledobjects/finalizers
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- apisix.apache.org
resources:
Expand Down
33 changes: 33 additions & 0 deletions artifacts/flagger/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ spec:
enum:
- HorizontalPodAutoscaler
- ScaledObject
- HTTPScaledObject
name:
type: string
primaryScalerQueries:
Expand All @@ -132,6 +133,38 @@ spec:
type: number
maxReplicas:
type: number
canaryInterceptorProxyService:
type: object
description: Specify this service if you want to change the Canary interceptor proxy service from its default value.
properties:
name:
default: keda-http-add-on-interceptor-proxy
maxLength: 253
minLength: 1
type: string
namespace:
default: keda
maxLength: 63
minLength: 1
type: string
primaryScalingSet:
type: object
description: |-
PrimaryScalingSet to be used for primary HTTPScaledObject, if empty, default interceptor and scaler will be used.
properties:
kind:
description: Kind of the resource being referred to. Defaults to HTTPScalingSet.
enum:
- HTTPScalingSet
- ClusterHTTPScalingSet
type: string
name:
description: Name of the scaling set
type: string
namespace:
maxLength: 63
minLength: 1
type: string
ingressRef:
description: Ingress selector
type: object
Expand Down
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.38.0
appVersion: 1.38.0
version: 1.39.0
appVersion: 1.39.0
kubeVersion: ">=1.19.0-0"
engine: gotpl
description: Flagger is a progressive delivery operator for Kubernetes
Expand Down
33 changes: 33 additions & 0 deletions charts/flagger/crds/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ spec:
enum:
- HorizontalPodAutoscaler
- ScaledObject
- HTTPScaledObject
name:
type: string
primaryScalerQueries:
Expand All @@ -132,6 +133,38 @@ spec:
type: number
maxReplicas:
type: number
canaryInterceptorProxyService:
type: object
description: Specify this service if you want to change the Canary interceptor proxy service from its default value.
properties:
name:
default: keda-http-add-on-interceptor-proxy
maxLength: 253
minLength: 1
type: string
namespace:
default: keda
maxLength: 63
minLength: 1
type: string
primaryScalingSet:
type: object
description: |-
PrimaryScalingSet to be used for primary HTTPScaledObject, if empty, default interceptor and scaler will be used.
properties:
kind:
description: Kind of the resource being referred to. Defaults to HTTPScalingSet.
enum:
- HTTPScalingSet
- ClusterHTTPScalingSet
type: string
name:
description: Name of the scaling set
type: string
namespace:
maxLength: 63
minLength: 1
type: string
ingressRef:
description: Ingress selector
type: object
Expand Down
13 changes: 13 additions & 0 deletions charts/flagger/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,19 @@ rules:
- update
- patch
- delete
- apiGroups:
- http.keda.sh
resources:
- httpscaledobjects
- httpscaledobjects/finalizers
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- apisix.apache.org
resources:
Expand Down
Binary file added docs/diagrams/flagger-keda-http-add-on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/gitbook/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* [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)
* [Canary analysis with KEDA HTTPScaledObjects](tutorials/keda-httpscaledobject.md)
* [Zero downtime deployments](tutorials/zero-downtime-deployments.md)

## Dev
Expand Down
Loading

0 comments on commit 212b865

Please sign in to comment.