Skip to content

Commit

Permalink
Add labels and annotations to keda crds (#1141)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Jul 2, 2024
1 parent d29fd1c commit bd67a59
Show file tree
Hide file tree
Showing 6 changed files with 344 additions and 151 deletions.
83 changes: 58 additions & 25 deletions charts/dbgate/crds/http.keda.sh_httpscaledobjects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.0
controller-gen.kubebuilder.io/version: v0.15.0
meta.helm.sh/release-name: keda-add-ons-http
meta.helm.sh/release-namespace: keda
labels:
app.kubernetes.io/managed-by: Helm
name: httpscaledobjects.http.keda.sh
spec:
group: http.keda.sh
Expand Down Expand Up @@ -40,36 +44,40 @@ spec:
description: HTTPScaledObject is the Schema for the httpscaledobjects API
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'
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
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'
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: HTTPScaledObjectSpec defines the desired state of HTTPScaledObject
properties:
hosts:
description: The hosts to route. All requests which the "Host" header
matches any .spec.hosts and the Request Target matches any .spec.pathPrefixes
will be routed to the Service and Port specified in the scaleTargetRef.
The .spec.hosts field is mutually exclusive with the .spec.host
field.
description: |-
The hosts to route. All requests which the "Host" header
matches any .spec.hosts (and the Request Target matches any
.spec.pathPrefixes) will be routed to the Service and Port specified in
the scaleTargetRef.
items:
type: string
type: array
pathPrefixes:
description: (optional) The paths to route. All requests which the
Request Target matches any .spec.pathPrefixes and the "Host" header
matches any .spec.hosts will be routed to the Service and Port specified
in the scaleTargetRef. The .spec.hosts field is mutually exclusive
with the .spec.host field. When this field is null, any path is
matched.
description: |-
The paths to route. All requests which the Request Target matches any
.spec.pathPrefixes (and the "Host" header matches any .spec.hosts)
will be routed to the Service and Port specified in
the scaleTargetRef.
items:
type: string
type: array
Expand Down Expand Up @@ -116,8 +124,39 @@ spec:
description: (optional) Cooldown period value
format: int32
type: integer
scalingMetric:
description: (optional) Configuration for the metric used for scaling
properties:
concurrency:
description: Scaling based on concurrent requests for a given
target
properties:
targetValue:
default: 100
description: Target value for rate scaling
type: integer
type: object
requestRate:
description: Scaling based the average rate during an specific
time window for a given target
properties:
granularity:
default: 1s
description: Time granularity for rate calculation
type: string
targetValue:
default: 100
description: Target value for rate scaling
type: integer
window:
default: 1m
description: Time window for rate calculation
type: string
type: object
type: object
targetPendingRequests:
description: (optional) Target metric value
description: (optional) DEPRECATED (use SscalingMetric instead) Target
metric value
format: int32
type: integer
required:
Expand Down Expand Up @@ -154,12 +193,6 @@ spec:
type:
description: Type of condition
enum:
- Created
- Terminated
- Error
- Pending
- Terminating
- Unknown
- Ready
type: string
required:
Expand Down
83 changes: 58 additions & 25 deletions charts/kafka-ui/crds/http.keda.sh_httpscaledobjects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.0
controller-gen.kubebuilder.io/version: v0.15.0
meta.helm.sh/release-name: keda-add-ons-http
meta.helm.sh/release-namespace: keda
labels:
app.kubernetes.io/managed-by: Helm
name: httpscaledobjects.http.keda.sh
spec:
group: http.keda.sh
Expand Down Expand Up @@ -40,36 +44,40 @@ spec:
description: HTTPScaledObject is the Schema for the httpscaledobjects API
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'
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
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'
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: HTTPScaledObjectSpec defines the desired state of HTTPScaledObject
properties:
hosts:
description: The hosts to route. All requests which the "Host" header
matches any .spec.hosts and the Request Target matches any .spec.pathPrefixes
will be routed to the Service and Port specified in the scaleTargetRef.
The .spec.hosts field is mutually exclusive with the .spec.host
field.
description: |-
The hosts to route. All requests which the "Host" header
matches any .spec.hosts (and the Request Target matches any
.spec.pathPrefixes) will be routed to the Service and Port specified in
the scaleTargetRef.
items:
type: string
type: array
pathPrefixes:
description: (optional) The paths to route. All requests which the
Request Target matches any .spec.pathPrefixes and the "Host" header
matches any .spec.hosts will be routed to the Service and Port specified
in the scaleTargetRef. The .spec.hosts field is mutually exclusive
with the .spec.host field. When this field is null, any path is
matched.
description: |-
The paths to route. All requests which the Request Target matches any
.spec.pathPrefixes (and the "Host" header matches any .spec.hosts)
will be routed to the Service and Port specified in
the scaleTargetRef.
items:
type: string
type: array
Expand Down Expand Up @@ -116,8 +124,39 @@ spec:
description: (optional) Cooldown period value
format: int32
type: integer
scalingMetric:
description: (optional) Configuration for the metric used for scaling
properties:
concurrency:
description: Scaling based on concurrent requests for a given
target
properties:
targetValue:
default: 100
description: Target value for rate scaling
type: integer
type: object
requestRate:
description: Scaling based the average rate during an specific
time window for a given target
properties:
granularity:
default: 1s
description: Time granularity for rate calculation
type: string
targetValue:
default: 100
description: Target value for rate scaling
type: integer
window:
default: 1m
description: Time window for rate calculation
type: string
type: object
type: object
targetPendingRequests:
description: (optional) Target metric value
description: (optional) DEPRECATED (use SscalingMetric instead) Target
metric value
format: int32
type: integer
required:
Expand Down Expand Up @@ -154,12 +193,6 @@ spec:
type:
description: Type of condition
enum:
- Created
- Terminated
- Error
- Pending
- Terminating
- Unknown
- Ready
type: string
required:
Expand Down
83 changes: 58 additions & 25 deletions charts/mongo-ui/crds/http.keda.sh_httpscaledobjects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.0
controller-gen.kubebuilder.io/version: v0.15.0
meta.helm.sh/release-name: keda-add-ons-http
meta.helm.sh/release-namespace: keda
labels:
app.kubernetes.io/managed-by: Helm
name: httpscaledobjects.http.keda.sh
spec:
group: http.keda.sh
Expand Down Expand Up @@ -40,36 +44,40 @@ spec:
description: HTTPScaledObject is the Schema for the httpscaledobjects API
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'
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
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'
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: HTTPScaledObjectSpec defines the desired state of HTTPScaledObject
properties:
hosts:
description: The hosts to route. All requests which the "Host" header
matches any .spec.hosts and the Request Target matches any .spec.pathPrefixes
will be routed to the Service and Port specified in the scaleTargetRef.
The .spec.hosts field is mutually exclusive with the .spec.host
field.
description: |-
The hosts to route. All requests which the "Host" header
matches any .spec.hosts (and the Request Target matches any
.spec.pathPrefixes) will be routed to the Service and Port specified in
the scaleTargetRef.
items:
type: string
type: array
pathPrefixes:
description: (optional) The paths to route. All requests which the
Request Target matches any .spec.pathPrefixes and the "Host" header
matches any .spec.hosts will be routed to the Service and Port specified
in the scaleTargetRef. The .spec.hosts field is mutually exclusive
with the .spec.host field. When this field is null, any path is
matched.
description: |-
The paths to route. All requests which the Request Target matches any
.spec.pathPrefixes (and the "Host" header matches any .spec.hosts)
will be routed to the Service and Port specified in
the scaleTargetRef.
items:
type: string
type: array
Expand Down Expand Up @@ -116,8 +124,39 @@ spec:
description: (optional) Cooldown period value
format: int32
type: integer
scalingMetric:
description: (optional) Configuration for the metric used for scaling
properties:
concurrency:
description: Scaling based on concurrent requests for a given
target
properties:
targetValue:
default: 100
description: Target value for rate scaling
type: integer
type: object
requestRate:
description: Scaling based the average rate during an specific
time window for a given target
properties:
granularity:
default: 1s
description: Time granularity for rate calculation
type: string
targetValue:
default: 100
description: Target value for rate scaling
type: integer
window:
default: 1m
description: Time window for rate calculation
type: string
type: object
type: object
targetPendingRequests:
description: (optional) Target metric value
description: (optional) DEPRECATED (use SscalingMetric instead) Target
metric value
format: int32
type: integer
required:
Expand Down Expand Up @@ -154,12 +193,6 @@ spec:
type:
description: Type of condition
enum:
- Created
- Terminated
- Error
- Pending
- Terminating
- Unknown
- Ready
type: string
required:
Expand Down
Loading

0 comments on commit bd67a59

Please sign in to comment.