INNER CODE UNIT · Go
install
kumahq/kuma · app/cni/pkg/install/main.go:104
func install(ctx context.Context, ic *InstallerConfig) error {
if err := ic.PrepareKubeconfig(); err != nil {
return errors.Wrap(err, "failed to prepare kubeconfig")
}
if err := ic.CheckInstall(); err == nil {
log.Info("Kuma CNI is already installed and configured")
return nil
} else {
log.Info("no valid installation found, will proceed with installation", "error", err)
}
if err := copyBinaries(); err != nil {
return errors.Wrap(err, "failed to copy binary files")
}
if err := ic.PrepareKumaCniConfig(ctx); err != nil {
return errors.Wrap(err, "failed to prepare Kuma CNI configuration")