Skip to content

Commit

Permalink
Enable scale subresource on eligible resources (#4599)
Browse files Browse the repository at this point in the history
* Add scale subresource

* Add e2e test steps to validate status content
  • Loading branch information
barkbay authored Jul 8, 2021
1 parent 00d1434 commit 7c39ff0
Show file tree
Hide file tree
Showing 29 changed files with 481 additions and 30 deletions.
56 changes: 56 additions & 0 deletions config/crds/v1/all-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,11 @@ spec:
the deployment.
format: int32
type: integer
count:
description: Count corresponds to Scale.Status.Replicas, which is
the actual number of observed instances of the scaled object.
format: int32
type: integer
elasticsearchAssociationStatus:
description: ElasticsearchAssociationStatus is the status of any auto-linking
to Elasticsearch clusters.
Expand All @@ -952,6 +957,9 @@ spec:
description: SecretTokenSecretName is the name of the Secret that
contains the secret token
type: string
selector:
description: Selector is the label selector used to find all pods.
type: string
service:
description: ExternalService is the name of the service the agents
should connect to.
Expand All @@ -966,6 +974,10 @@ spec:
served: true
storage: true
subresources:
scale:
labelSelectorPath: .status.selector
specReplicasPath: .spec.count
statusReplicasPath: .status.count
status: {}
- additionalPrinterColumns:
- jsonPath: .status.health
Expand Down Expand Up @@ -2469,9 +2481,17 @@ spec:
the deployment.
format: int32
type: integer
count:
description: Count corresponds to Scale.Status.Replicas, which is
the actual number of observed instances of the scaled object.
format: int32
type: integer
health:
description: Health of the deployment.
type: string
selector:
description: Selector is the label selector used to find all pods.
type: string
version:
description: 'Version of the stack resource currently running. During
version upgrades, multiple versions may run in parallel: this value
Expand All @@ -2482,6 +2502,10 @@ spec:
served: true
storage: true
subresources:
scale:
labelSelectorPath: .status.selector
specReplicasPath: .spec.count
statusReplicasPath: .status.count
status: {}
status:
acceptedNames:
Expand Down Expand Up @@ -5565,9 +5589,17 @@ spec:
the deployment.
format: int32
type: integer
count:
description: Count corresponds to Scale.Status.Replicas, which is
the actual number of observed instances of the scaled object.
format: int32
type: integer
health:
description: Health of the deployment.
type: string
selector:
description: Selector is the label selector used to find all pods.
type: string
service:
description: ExternalService is the name of the service associated
to the Enterprise Search Pods.
Expand All @@ -5582,6 +5614,10 @@ spec:
served: true
storage: true
subresources:
scale:
labelSelectorPath: .status.selector
specReplicasPath: .spec.count
statusReplicasPath: .status.count
status: {}
- additionalPrinterColumns:
- jsonPath: .status.health
Expand Down Expand Up @@ -6125,9 +6161,17 @@ spec:
the deployment.
format: int32
type: integer
count:
description: Count corresponds to Scale.Status.Replicas, which is
the actual number of observed instances of the scaled object.
format: int32
type: integer
health:
description: Health of the deployment.
type: string
selector:
description: Selector is the label selector used to find all pods.
type: string
service:
description: ExternalService is the name of the service associated
to the Enterprise Search Pods.
Expand Down Expand Up @@ -6759,6 +6803,11 @@ spec:
the deployment.
format: int32
type: integer
count:
description: Count corresponds to Scale.Status.Replicas, which is
the actual number of observed instances of the scaled object.
format: int32
type: integer
elasticsearchAssociationStatus:
description: ElasticsearchAssociationStatus is the status of any auto-linking
to Elasticsearch clusters.
Expand All @@ -6770,6 +6819,9 @@ spec:
health:
description: Health of the deployment.
type: string
selector:
description: Selector is the label selector used to find all pods.
type: string
version:
description: 'Version of the stack resource currently running. During
version upgrades, multiple versions may run in parallel: this value
Expand All @@ -6780,6 +6832,10 @@ spec:
served: true
storage: true
subresources:
scale:
labelSelectorPath: .status.selector
specReplicasPath: .spec.count
statusReplicasPath: .status.count
status: {}
- additionalPrinterColumns:
- jsonPath: .status.health
Expand Down
12 changes: 12 additions & 0 deletions config/crds/v1/bases/apm.k8s.elastic.co_apmservers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7291,6 +7291,11 @@ spec:
the deployment.
format: int32
type: integer
count:
description: Count corresponds to Scale.Status.Replicas, which is
the actual number of observed instances of the scaled object.
format: int32
type: integer
elasticsearchAssociationStatus:
description: ElasticsearchAssociationStatus is the status of any auto-linking
to Elasticsearch clusters.
Expand All @@ -7306,6 +7311,9 @@ spec:
description: SecretTokenSecretName is the name of the Secret that
contains the secret token
type: string
selector:
description: Selector is the label selector used to find all pods.
type: string
service:
description: ExternalService is the name of the service the agents
should connect to.
Expand All @@ -7320,6 +7328,10 @@ spec:
served: true
storage: true
subresources:
scale:
labelSelectorPath: .status.selector
specReplicasPath: .spec.count
statusReplicasPath: .status.count
status: {}
- additionalPrinterColumns:
- jsonPath: .status.health
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7247,9 +7247,17 @@ spec:
the deployment.
format: int32
type: integer
count:
description: Count corresponds to Scale.Status.Replicas, which is
the actual number of observed instances of the scaled object.
format: int32
type: integer
health:
description: Health of the deployment.
type: string
selector:
description: Selector is the label selector used to find all pods.
type: string
service:
description: ExternalService is the name of the service associated
to the Enterprise Search Pods.
Expand All @@ -7264,6 +7272,10 @@ spec:
served: true
storage: true
subresources:
scale:
labelSelectorPath: .status.selector
specReplicasPath: .spec.count
statusReplicasPath: .status.count
status: {}
- additionalPrinterColumns:
- jsonPath: .status.health
Expand Down Expand Up @@ -14492,9 +14504,17 @@ spec:
the deployment.
format: int32
type: integer
count:
description: Count corresponds to Scale.Status.Replicas, which is
the actual number of observed instances of the scaled object.
format: int32
type: integer
health:
description: Health of the deployment.
type: string
selector:
description: Selector is the label selector used to find all pods.
type: string
service:
description: ExternalService is the name of the service associated
to the Enterprise Search Pods.
Expand Down
12 changes: 12 additions & 0 deletions config/crds/v1/bases/kibana.k8s.elastic.co_kibanas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7294,6 +7294,11 @@ spec:
the deployment.
format: int32
type: integer
count:
description: Count corresponds to Scale.Status.Replicas, which is
the actual number of observed instances of the scaled object.
format: int32
type: integer
elasticsearchAssociationStatus:
description: ElasticsearchAssociationStatus is the status of any auto-linking
to Elasticsearch clusters.
Expand All @@ -7305,6 +7310,9 @@ spec:
health:
description: Health of the deployment.
type: string
selector:
description: Selector is the label selector used to find all pods.
type: string
version:
description: 'Version of the stack resource currently running. During
version upgrades, multiple versions may run in parallel: this value
Expand All @@ -7315,6 +7323,10 @@ spec:
served: true
storage: true
subresources:
scale:
labelSelectorPath: .status.selector
specReplicasPath: .spec.count
statusReplicasPath: .status.count
status: {}
- additionalPrinterColumns:
- jsonPath: .status.health
Expand Down
12 changes: 12 additions & 0 deletions config/crds/v1/bases/maps.k8s.elastic.co_elasticmapsservers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7249,9 +7249,17 @@ spec:
the deployment.
format: int32
type: integer
count:
description: Count corresponds to Scale.Status.Replicas, which is
the actual number of observed instances of the scaled object.
format: int32
type: integer
health:
description: Health of the deployment.
type: string
selector:
description: Selector is the label selector used to find all pods.
type: string
version:
description: 'Version of the stack resource currently running. During
version upgrades, multiple versions may run in parallel: this value
Expand All @@ -7262,6 +7270,10 @@ spec:
served: true
storage: true
subresources:
scale:
labelSelectorPath: .status.selector
specReplicasPath: .spec.count
statusReplicasPath: .status.count
status: {}
status:
acceptedNames:
Expand Down
Loading

0 comments on commit 7c39ff0

Please sign in to comment.