(c *LocalCluster)
| 318 | } |
| 319 | |
| 320 | func (a *alpha) mounts(c *LocalCluster) ([]mount.Mount, error) { |
| 321 | var mounts []mount.Mount |
| 322 | binMount, err := mountBinary(c) |
| 323 | if err != nil { |
| 324 | return nil, err |
| 325 | } |
| 326 | mounts = append(mounts, binMount) |
| 327 | |
| 328 | if c.conf.acl || c.conf.encryption { |
| 329 | mounts = append(mounts, mount.Mount{ |
| 330 | Type: mount.TypeBind, |
| 331 | Source: c.tempSecretsDir, |
| 332 | Target: secretsMountPath, |
| 333 | ReadOnly: true, |
| 334 | }) |
| 335 | } |
| 336 | |
| 337 | if c.conf.bulkOutDirForMount != "" { |
| 338 | pDir := filepath.Join(c.conf.bulkOutDirForMount, strconv.Itoa(a.id/c.conf.replicas), "p") |
| 339 | if err := os.MkdirAll(pDir, os.ModePerm); err != nil { |
| 340 | return nil, errors.Wrap(err, "erorr creating bulk dir") |
| 341 | } |
| 342 | mounts = append(mounts, mount.Mount{ |
| 343 | Type: mount.TypeBind, |
| 344 | Source: pDir, |
| 345 | Target: DefaultAlphaPDir, |
| 346 | ReadOnly: false, |
| 347 | }) |
| 348 | } |
| 349 | |
| 350 | for dir, vol := range c.conf.volumes { |
| 351 | mounts = append(mounts, mount.Mount{ |
| 352 | Type: mount.TypeVolume, |
| 353 | Source: vol, |
| 354 | Target: dir, |
| 355 | ReadOnly: false, |
| 356 | }) |
| 357 | } |
| 358 | return mounts, nil |
| 359 | } |
| 360 | |
| 361 | func (a *alpha) healthURL(c *LocalCluster) (string, error) { |
| 362 | publicPort, err := publicPort(c.dcli, a, alphaHttpPort) |
nothing calls this directly
no test coverage detected