Skip to content

Commit 60c28bc

Browse files
committed
refactor(fargate): remove deprecated orchestrator fields
1 parent 011548e commit 60c28bc

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

sysdig/data_source_sysdig_fargate_workload_agent.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,6 @@ func dataSourceSysdigFargateWorkloadAgent() *schema.Resource {
6666
Description: "registry authentication secret",
6767
Optional: true,
6868
},
69-
"orchestrator_host": {
70-
Type: schema.TypeString,
71-
Description: "the orchestrator host to connect to",
72-
Optional: true,
73-
Deprecated: "The orchestrator agent is deprecated and no longer supported as of workload-agent version 6.0.0. Please use the collector_host parameter instead.",
74-
},
75-
"orchestrator_port": {
76-
Type: schema.TypeString,
77-
Description: "the orchestrator port to connect to",
78-
Optional: true,
79-
Deprecated: "The orchestrator agent is deprecated and no longer supported as of workload-agent version 6.0.0. Please use the collector_port parameter instead.",
80-
},
8169
"collector_host": {
8270
Type: schema.TypeString,
8371
Description: "the collector host to connect to",
@@ -360,8 +348,6 @@ func patchFargateTaskDefinition(ctx context.Context, containerDefinitions string
360348
type KiltRecipeConfig struct {
361349
SysdigAccessKey string `json:"sysdig_access_key"`
362350
AgentImage string `json:"agent_image"`
363-
OrchestratorHost string `json:"orchestrator_host"`
364-
OrchestratorPort string `json:"orchestrator_port"`
365351
CollectorHost string `json:"collector_host"`
366352
CollectorPort string `json:"collector_port"`
367353
SysdigLogging string `json:"sysdig_logging"`
@@ -443,8 +429,6 @@ func dataSourceSysdigFargateWorkloadAgentRead(ctx context.Context, d *schema.Res
443429
recipeConfig := KiltRecipeConfig{
444430
SysdigAccessKey: d.Get("sysdig_access_key").(string),
445431
AgentImage: d.Get("workload_agent_image").(string),
446-
OrchestratorHost: d.Get("orchestrator_host").(string),
447-
OrchestratorPort: d.Get("orchestrator_port").(string),
448432
CollectorHost: d.Get("collector_host").(string),
449433
CollectorPort: d.Get("collector_port").(string),
450434
SysdigLogging: d.Get("sysdig_logging").(string),

0 commit comments

Comments
 (0)