average-secretary-61436
11/04/2024, 7:54 PMaverage-secretary-61436
11/04/2024, 9:10 PMcluster_resource_manager:
templates:
# -- Patch default service account
- key: aab_default_service_account
value: |
apiVersion: v1
kind: ServiceAccount
metadata:
name: default
namespace: {{ namespace }}
annotations:
<http://eks.amazonaws.com/role-arn|eks.amazonaws.com/role-arn>: {{ defaultIamRole }}
imagePullSecrets:
- name: artifactrepo-secret
and then deleting the syncresources
i'm not sure if there's a way to use a non-default SA though.freezing-airport-6809
average-finland-92144
11/05/2024, 6:58 PM- key: aac_other_service_account
value: |
apiVersion: v1
kind: ServiceAccount
metadata:
name: otherthanthat
namespace: {{ namespace }}
annotations:
<http://eks.amazonaws.com/role-arn|eks.amazonaws.com/role-arn>: {{ defaultIamRole }}
and the controller created and annotated the otherthanthat
KSA on each project-domain namespace.
k get sa -n flytesnacks-production
NAME SECRETS AGE
default 0 10d
otherthanthat 0 2m22s
k describe sa otherthanthat -n flytesnacks-development
Name: otherthanthat
Namespace: flytesnacks-development
Labels: <none>
Annotations: <http://eks.amazonaws.com/role-arn|eks.amazonaws.com/role-arn>: arn:aws:iam::<aws-account-id>:role/flyte-tftest01-flyte-worker
Does it look like what you need?
``````average-secretary-61436
11/05/2024, 6:59 PMaverage-finland-92144
11/05/2024, 7:03 PM@task(
pod_template=PodTemplate(
pod_spec=V1PodSpec(
service_account_name="my-ksa",
containers=[],
)
)
)
def ...
average-finland-92144
11/05/2024, 7:04 PMaverage-secretary-61436
11/05/2024, 7:07 PM