<#4289 [Housekeeping] Remove need to specify defau...
# flyte-github
a
#4289 [Housekeeping] Remove need to specify defaultIamRole Issue created by gdabisias Describe the issue Right now it is mandatory to specify a defaultIamRole in the following configuration of the flyte-core chart
Copy code
cluster_resource_manager: {
			...
			config: cluster_resources: customData: [
				{
					production: [
						{
							projectQuotaCpu: value: "5"
						},
						{
							projectQuotaMemory: value: "4000Mi"
						},
						{
							defaultIamRole: value: ""
						},
					]
				}, {
					staging: [
						{
							projectQuotaCpu: value: "5"
						},
						{
							projectQuotaMemory: value: "4000Mi"
						},
						{
							defaultIamRole: value: ""
						},
					]
				}, {
					development: [
						{
							projectQuotaCpu: value: "5"
						},
						{
							projectQuotaMemory: value: "4000Mi"
						},
						{
							defaultIamRole: value: ""
						},
					]
				},
			]
		}
When the service is not run in AWS, this is not needed, and specifying the role as empty seems unnecessary and we should allow the field to be optional. An empty string will actually trigger an error and so a dummy value has to be inserted What if we do not do this? Users might remove the field and try to deploy the control plane, resulting in the following error
Copy code
{
  "json": {},
  "level": "warning",
  "msg": "Failed to transform kubernetes manifest for namespace [xxx-staging] into a dynamic unstructured mapping with err: yaml: invalid map key: map[interface {}]interface {}{\"defaultIamRole\":interface {}(nil)}, manifest: apiVersion: v1\nkind: ServiceAccount\nmetadata:\n  name: default\n  namespace: xxx-staging\n  annotations:\n    eks.amazonaws.com/role-arn: {{ defaultIamRole }}\n",
  "ts": "2023-10-24T12:21:52Z"
}
Related component(s) No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte