mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-06-18 11:19:33 -04:00
[node operator] AutoscalingStrategy CRD definition
Signed-off-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
parent
9e1cb8ec47
commit
bfb9eaed3a
2 changed files with 36 additions and 13 deletions
|
@ -5,22 +5,24 @@ import (
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
|
|
||||||
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
|
|
||||||
|
|
||||||
// AutoscalingStrategySpec defines the desired state of AutoscalingStrategy
|
// AutoscalingStrategySpec defines the desired state of AutoscalingStrategy
|
||||||
type AutoscalingStrategySpec struct {
|
type AutoscalingStrategySpec struct {
|
||||||
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
|
// Enabled defines whether cluster autoscaling should be enabled or not.
|
||||||
// Important: Run "make" to regenerate code after modifying this file
|
Enabled bool `json:"enabled"`
|
||||||
|
// DeploymentName defines the name of the autoscaler deployment.
|
||||||
// Foo is an example field of AutoscalingStrategy. Edit autoscalingstrategy_types.go to remove/update
|
DeploymentName string `json:"deploymentName"`
|
||||||
Foo string `json:"foo,omitempty"`
|
// DeploymentNamespace defines the namespace of the autoscaler deployment.
|
||||||
|
DeploymentNamespace string `json:"deploymentNamespace"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// AutoscalingStrategyStatus defines the observed state of AutoscalingStrategy
|
// AutoscalingStrategyStatus defines the observed state of AutoscalingStrategy
|
||||||
type AutoscalingStrategyStatus struct {
|
type AutoscalingStrategyStatus struct {
|
||||||
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
|
// Enabled shows whether cluster autoscaling is currently enabled or not.
|
||||||
// Important: Run "make" to regenerate code after modifying this file
|
// +optional
|
||||||
|
Enabled bool `json:"enabled,omitempty"`
|
||||||
|
// Replicas is the number of replicas for the autoscaler deployment.
|
||||||
|
// +optional
|
||||||
|
Replicas int32 `json:"replicas,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
//+kubebuilder:object:root=true
|
//+kubebuilder:object:root=true
|
||||||
|
|
|
@ -36,13 +36,34 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
description: AutoscalingStrategySpec defines the desired state of AutoscalingStrategy
|
description: AutoscalingStrategySpec defines the desired state of AutoscalingStrategy
|
||||||
properties:
|
properties:
|
||||||
foo:
|
deploymentName:
|
||||||
description: Foo is an example field of AutoscalingStrategy. Edit
|
description: DeploymentName defines the name of the autoscaler deployment.
|
||||||
autoscalingstrategy_types.go to remove/update
|
|
||||||
type: string
|
type: string
|
||||||
|
deploymentNamespace:
|
||||||
|
description: DeploymentNamespace defines the namespace of the autoscaler
|
||||||
|
deployment.
|
||||||
|
type: string
|
||||||
|
enabled:
|
||||||
|
description: Enabled defines whether cluster autoscaling should be
|
||||||
|
enabled or not.
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- deploymentName
|
||||||
|
- deploymentNamespace
|
||||||
|
- enabled
|
||||||
type: object
|
type: object
|
||||||
status:
|
status:
|
||||||
description: AutoscalingStrategyStatus defines the observed state of AutoscalingStrategy
|
description: AutoscalingStrategyStatus defines the observed state of AutoscalingStrategy
|
||||||
|
properties:
|
||||||
|
enabled:
|
||||||
|
description: Enabled shows whether cluster autoscaling is currently
|
||||||
|
enabled or not.
|
||||||
|
type: boolean
|
||||||
|
replicas:
|
||||||
|
description: Replicas is the number of replicas for the autoscaler
|
||||||
|
deployment.
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
served: true
|
served: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue