Skip to content

Commit

Permalink
rewording
Browse files Browse the repository at this point in the history
  • Loading branch information
Mia-Cross committed Dec 5, 2022
1 parent af20182 commit 7247fdc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion pkg/model/master_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,6 @@ func (b *MasterVolumeBuilder) addScalewayVolume(c *fi.ModelBuilderContext, name
fmt.Sprintf("%s=%s", scaleway.TagClusterName, b.Cluster.ObjectMeta.Name),
fmt.Sprintf("%s=%s", scaleway.TagNameEtcdClusterPrefix, etcd.Name),
fmt.Sprintf("%s=%s", scaleway.TagNameRolePrefix, scaleway.TagRoleMaster),
fmt.Sprintf("%s=%s", scaleway.TagRoleVolume, etcd.Name),
fmt.Sprintf("%s=%s", scaleway.TagInstanceGroup, fi.ValueOf(m.InstanceGroup)),
}

Expand Down
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/new_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ func setupZones(opt *NewClusterOptions, cluster *api.Cluster, allZones sets.Stri

case api.CloudProviderScaleway:
if len(opt.Zones) > 1 {
return nil, fmt.Errorf("scaleway cloud provider currently supports only one zone (location)")
return nil, fmt.Errorf("scaleway cloud provider currently supports only one availability zone")
}
}

Expand Down
4 changes: 2 additions & 2 deletions upup/pkg/fi/cloudup/scaleway/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,12 @@ func (s *scwCloudImplementation) FindClusterStatus(cluster *kops.Cluster) (*kops

// FindVPCInfo is not implemented yet, it's only here to satisfy the fi.Cloud interface
func (s *scwCloudImplementation) FindVPCInfo(id string) (*fi.VPCInfo, error) {
klog.V(8).Info("Scaleway doesn't have a VPC yet so FindVPCInfo is not implemented")
klog.V(8).Info("Scaleway clusters don't have a VPC yet so FindVPCInfo is not implemented")
return nil, fmt.Errorf("FindVPCInfo is not implemented yet for Scaleway")
}

func (s *scwCloudImplementation) GetApiIngressStatus(cluster *kops.Cluster) ([]fi.ApiIngressStatus, error) {
klog.V(8).Info("Scaleway doesn't have load-balancers yet so GetApiIngressStatus is not implemented")
klog.V(8).Info("Scaleway clusters don't have load-balancers yet so GetApiIngressStatus is not implemented")
return nil, nil
}

Expand Down
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/scalewaytasks/sshkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ func (s *SSHKey) CheckChanges(actual, expected, changes *SSHKey) error {
}

func (*SSHKey) RenderScw(c *fi.Context, actual, expected, changes *SSHKey) error {
// Scaleway does not support changes to ssh keys for the moment
if actual != nil {
klog.Infof("Scaleway does not support changes to ssh keys for the moment")
return nil
}

Expand Down
3 changes: 2 additions & 1 deletion upup/pkg/fi/cloudup/scalewaytasks/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package scalewaytasks
import (
"github.com/scaleway/scaleway-sdk-go/api/instance/v1"
"github.com/scaleway/scaleway-sdk-go/scw"
"k8s.io/klog/v2"
"k8s.io/kops/upup/pkg/fi"
"k8s.io/kops/upup/pkg/fi/cloudup/scaleway"
)
Expand Down Expand Up @@ -100,8 +101,8 @@ func (_ *Volume) CheckChanges(a, e, changes *Volume) error {
}

func (_ *Volume) RenderScw(t *scaleway.ScwAPITarget, a, e, changes *Volume) error {
// Scaleway does not support changes to volumes for the moment
if a != nil {
klog.Infof("Scaleway does not support changes to volumes for the moment")
return nil
}

Expand Down

0 comments on commit 7247fdc

Please sign in to comment.