mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 23:49:37 -05:00
52ceced223
* Update image version * Introduce 'ValidK8sVersion' type. Ensures that consumers of the k8sVersion receive a valid version, without having to do their own validation. * Add testcase to check that kubeadm accepts the currently provided version.
30 lines
905 B
Go
30 lines
905 B
Go
package gcp
|
|
|
|
import "github.com/edgelesssys/constellation/internal/versions"
|
|
|
|
// CloudNodeManager holds the GCP cloud-node-manager configuration.
|
|
type CloudNodeManager struct{}
|
|
|
|
// Image returns the container image used to provide cloud-node-manager for the cloud-provider.
|
|
// Not used on GCP.
|
|
func (c *CloudNodeManager) Image(k8sVersion versions.ValidK8sVersion) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
// Path returns the path used by cloud-node-manager executable within the container image.
|
|
// Not used on GCP.
|
|
func (c *CloudNodeManager) Path() string {
|
|
return ""
|
|
}
|
|
|
|
// ExtraArgs returns a list of arguments to append to the cloud-node-manager command.
|
|
// Not used on GCP.
|
|
func (c *CloudNodeManager) ExtraArgs() []string {
|
|
return []string{}
|
|
}
|
|
|
|
// Supported is used to determine if cloud node manager is implemented for this cloud provider.
|
|
func (c *CloudNodeManager) Supported() bool {
|
|
return false
|
|
}
|