@@ -20,8 +20,6 @@ const agentinoKiltDefinition = `build {
2020 entry_point: ["/opt/draios/bin/instrument"]
2121 command: ${?original.entry_point} ${?original.command}
2222 environment_variables: {
23- "SYSDIG_ORCHESTRATOR": ${config.orchestrator_host}
24- "SYSDIG_ORCHESTRATOR_PORT": ${config.orchestrator_port}
2523 "SYSDIG_COLLECTOR": ${config.collector_host}
2624 "SYSDIG_COLLECTOR_PORT": ${config.collector_port}
2725 "SYSDIG_ACCESS_KEY": ${config.sysdig_access_key}
@@ -65,16 +63,6 @@ func dataSourceSysdigFargateWorkloadAgent() *schema.Resource {
6563 Description : "registry authentication secret" ,
6664 Optional : true ,
6765 },
68- "orchestrator_host" : {
69- Type : schema .TypeString ,
70- Description : "the orchestrator host to connect to" ,
71- Optional : true ,
72- },
73- "orchestrator_port" : {
74- Type : schema .TypeString ,
75- Description : "the orchestrator port to connect to" ,
76- Optional : true ,
77- },
7866 "collector_host" : {
7967 Type : schema .TypeString ,
8068 Description : "the collector host to connect to" ,
@@ -360,15 +348,13 @@ func patchFargateTaskDefinition(ctx context.Context, containerDefinitions string
360348}
361349
362350type KiltRecipeConfig struct {
363- SysdigAccessKey string `json:"sysdig_access_key"`
364- AgentImage string `json:"agent_image"`
365- OrchestratorHost string `json:"orchestrator_host"`
366- OrchestratorPort string `json:"orchestrator_port"`
367- CollectorHost string `json:"collector_host"`
368- CollectorPort string `json:"collector_port"`
369- SysdigLogging string `json:"sysdig_logging"`
370- Sidecar string `json:"sidecar"`
371- Priority string `json:"priority"`
351+ SysdigAccessKey string `json:"sysdig_access_key"`
352+ AgentImage string `json:"agent_image"`
353+ CollectorHost string `json:"collector_host"`
354+ CollectorPort string `json:"collector_port"`
355+ SysdigLogging string `json:"sysdig_logging"`
356+ Sidecar string `json:"sidecar"`
357+ Priority string `json:"priority"`
372358}
373359
374360type patchOptions struct {
@@ -443,15 +429,13 @@ func dataSourceSysdigFargateWorkloadAgentRead(ctx context.Context, d *schema.Res
443429 }
444430
445431 recipeConfig := KiltRecipeConfig {
446- SysdigAccessKey : d .Get ("sysdig_access_key" ).(string ),
447- AgentImage : d .Get ("workload_agent_image" ).(string ),
448- OrchestratorHost : d .Get ("orchestrator_host" ).(string ),
449- OrchestratorPort : d .Get ("orchestrator_port" ).(string ),
450- CollectorHost : d .Get ("collector_host" ).(string ),
451- CollectorPort : d .Get ("collector_port" ).(string ),
452- SysdigLogging : d .Get ("sysdig_logging" ).(string ),
453- Sidecar : d .Get ("sidecar" ).(string ),
454- Priority : priority ,
432+ SysdigAccessKey : d .Get ("sysdig_access_key" ).(string ),
433+ AgentImage : d .Get ("workload_agent_image" ).(string ),
434+ CollectorHost : d .Get ("collector_host" ).(string ),
435+ CollectorPort : d .Get ("collector_port" ).(string ),
436+ SysdigLogging : d .Get ("sysdig_logging" ).(string ),
437+ Sidecar : d .Get ("sidecar" ).(string ),
438+ Priority : priority ,
455439 }
456440
457441 jsonConf , err := json .Marshal (& recipeConfig )
0 commit comments