@@ -24,7 +24,7 @@ const agentinoKiltDefinition = `build {
2424 "SYSDIG_COLLECTOR": ${config.collector_host}
2525 "SYSDIG_COLLECTOR_PORT": ${config.collector_port}
2626 "SYSDIG_ACCESS_KEY": ${config.sysdig_access_key}
27- "SYSDIG_LOGGING": ""
27+ "SYSDIG_LOGGING": ${config.sysdig_logging}
2828 }
2929 mount: [
3030 {
@@ -106,6 +106,11 @@ func dataSourceSysdigFargateWorkloadAgent() *schema.Resource {
106106 },
107107 },
108108 },
109+ "sysdig_logging" : {
110+ Type : schema .TypeString ,
111+ Description : "the instrumentation logging level" ,
112+ Optional : true ,
113+ },
109114 "output_container_definitions" : {
110115 Type : schema .TypeString ,
111116 Computed : true ,
@@ -236,6 +241,7 @@ type KiltRecipeConfig struct {
236241 OrchestratorPort string `json:"orchestrator_port"`
237242 CollectorHost string `json:"collector_host"`
238243 CollectorPort string `json:"collector_port"`
244+ SysdigLogging string `json:"sysdig_logging"`
239245}
240246
241247func dataSourceSysdigFargateWorkloadAgentRead (ctx context.Context , d * schema.ResourceData , meta interface {}) diag.Diagnostics {
@@ -246,6 +252,7 @@ func dataSourceSysdigFargateWorkloadAgentRead(ctx context.Context, d *schema.Res
246252 OrchestratorPort : d .Get ("orchestrator_port" ).(string ),
247253 CollectorHost : d .Get ("collector_host" ).(string ),
248254 CollectorPort : d .Get ("collector_port" ).(string ),
255+ SysdigLogging : d .Get ("sysdig_logging" ).(string ),
249256 }
250257
251258 jsonConf , err := json .Marshal (& recipeConfig )
0 commit comments