salmon-refrigerator-32115
01/26/2024, 4:26 PMsync-cluster-resources panic: Failed to sync cluster resources : Failed to create kubernetes object from config template [ad_spark_service_account.yaml] for namespace [flyteexamples-integration] with err: namespaces "flyteexamples-integration" not found,
Thanks.tall-lock-23197
tall-lock-23197
salmon-refrigerator-32115
01/29/2024, 4:43 PMaverage-finland-92144
01/29/2024, 5:12 PMsalmon-refrigerator-32115
02/01/2024, 12:32 AMcluster_resource_manager:
templates:
- key: ad_spark_service_account
value: |
apiVersion: v1
kind: ServiceAccount
metadata:
name: spark
namespace: {{ namespace }}
annotations:
<http://eks.amazonaws.com/role-arn|eks.amazonaws.com/role-arn>: '{{ defaultIamRole }}'
And since the templates must be executed by the GO code in sequence to create the namespace first, the above change somehow caused that template to be executed first, but since no namespaces has been created, hans the error.
I’ve added the flyte template annotation to the main flyte charts and remove the template from the values override file.,
And that resolved the namespace not found issue.
Thank you very much @average-finland-92144 for the help!average-finland-92144
02/06/2024, 7:32 PM