Skip to content

Commit

Permalink
add new manifest, comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gauron99 committed Jul 7, 2023
1 parent 4a2e948 commit 1d6a251
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
3 changes: 1 addition & 2 deletions apis/keda/v1alpha1/scaledobject_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ type ComplexScalingLogic struct {

// ExternalCalculation structure describes name and URL of a gRPC server
// that KEDA can connect to with collected metrics and modify them. Each server
// has a timeout and optional Fallback replica count. It is not a complete
// fallback functionality because the threshold should be always 1.
// has a timeout and optional Fallback functionality.
type ExternalCalculation struct {
Name string `json:"name"`
URL string `json:"url"`
Expand Down
56 changes: 56 additions & 0 deletions config/crd/bases/keda.sh_scaledobjects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,47 @@ spec:
advanced:
description: AdvancedConfig specifies advance scaling options
properties:
complexScalingLogic:
description: ComplexScalingLogic describes advanced scaling logic
options like formula and gRPC server for external calculations
properties:
externalCalculators:
items:
description: ExternalCalculation structure describes name
and URL of a gRPC server that KEDA can connect to with
collected metrics and modify them. Each server has a timeout
and optional Fallback functionality.
properties:
name:
type: string
timeout:
type: string
url:
type: string
required:
- name
- timeout
- url
type: object
type: array
fallback:
description: Fallback is the spec for fallback options
properties:
failureThreshold:
format: int32
type: integer
replicas:
format: int32
type: integer
required:
- failureThreshold
- replicas
type: object
formula:
type: string
target:
type: string
type: object
horizontalPodAutoscalerConfig:
description: HorizontalPodAutoscalerConfig specifies horizontal
scale config
Expand Down Expand Up @@ -291,6 +332,8 @@ spec:
status:
description: ScaledObjectStatus is the status for a ScaledObject resource
properties:
compositeScalerName:
type: string
conditions:
description: Conditions an array representation to store multiple
Conditions
Expand All @@ -315,6 +358,19 @@ spec:
- type
type: object
type: array
externalCalculationHealth:
additionalProperties:
description: HealthStatus is the status for a ScaledObject's health
properties:
numberOfFailures:
format: int32
type: integer
status:
description: HealthStatusType is an indication of whether the
health status is happy or failing
type: string
type: object
type: object
externalMetricNames:
items:
type: string
Expand Down

0 comments on commit 1d6a251

Please sign in to comment.