| 57 | } |
| 58 | |
| 59 | type Server struct { |
| 60 | ctx context.Context |
| 61 | kubeClient kube.Client |
| 62 | |
| 63 | handlers K8sHandlers |
| 64 | dataplane MeshDataplane |
| 65 | |
| 66 | isReady *atomic.Value |
| 67 | |
| 68 | cniServerStopFunc func() |
| 69 | } |
| 70 | |
| 71 | func NewServer(ctx context.Context, ready *atomic.Value, pluginSocket string, args AmbientArgs) (*Server, error) { |
| 72 | client, err := buildKubeClient(args.KubeConfig) |
nothing calls this directly
no outgoing calls
no test coverage detected