Skip to content

Commit 5b2c4db

Browse files
committed
Prepare move to kilo-io
This commit changes all package paths from squat/kilo to kilo-io/kilo and the docker image name from squat/kilo to kiloio/squat. The API name and comments regarding the website kilo.squat.ai are unchanged. Signed-off-by: leonnicolas <leonloechner@gmx.de>
1 parent 1b5ad03 commit 5b2c4db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+100
-98
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ else
1212
endif
1313
RELEASE_BINS := $(addprefix bin/release/kgctl-, $(addprefix linux-, $(ALL_ARCH)) darwin-amd64 darwin-arm64 windows-amd64)
1414
PROJECT := kilo
15-
PKG := github.com/squat/$(PROJECT)
15+
PKG := github.com/kilo-io/$(PROJECT)
1616
REGISTRY ?= index.docker.io
17-
IMAGE ?= squat/$(PROJECT)
17+
IMAGE ?= kiloio/$(PROJECT)
1818
FULLY_QUALIFIED_IMAGE := $(REGISTRY)/$(IMAGE)
1919

2020
TAG := $(shell git describe --abbrev=0 --tags HEAD 2>/dev/null)

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
Kilo is a multi-cloud network overlay built on WireGuard and designed for Kubernetes.
66

7-
[![Build Status](https://github.com/squat/kilo/workflows/CI/badge.svg)](https://github.com/squat/kilo/actions?query=workflow%3ACI)
8-
[![Go Report Card](https://goreportcard.com/badge/github.com/squat/kilo)](https://goreportcard.com/report/github.com/squat/kilo)
7+
[![Build Status](https://github.com/kilo-io/kilo/workflows/CI/badge.svg)](https://github.com/kilo-io/kilo/actions?query=workflow%3ACI)
8+
[![Go Report Card](https://goreportcard.com/badge/github.com/kilo-io/kilo)](https://goreportcard.com/report/github.com/kilo-io/kilo)
99
[![Docker Pulls](https://img.shields.io/docker/pulls/squat/kilo)](https://hub.docker.com/r/squat/kilo)
1010
[![Slack](https://img.shields.io/badge/join%20slack-%23kilo-brightgreen.svg)](https://slack.k8s.io/)
1111

@@ -72,29 +72,29 @@ Kilo can be installed by deploying a DaemonSet to the cluster.
7272
To run Kilo on kubeadm:
7373

7474
```shell
75-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/crds.yaml
76-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/kilo-kubeadm.yaml
75+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/crds.yaml
76+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/kilo-kubeadm.yaml
7777
```
7878

7979
To run Kilo on bootkube:
8080

8181
```shell
82-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/crds.yaml
83-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/kilo-bootkube.yaml
82+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/crds.yaml
83+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/kilo-bootkube.yaml
8484
```
8585

8686
To run Kilo on Typhoon:
8787

8888
```shell
89-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/crds.yaml
90-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/kilo-typhoon.yaml
89+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/crds.yaml
90+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/kilo-typhoon.yaml
9191
```
9292

9393
To run Kilo on k3s:
9494

9595
```shell
96-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/crds.yaml
97-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/kilo-k3s.yaml
96+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/crds.yaml
97+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/kilo-k3s.yaml
9898
```
9999

100100
## Add-on Mode
@@ -106,11 +106,11 @@ Kilo currently supports running on top of Flannel.
106106
For example, to run Kilo on a Typhoon cluster running Flannel:
107107

108108
```shell
109-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/crds.yaml
110-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/kilo-typhoon-flannel.yaml
109+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/crds.yaml
110+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/kilo-typhoon-flannel.yaml
111111
```
112112

113-
[See the manifests directory for more examples](https://github.com/squat/kilo/tree/main/manifests).
113+
[See the manifests directory for more examples](https://github.com/kilo-io/kilo/tree/main/manifests).
114114

115115
## VPN
116116

cmd/kg/handlers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"os"
2525
"os/exec"
2626

27-
"github.com/squat/kilo/pkg/mesh"
27+
"github.com/kilo-io/kilo/pkg/mesh"
2828
)
2929

3030
type graphHandler struct {

cmd/kg/main.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ import (
3535
"k8s.io/client-go/kubernetes"
3636
"k8s.io/client-go/tools/clientcmd"
3737

38-
"github.com/squat/kilo/pkg/encapsulation"
39-
"github.com/squat/kilo/pkg/k8s"
40-
kiloclient "github.com/squat/kilo/pkg/k8s/clientset/versioned"
41-
"github.com/squat/kilo/pkg/mesh"
42-
"github.com/squat/kilo/pkg/version"
43-
"github.com/squat/kilo/pkg/wireguard"
38+
"github.com/kilo-io/kilo/pkg/encapsulation"
39+
"github.com/kilo-io/kilo/pkg/k8s"
40+
kiloclient "github.com/kilo-io/kilo/pkg/k8s/clientset/versioned"
41+
"github.com/kilo-io/kilo/pkg/mesh"
42+
"github.com/kilo-io/kilo/pkg/version"
43+
"github.com/kilo-io/kilo/pkg/wireguard"
4444
)
4545

4646
const (

cmd/kgctl/graph.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import (
1818
"fmt"
1919

2020
"github.com/spf13/cobra"
21-
"github.com/squat/kilo/pkg/mesh"
21+
22+
"github.com/kilo-io/kilo/pkg/mesh"
2223
)
2324

2425
func graph() *cobra.Command {

cmd/kgctl/main.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ import (
2626
"k8s.io/client-go/kubernetes"
2727
"k8s.io/client-go/tools/clientcmd"
2828

29-
"github.com/squat/kilo/pkg/k8s"
30-
kiloclient "github.com/squat/kilo/pkg/k8s/clientset/versioned"
31-
"github.com/squat/kilo/pkg/mesh"
32-
"github.com/squat/kilo/pkg/version"
29+
"github.com/kilo-io/kilo/pkg/k8s"
30+
kiloclient "github.com/kilo-io/kilo/pkg/k8s/clientset/versioned"
31+
"github.com/kilo-io/kilo/pkg/mesh"
32+
"github.com/kilo-io/kilo/pkg/version"
3333
)
3434

3535
const (

cmd/kgctl/showconf.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ import (
2828
"k8s.io/apimachinery/pkg/runtime/schema"
2929
"k8s.io/apimachinery/pkg/runtime/serializer/json"
3030

31-
"github.com/squat/kilo/pkg/k8s/apis/kilo/v1alpha1"
32-
"github.com/squat/kilo/pkg/mesh"
33-
"github.com/squat/kilo/pkg/wireguard"
31+
"github.com/kilo-io/kilo/pkg/k8s/apis/kilo/v1alpha1"
32+
"github.com/kilo-io/kilo/pkg/mesh"
33+
"github.com/kilo-io/kilo/pkg/wireguard"
3434
)
3535

3636
const (

docs/building_kilo.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To follow along, you need to install the following utilities:
1414

1515
Clone the Repository and `cd` into it.
1616
```shell
17-
git clone https://github.com/squat/kilo.git
17+
git clone https://github.com/kilo-io/kilo.git
1818
cd kilo
1919
```
2020

docs/kg.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It performs several key functions, including:
88
* maintaining routing table entries and iptables rules.
99

1010
`kg` is typically installed on all nodes of a Kubernetes cluster using a DaemonSet.
11-
Example manifests can be found [in the manifests directory](https://github.com/squat/kilo/tree/main/manifests).
11+
Example manifests can be found [in the manifests directory](https://github.com/kilo-io/kilo/tree/main/manifests).
1212

1313
## Usage
1414

docs/kgctl.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ This tool can be used to understand a mesh's topology, get the WireGuard configu
66

77
## Installation
88

9-
The `kgctl` binary is automatically compiled for Linux, macOS, and Windows for every release of Kilo and can be downloaded from [the GitHub releases page](https://github.com/squat/kilo/releases/latest).
9+
The `kgctl` binary is automatically compiled for Linux, macOS, and Windows for every release of Kilo and can be downloaded from [the GitHub releases page](https://github.com/kilo-io/kilo/releases/latest).
1010

1111
### Building from Source
1212
Kilo is written in Golang and as a result the [Go toolchain must be installed](https://golang.org/doc/install) in order to build the `kgctl` binary.
1313
To download the Kilo source code and then build and install `kgctl` using the latest commit all with a single command, run:
1414

1515
```shell
16-
go install github.com/squat/kilo/cmd/kgctl@latest
16+
go install github.com/kilo-io/kilo/cmd/kgctl@latest
1717
```
1818

1919
Alternatively, `kgctl` can be built and installed based on specific version of the code by specifying a Git tag or hash, e.g.:
2020

2121
```shell
22-
go install github.com/squat/kilo/cmd/kgctl@0.2.0
22+
go install github.com/kilo-io/kilo/cmd/kgctl@0.2.0
2323
```
2424

2525
When working on Kilo locally, it can be helpful to build and test the `kgctl` binary as part of the development cycle.

docs/network-policies.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Support for [Kubernetes network policies](https://kubernetes.io/docs/concepts/se
1010
The following command adds network policy support by deploying kube-router to work alongside Kilo:
1111

1212
```shell
13-
kubectl apply -f kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/kube-router.yaml
13+
kubectl apply -f kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/kube-router.yaml
1414
```
1515

1616
## Examples

docs/userspace-wireguard.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ This DaemonSet creates a WireGuard interface that Kilo will manage.
1818
An example configuration for a K3s cluster with [BoringTun] can be applied with:
1919

2020
```shell
21-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/crds.yaml
22-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/kilo-k3s-userspace.yaml
21+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/crds.yaml
22+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/kilo-k3s-userspace.yaml
2323
```
2424

2525
> **Note**: even if some nodes have the WireGuard kernel module, this configuration will cause all nodes to use the userspace implementation of WireGuard.
@@ -30,8 +30,8 @@ In a heterogeneous cluster where some nodes are missing the WireGuard kernel mod
3030
An example of such a configuration for a K3s cluster can by applied with:
3131

3232
```shell
33-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/crds.yaml
34-
kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/kilo-k3s-userspace-heterogeneous.yaml
33+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/crds.yaml
34+
kubectl apply -f https://raw.githubusercontent.com/kilo-io/kilo/main/manifests/kilo-k3s-userspace-heterogeneous.yaml
3535
```
3636

3737
This configuration will deploy [nkml](https://github.com/leonnicolas/nkml) as a DaemonSet to label all nodes according to the presence of the WireGuard kernel module.

e2e/kilo-kind-userspace.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ spec:
101101
hostNetwork: true
102102
containers:
103103
- name: kilo
104-
image: squat/kilo:test
104+
image: kiloio/kilo:test
105105
imagePullPolicy: Never
106106
args:
107107
- --hostname=$(NODE_NAME)
@@ -149,7 +149,7 @@ spec:
149149
readOnly: false
150150
initContainers:
151151
- name: install-cni
152-
image: squat/kilo:test
152+
image: kiloio/kilo:test
153153
imagePullPolicy: Never
154154
command:
155155
- /bin/sh

e2e/lib.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ KIND_CLUSTER="kind-cluster-kilo"
44
KIND_BINARY="${KIND_BINARY:-kind}"
55
KUBECTL_BINARY="${KUBECTL_BINARY:-kubectl}"
66
KGCTL_BINARY="${KGCTL_BINARY:-kgctl}"
7-
KILO_IMAGE="${KILO_IMAGE:-squat/kilo}"
7+
KILO_IMAGE="${KILO_IMAGE:-kiloio/kilo}"
88

99
retry() {
1010
local COUNT="${1:-10}"
@@ -118,9 +118,9 @@ create_cluster() {
118118
# Create the kind cluster.
119119
_kind create cluster --name $KIND_CLUSTER --config <(echo "$CONFIG")
120120
# Load the Kilo image into kind.
121-
docker tag "$KILO_IMAGE" squat/kilo:test
121+
docker tag "$KILO_IMAGE" kiloio/kilo:test
122122
# This command does not accept the --kubeconfig flag, so call the command directly.
123-
$KIND_BINARY load docker-image squat/kilo:test --name $KIND_CLUSTER
123+
$KIND_BINARY load docker-image kiloio/kilo:test --name $KIND_CLUSTER
124124
# Create the kubeconfig secret.
125125
_kubectl create secret generic kubeconfig --from-file=kubeconfig="$KUBECONFIG" -n kube-system
126126
# Apply Kilo the the cluster.

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/squat/kilo
1+
module github.com/kilo-io/kilo
22

33
go 1.15
44

pkg/encapsulation/encapsulation.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package encapsulation
1717
import (
1818
"net"
1919

20-
"github.com/squat/kilo/pkg/iptables"
20+
"github.com/kilo-io/kilo/pkg/iptables"
2121
)
2222

2323
// Strategy identifies which packets within a location should

pkg/encapsulation/flannel.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ import (
1919
"net"
2020
"sync"
2121

22-
"github.com/squat/kilo/pkg/iptables"
2322
"github.com/vishvananda/netlink"
23+
24+
"github.com/kilo-io/kilo/pkg/iptables"
2425
)
2526

2627
const flannelDeviceName = "flannel.1"

pkg/encapsulation/ipip.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
"fmt"
1919
"net"
2020

21-
"github.com/squat/kilo/pkg/iproute"
22-
"github.com/squat/kilo/pkg/iptables"
21+
"github.com/kilo-io/kilo/pkg/iproute"
22+
"github.com/kilo-io/kilo/pkg/iptables"
2323
)
2424

2525
type ipip struct {

pkg/encapsulation/noop.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package encapsulation
1717
import (
1818
"net"
1919

20-
"github.com/squat/kilo/pkg/iptables"
20+
"github.com/kilo-io/kilo/pkg/iptables"
2121
)
2222

2323
// Noop is an encapsulation that does nothing.

pkg/k8s/backend.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ import (
3737
v1listers "k8s.io/client-go/listers/core/v1"
3838
"k8s.io/client-go/tools/cache"
3939

40-
"github.com/squat/kilo/pkg/k8s/apis/kilo/v1alpha1"
41-
kiloclient "github.com/squat/kilo/pkg/k8s/clientset/versioned"
42-
v1alpha1informers "github.com/squat/kilo/pkg/k8s/informers/kilo/v1alpha1"
43-
v1alpha1listers "github.com/squat/kilo/pkg/k8s/listers/kilo/v1alpha1"
44-
"github.com/squat/kilo/pkg/mesh"
45-
"github.com/squat/kilo/pkg/wireguard"
40+
"github.com/kilo-io/kilo/pkg/k8s/apis/kilo/v1alpha1"
41+
kiloclient "github.com/kilo-io/kilo/pkg/k8s/clientset/versioned"
42+
v1alpha1informers "github.com/kilo-io/kilo/pkg/k8s/informers/kilo/v1alpha1"
43+
v1alpha1listers "github.com/kilo-io/kilo/pkg/k8s/listers/kilo/v1alpha1"
44+
"github.com/kilo-io/kilo/pkg/mesh"
45+
"github.com/kilo-io/kilo/pkg/wireguard"
4646
)
4747

4848
const (

pkg/k8s/backend_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
"github.com/kylelemons/godebug/pretty"
2222
v1 "k8s.io/api/core/v1"
2323

24-
"github.com/squat/kilo/pkg/k8s/apis/kilo/v1alpha1"
25-
"github.com/squat/kilo/pkg/mesh"
26-
"github.com/squat/kilo/pkg/wireguard"
24+
"github.com/kilo-io/kilo/pkg/k8s/apis/kilo/v1alpha1"
25+
"github.com/kilo-io/kilo/pkg/mesh"
26+
"github.com/kilo-io/kilo/pkg/wireguard"
2727
)
2828

2929
func TestTranslateNode(t *testing.T) {

pkg/k8s/clientset/versioned/clientset.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/k8s/clientset/versioned/fake/clientset_generated.go

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/k8s/clientset/versioned/fake/register.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/k8s/clientset/versioned/scheme/register.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/fake/fake_kilo_client.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/fake/fake_peer.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)