documentation update + error message fix

This commit is contained in:
Leïla MARABESE 2023-08-29 17:41:34 +02:00
parent c02fb479dc
commit fdd1e23250
2 changed files with 7 additions and 5 deletions

View File

@ -5,7 +5,10 @@
## Features
* Create, update and delete clusters
* Create, edit and delete instance groups
* [Rolling-update](../operations/rolling-update.md)
* Create, edit and delete instance groups --> Editable fields include but are not limited to:
* Instance image
* Instance size (also called commercial type)
* Migrating from single to multi-master
### Coming soon
@ -15,7 +18,6 @@
### Next features to implement
* `kops rolling-update`
* [Autoscaler](https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler/cloudprovider/scaleway) support
* BareMetal servers

View File

@ -450,16 +450,16 @@ func checkUserDataDifferences(c *fi.CloudupContext, cloud scaleway.ScwCloud, act
Key: "cloud-init",
}, scw.WithContext(c.Context()))
if err != nil {
return false, fmt.Errorf("error getting actual user-data: %w", err)
return false, fmt.Errorf("getting actual user-data: %w", err)
}
actualUserDataBytes, err := io.ReadAll(actualUserData)
if err != nil {
return false, fmt.Errorf("error reading actual user-data: %w", err)
return false, fmt.Errorf("reading actual user-data: %w", err)
}
expectedUserDataBytes, err := fi.ResourceAsBytes(*expectedUserData)
if err != nil {
return false, fmt.Errorf("error reading expected user-data: %w", err)
return false, fmt.Errorf("reading expected user-data: %w", err)
}
if sha256.Sum256(actualUserDataBytes) != sha256.Sum256(expectedUserDataBytes) {