2022-09-05 03:06:08 -04:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-04-21 10:28:37 -04:00
|
|
|
package qemu
|
|
|
|
|
2022-09-21 07:47:57 -04:00
|
|
|
import "github.com/edgelesssys/constellation/v2/internal/versions"
|
2022-07-22 09:05:04 -04:00
|
|
|
|
2022-04-21 10:28:37 -04:00
|
|
|
// CloudNodeManager holds the QEMU 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 QEMU.
|
2022-07-22 09:05:04 -04:00
|
|
|
func (c *CloudNodeManager) Image(k8sVersion versions.ValidK8sVersion) (string, error) {
|
2022-07-21 08:41:07 -04:00
|
|
|
return "", nil
|
2022-04-21 10:28:37 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Path returns the path used by cloud-node-manager executable within the container image.
|
|
|
|
// Not used on QEMU.
|
|
|
|
func (c *CloudNodeManager) Path() string {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
// ExtraArgs returns a list of arguments to append to the cloud-node-manager command.
|
|
|
|
// Not used on QEMU.
|
|
|
|
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
|
|
|
|
}
|