mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-06-01 04:24:38 -04:00
Cloud provider AWS: add Secrets / Volumes / VolumeMounts / Env to cluster-autoscaler deployment
This commit is contained in:
parent
1e7794b4c2
commit
203ae6df96
1 changed files with 26 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
||||||
package aws
|
package aws
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/edgelesssys/constellation/coordinator/core"
|
||||||
|
"github.com/edgelesssys/constellation/coordinator/kubernetes/k8sapi/resources"
|
||||||
|
k8s "k8s.io/api/core/v1"
|
||||||
|
)
|
||||||
|
|
||||||
// Autoscaler holds the AWS cluster-autoscaler configuration.
|
// Autoscaler holds the AWS cluster-autoscaler configuration.
|
||||||
type Autoscaler struct{}
|
type Autoscaler struct{}
|
||||||
|
|
||||||
|
@ -8,6 +14,26 @@ func (a Autoscaler) Name() string {
|
||||||
return "aws"
|
return "aws"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Secrets returns a list of secrets to deploy together with the k8s cluster-autoscaler.
|
||||||
|
func (a Autoscaler) Secrets(instance core.Instance, cloudServiceAccountURI string) (resources.Secrets, error) {
|
||||||
|
return resources.Secrets{}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Volumes returns a list of volumes to deploy together with the k8s cluster-autoscaler.
|
||||||
|
func (a Autoscaler) Volumes() []k8s.Volume {
|
||||||
|
return []k8s.Volume{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// VolumeMounts returns a list of volume mounts to deploy together with the k8s cluster-autoscaler.
|
||||||
|
func (a Autoscaler) VolumeMounts() []k8s.VolumeMount {
|
||||||
|
return []k8s.VolumeMount{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Env returns a list of k8s environment key-value pairs to deploy together with the k8s cluster-autoscaler.
|
||||||
|
func (a Autoscaler) Env() []k8s.EnvVar {
|
||||||
|
return []k8s.EnvVar{}
|
||||||
|
}
|
||||||
|
|
||||||
// Supported is used to determine if we support autoscaling for the cloud provider.
|
// Supported is used to determine if we support autoscaling for the cloud provider.
|
||||||
func (a Autoscaler) Supported() bool {
|
func (a Autoscaler) Supported() bool {
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue