INNER CODE UNIT · Go
err
kcp-dev/kcp · cmd/sharded-test-server/main.go:226
err := <-cacheServerCh
cacheServerErrCh <- indexErrTuple{0, err}
}()
}
if err := writeLogicalClusterAdminKubeConfig(hostIP.String(), workDirPath); err != nil {
return err
}
if err := writeExternalLogicalClusterAdminKubeConfig(hostIP.String(), workDirPath); err != nil {
return err
}
// start shards
shards := make([]*testshard.Shard, numberOfShards)
for i := range numberOfShards {
shard, err := newShard(ctx, i, shardFlags, standaloneVW, servingCA, hostIP.String(), logDirPath, workDirPath, cacheServerConfigPath, clientCA, externalEtcdServers)
if err != nil {