INNER CODE UNIT · Go

copyBinaries

kumahq/kuma · app/cni/pkg/install/main.go:175

func copyBinaries() error {
	var errs error

	for _, dir := range []string{primaryBinDir, secondaryBinDir} {
		err := tryWritingToDir(dir)
		if err == nil {
			log.Info("successfully wrote kuma CNI binaries", "directory", dir)
			return nil
		}

		errs = std_errors.Join(
			errs,
			errors.Wrapf(err, "failed to write binaries to directory %s", dir),
		)

		log.Info("failed to write binaries", "directory", dir)
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…