Skip to content

Commit 389f186

Browse files
committed
refactor(secure_team): remove deprecated IBM platform metrics fields
1 parent c05a441 commit 389f186

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

sysdig/resource_sysdig_secure_team.go

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,6 @@ func resourceSysdigSecureTeam() *schema.Resource {
7171
Type: schema.TypeString,
7272
Optional: true,
7373
},
74-
"enable_ibm_platform_metrics": {
75-
Type: schema.TypeBool,
76-
Optional: true,
77-
Deprecated: "This option should be not used anymore and will be removed in the future",
78-
},
79-
"ibm_platform_metrics": {
80-
Type: schema.TypeString,
81-
Optional: true,
82-
Deprecated: "This option should be not used anymore and will be removed in the future",
83-
},
8474
"use_sysdig_capture": {
8575
Type: schema.TypeBool,
8676
Optional: true,
@@ -216,13 +206,6 @@ func resourceSysdigSecureTeamRead(ctx context.Context, d *schema.ResourceData, m
216206
return diag.FromErr(err)
217207
}
218208

219-
var ibmPlatformMetrics *string
220-
if t.NamespaceFilters != nil {
221-
ibmPlatformMetrics = t.NamespaceFilters.IBMPlatformMetrics
222-
}
223-
_ = d.Set("enable_ibm_platform_metrics", t.CanUseBeaconMetrics)
224-
_ = d.Set("ibm_platform_metrics", ibmPlatformMetrics)
225-
226209
return nil
227210
}
228211

@@ -313,16 +296,5 @@ func secureTeamFromResourceData(d *schema.ResourceData) v2.Team {
313296
t.ZoneIDs[i] = z.(int)
314297
}
315298

316-
canUseBeaconMetrics := d.Get("enable_ibm_platform_metrics").(bool)
317-
t.CanUseBeaconMetrics = &canUseBeaconMetrics
318-
319-
if v, ok := d.GetOk("ibm_platform_metrics"); ok {
320-
metrics := v.(string)
321-
if t.NamespaceFilters == nil {
322-
t.NamespaceFilters = &v2.NamespaceFilters{}
323-
}
324-
t.NamespaceFilters.IBMPlatformMetrics = &metrics
325-
}
326-
327299
return t
328300
}

0 commit comments

Comments
 (0)