You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -800,12 +807,13 @@ func ResourceInstanceServerRead(ctx context.Context, d *schema.ResourceData, m a
800
807
diags=append(diags, diag.Diagnostic{
801
808
Severity: diag.Warning,
802
809
Detail: fmt.Sprintf("Instance type %q will soon reach End of Service", server.CommercialType),
803
-
Summary: fmt.Sprintf(`Your Instance will soon reach End of Service. You can check the exact date on the Scaleway console. We recommend that you migrate your Instance before that.
810
+
Summary: fmt.Sprintf(`Your Instance will reach End of Service by %s. We recommend that you migrate your Instance before that.
804
811
Here are the %d best options for %q, ordered by relevance: [%s]
805
812
806
813
You can check the full list of compatible server types:
807
814
- on the Scaleway console
808
815
- using the CLI command 'scw instance server get-compatible-types %s zone=%s'`,
816
+
eosDate,
809
817
len(mostRelevantTypes),
810
818
server.CommercialType,
811
819
strings.Join(mostRelevantTypes, ", "),
@@ -1572,3 +1580,26 @@ func instanceServerVolumesUpdate(ctx context.Context, d *schema.ResourceData, ap
1572
1580
1573
1581
returnvolumes, nil
1574
1582
}
1583
+
1584
+
funcGetEndOfServiceDate(ctx context.Context, client*scw.Client, zone scw.Zone, commercialTypestring) (string, error) {
0 commit comments