mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-09-23 09:46:05 +00:00
2d8fcd9bf4
Co-authored-by: Malte Poll <mp@edgeless.systems> Co-authored-by: katexochen <katexochen@users.noreply.github.com> Co-authored-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Thomas Tendyck <tt@edgeless.systems> Co-authored-by: Benedict Schlueter <bs@edgeless.systems> Co-authored-by: leongross <leon.gross@rub.de> Co-authored-by: Moritz Eckert <m1gh7ym0@gmail.com>
34 lines
1.2 KiB
Go
34 lines
1.2 KiB
Go
package aws
|
|
|
|
import "github.com/edgelesssys/constellation/coordinator/core"
|
|
|
|
// CloudControllerManager holds the AWS cloud-controller-manager configuration.
|
|
type CloudControllerManager struct{}
|
|
|
|
// Image returns the container image used to provide cloud-controller-manager for the cloud-provider.
|
|
func (c CloudControllerManager) Image() string {
|
|
return "us.gcr.io/k8s-artifacts-prod/provider-aws/cloud-controller-manager:v1.22.0-alpha.0"
|
|
}
|
|
|
|
// Path returns the path used by cloud-controller-manager executable within the container image.
|
|
func (c CloudControllerManager) Path() string {
|
|
return "/aws-cloud-controller-manager"
|
|
}
|
|
|
|
// Name returns the cloud-provider name as used by k8s cloud-controller-manager (k8s.gcr.io/cloud-controller-manager).
|
|
func (c CloudControllerManager) Name() string {
|
|
return "aws"
|
|
}
|
|
|
|
// PrepareInstance is called on every instance before deploying the cloud-controller-manager.
|
|
// Allows for cloud-provider specific hooks.
|
|
func (c CloudControllerManager) PrepareInstance(instance core.Instance, vpnIP string) error {
|
|
// no specific hook required.
|
|
return nil
|
|
}
|
|
|
|
// Supported is used to determine if cloud controller manager is implemented for this cloud provider.
|
|
func (c CloudControllerManager) Supported() bool {
|
|
return false
|
|
}
|