mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-02 02:54:23 +00:00
Update provider.go
This commit is contained in:
parent
3001abeff6
commit
9bd4fb0619
@ -121,7 +121,7 @@ func (provider *Provider) CreateMizuPod(ctx context.Context, namespace string, p
|
|||||||
NodeSelector: map[string]string{"kubernetes.io/hostname": tappedPod.Spec.NodeName},
|
NodeSelector: map[string]string{"kubernetes.io/hostname": tappedPod.Spec.NodeName},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
//pod will crash if a non existent service account name is defined in spec
|
//define the service account only when it exists to prevent pod crash
|
||||||
if linkServiceAccount {
|
if linkServiceAccount {
|
||||||
pod.Spec.ServiceAccountName = serviceAccountName
|
pod.Spec.ServiceAccountName = serviceAccountName
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user