Configurable task role
Configurable task role via `iam.amazonaws.com/role`, which is also used by kube2iam.
This commit is contained in:
committed by
Robbie Zhang
parent
e66d36308c
commit
bb5dbdbd6e
@@ -221,6 +221,9 @@ func (c *Cluster) loadPodState() error {
|
||||
pod.uid = k8sTypes.UID(*task.StartedBy)
|
||||
pod.taskDefArn = *task.TaskDefinitionArn
|
||||
pod.taskArn = *task.TaskArn
|
||||
if taskDef.TaskRoleArn != nil {
|
||||
pod.taskRoleArn = *taskDef.TaskRoleArn
|
||||
}
|
||||
pod.taskStatus = *task.LastStatus
|
||||
pod.taskRefreshTime = time.Now()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user