@@ -48,69 +48,72 @@ resource "helm_release" "logs_agent" {
4848  recreate_pods     =  true 
4949  force_update      =  true 
5050
51-   set  {
52-     name  =  " metadata.name" 
53-     type  =  " string" 
54-     value =  var.logs_agent_name
55-   }
56-   set  {
57-     name  =  " image.version" 
58-     type  =  " string" 
59-     value =  local.logs_agent_version
60-   }
61-   set  {
62-     name  =  " env.ingestionHost" 
63-     type  =  " string" 
64-     value =  local.cloud_logs_ingress_endpoint
65-   }
66-   set  {
67-     name  =  " env.ingestionPort" 
68-     value =  var.cloud_logs_ingress_port
69-   }
70-   set_sensitive  {
51+   set  =  
52+     {
53+       name  =  " metadata.name" 
54+       type  =  " string" 
55+       value =  var.logs_agent_name
56+     },
57+     {
58+       name  =  " image.version" 
59+       type  =  " string" 
60+       value =  local.logs_agent_version
61+     },
62+     {
63+       name  =  " env.ingestionHost" 
64+       type  =  " string" 
65+       value =  local.cloud_logs_ingress_endpoint
66+     },
67+     {
68+       name  =  " env.ingestionPort" 
69+       value =  var.cloud_logs_ingress_port
70+     },
71+     {
72+       name  =  " env.trustedProfileID" 
73+       type  =  " string" 
74+       value =  local.logs_agent_trusted_profile
75+     },
76+     {
77+       name  =  " env.iamMode" 
78+       type  =  " string" 
79+       value =  var.logs_agent_iam_mode
80+     },
81+     {
82+       name  =  " env.iamEnvironment" 
83+       type  =  " string" 
84+       value =  var.logs_agent_iam_environment
85+     },
86+     {
87+       name  =  " additionalLogSourcePaths" 
88+       type  =  " string" 
89+       value =  join (" \\ ," . logs_agent_additional_log_source_paths )
90+     },
91+     {
92+       name  =  " excludeLogSourcePaths" 
93+       type  =  " string" 
94+       value =  join (" \\ ," . logs_agent_exclude_log_source_paths )
95+     },
96+     {
97+       name  =  " selectedLogSourcePaths" 
98+       type  =  " string" 
99+       value =  join (" \\ ," . logs_agent_selected_log_source_paths )
100+     },
101+     {
102+       name  =  " clusterName" 
103+       type  =  " string" 
104+       value =  local.cluster_name
105+     },
106+     {
107+       name  =  " scc.create" 
108+       value =  var.logs_agent_enable_scc
109+     }
110+   ]
111+ 
112+   set_sensitive  =  
71113    name  =  " secret.iamAPIKey" 
72114    type  =  " string" 
73115    value =  local.logs_agent_iam_api_key
74-   }
75-   set  {
76-     name  =  " env.trustedProfileID" 
77-     type  =  " string" 
78-     value =  local.logs_agent_trusted_profile
79-   }
80-   set  {
81-     name  =  " env.iamMode" 
82-     type  =  " string" 
83-     value =  var.logs_agent_iam_mode
84-   }
85-   set  {
86-     name  =  " env.iamEnvironment" 
87-     type  =  " string" 
88-     value =  var.logs_agent_iam_environment
89-   }
90-   set  {
91-     name  =  " additionalLogSourcePaths" 
92-     type  =  " string" 
93-     value =  join (" \\ ," . logs_agent_additional_log_source_paths )
94-   }
95-   set  {
96-     name  =  " excludeLogSourcePaths" 
97-     type  =  " string" 
98-     value =  join (" \\ ," . logs_agent_exclude_log_source_paths )
99-   }
100-   set  {
101-     name  =  " selectedLogSourcePaths" 
102-     type  =  " string" 
103-     value =  join (" \\ ," . logs_agent_selected_log_source_paths )
104-   }
105-   set  {
106-     name  =  " clusterName" 
107-     type  =  " string" 
108-     value =  local.cluster_name
109-   }
110-   set  {
111-     name  =  " scc.create" 
112-     value =  var.logs_agent_enable_scc
113-   }
116+   }]
114117
115118  #  dummy value hack to force update https://github.com/hashicorp/terraform-provider-helm/issues/515#issuecomment-813088122
116119  values  =  
0 commit comments