Skip to content

Commit

Permalink
Refactor Selenium Grid scaler
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Oct 4, 2024
1 parent 6cd5198 commit f4f3921
Show file tree
Hide file tree
Showing 5 changed files with 1,771 additions and 290 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ Here is an overview of all new **experimental** features:
- **GitHub Scaler**: Fixed pagination, fetching repository list ([#5738](https://github.com/kedacore/keda/issues/5738))
- **Kafka**: Fix logic to scale to zero on invalid offset even with earliest offsetResetPolicy ([#5689](https://github.com/kedacore/keda/issues/5689))
- **RabbitMQ Scaler**: Add connection name for AMQP ([#5958](https://github.com/kedacore/keda/issues/5958))
- **Selenium Grid Scaler**: Improve logic based on node stereotypes, node sessions and queue requests capabilities ([#6080](https://github.com/kedacore/keda/issues/6080))
- **Selenium Grid Scaler**: Support for Username and Password Authentication of Grid GraphQL endpoint ([#6144](https://github.com/kedacore/keda/issues/6144))
- TODO ([#XXX](https://github.com/kedacore/keda/issues/XXX))

### Fixes
Expand Down
94 changes: 94 additions & 0 deletions config/crd/bases/keda.sh_withtriggers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.15.0
name: withtriggers.keda.sh
spec:
group: keda.sh
names:
kind: WithTriggers
listKind: WithTriggersList
plural: withtriggers
singular: withtriggers
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: WithTriggers is a specification for a resource with triggers
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
internalKind:
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: WithTriggersSpec is the spec for a an object with triggers
resource
properties:
pollingInterval:
format: int32
type: integer
triggers:
items:
description: ScaleTriggers reference the scaler that will be used
properties:
authenticationRef:
description: |-
AuthenticationRef points to the TriggerAuthentication or ClusterTriggerAuthentication object that
is used to authenticate the scaler with the environment
properties:
kind:
description: Kind of the resource being referred to. Defaults
to TriggerAuthentication.
type: string
name:
type: string
required:
- name
type: object
metadata:
additionalProperties:
type: string
type: object
metricType:
description: |-
MetricTargetType specifies the type of metric being targeted, and should be either
"Value", "AverageValue", or "Utilization"
type: string
name:
type: string
type:
type: string
useCachedMetrics:
type: boolean
required:
- metadata
- type
type: object
type: array
required:
- triggers
type: object
required:
- internalKind
- spec
type: object
served: true
storage: true
Loading

0 comments on commit f4f3921

Please sign in to comment.