mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 06:16:08 -04:00
operators: cleanup placeholder nodeversion (#1881)
* operators: cleanup placeholder nodeversion * e2e: improve upgrade test portability
This commit is contained in:
parent
025d34a259
commit
b3c052e299
12 changed files with 142 additions and 10 deletions
|
@ -5,5 +5,8 @@ go_library(
|
|||
srcs = ["client.go"],
|
||||
importpath = "github.com/edgelesssys/constellation/v2/operators/constellation-node-operator/v2/internal/cloud/fake/client",
|
||||
visibility = ["//operators/constellation-node-operator:__subpackages__"],
|
||||
deps = ["//operators/constellation-node-operator/api/v1alpha1"],
|
||||
deps = [
|
||||
"//operators/constellation-node-operator/api/v1alpha1",
|
||||
"//operators/constellation-node-operator/internal/constants",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -11,6 +11,7 @@ import (
|
|||
"fmt"
|
||||
|
||||
updatev1alpha1 "github.com/edgelesssys/constellation/v2/operators/constellation-node-operator/v2/api/v1alpha1"
|
||||
"github.com/edgelesssys/constellation/v2/operators/constellation-node-operator/v2/internal/constants"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -53,7 +54,7 @@ func (c *Client) SetScalingGroupImage(_ context.Context, _, _ string) error {
|
|||
|
||||
// GetScalingGroupImage retrieves the image currently used by a scaling group.
|
||||
func (c *Client) GetScalingGroupImage(_ context.Context, _ string) (string, error) {
|
||||
return "unsupportedCSP", nil
|
||||
return constants.PlaceholderImageName, nil
|
||||
}
|
||||
|
||||
// GetScalingGroupName retrieves the name of a scaling group.
|
||||
|
@ -87,5 +88,5 @@ func (c *Client) ListScalingGroups(_ context.Context, _ string) (controlPlaneGro
|
|||
|
||||
// AutoscalingCloudProvider returns the cloud-provider name as used by k8s cluster-autoscaler.
|
||||
func (c *Client) AutoscalingCloudProvider() string {
|
||||
return "unsupportedCSP"
|
||||
return constants.PlaceholderImageName
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue