Skip to content

Commit 62ecc53

Browse files
authored
fix(k8s): pn warning should not be displayed for kosmos clusters (#2217)
1 parent 53fd239 commit 62ecc53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scaleway/resource_k8s_cluster.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,9 @@ func resourceScalewayK8SClusterRead(ctx context.Context, d *schema.ResourceData,
559559

560560
// private_network
561561
pnID := flattenStringPtr(cluster.PrivateNetworkID)
562+
clusterType := d.Get("type").(string)
562563
_ = d.Set("private_network_id", pnID)
563-
if pnID == "" {
564+
if pnID == "" && !strings.HasPrefix(clusterType, "multicloud") {
564565
diags = append(diags, diag.Diagnostic{
565566
Severity: diag.Warning,
566567
Summary: "Public clusters are deprecated",

0 commit comments

Comments
 (0)