Client-go: Is the client thread safe?

Created on 13 Nov 2016  路  2Comments  路  Source: kubernetes/client-go

I want to use the client to build an in-cluster service like this example: https://github.com/kubernetes/client-go/blob/master/examples/in-cluster/main.go

Is the client thread safe? In other words, can I create 1 client and use them across multiple goroutines, or would I have to use a mutex to ensure only 1 goroutine accesses the client at a time?

Most helpful comment

The client is thread safe.

All 2 comments

The client is thread safe.

@caesarxuchao Thanks! 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

peterwillcn picture peterwillcn  路  5Comments

yashbhutwala picture yashbhutwala  路  4Comments

h0tbird picture h0tbird  路  3Comments

antoineco picture antoineco  路  6Comments

vklonghml picture vklonghml  路  4Comments