Changed module name, edited default manifests in prog/weave-kube
* Module name changed to `github.com/rajch/weave` * Added environment variable `CHECKPOINT_DISABLE=1` to default manifests, to bypass weaveworks telemetry
This commit is contained in:
1 parent
962bb57b60
commit
c1d3107418
79 files changed
+222
-194
No files matched your search
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
docker "github.com/fsouza/go-dockerclient"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/rajch/weave/common"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module github.com/weaveworks/weave
|
||||
module github.com/rajch/weave
|
||||
|
||||
go 1.20
|
||||
|
||||
|
||||
+2
-2
@@ -3,8 +3,8 @@ package ipam
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/weaveworks/weave/api"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/api"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
type allocateResult struct {
|
||||
|
||||
+9
-8
@@ -9,13 +9,13 @@ import (
|
||||
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/db"
|
||||
"github.com/weaveworks/weave/ipam/paxos"
|
||||
"github.com/weaveworks/weave/ipam/ring"
|
||||
"github.com/weaveworks/weave/ipam/space"
|
||||
"github.com/weaveworks/weave/ipam/tracker"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/db"
|
||||
"github.com/rajch/weave/ipam/paxos"
|
||||
"github.com/rajch/weave/ipam/ring"
|
||||
"github.com/rajch/weave/ipam/space"
|
||||
"github.com/rajch/weave/ipam/tracker"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
// Kinds of message we can unicast to other peers
|
||||
@@ -541,7 +541,8 @@ func (alloc *Allocator) annotatePeernames(names []mesh.PeerName) []string {
|
||||
// in the ring. Async.
|
||||
//
|
||||
// NB: the function is invoked by the gossip library routines and should be
|
||||
// registered manually.
|
||||
//
|
||||
// registered manually.
|
||||
func (alloc *Allocator) PeerGone(peerName mesh.PeerName) {
|
||||
alloc.debugf("PeerGone: peer %s", peerName)
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/weaveworks/weave/api"
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/weaveworks/weave/testing/gossip"
|
||||
"github.com/rajch/weave/api"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/net/address"
|
||||
"github.com/rajch/weave/testing/gossip"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
+3
-3
@@ -5,9 +5,9 @@ import (
|
||||
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/weaveworks/weave/api"
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/api"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
type claim struct {
|
||||
|
||||
+3
-3
@@ -8,9 +8,9 @@ import (
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/common/docker"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/common/docker"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
func badRequest(w http.ResponseWriter, err error) {
|
||||
|
||||
+2
-2
@@ -12,9 +12,9 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/net/address"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
)
|
||||
|
||||
func HTTPPost(t *testing.T, url string) string {
|
||||
|
||||
+5
-4
@@ -6,8 +6,8 @@ import (
|
||||
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
// Entry represents entries around the ring
|
||||
@@ -74,8 +74,9 @@ func (es entries) get(token address.Address) (*entry, bool) {
|
||||
// Is token between entries at i and j?
|
||||
// NB i and j can overflow and will wrap
|
||||
// NBB this function does not work very well if there is only one
|
||||
// token on the ring; luckily an accurate answer is not needed
|
||||
// by the call sites in this case.
|
||||
//
|
||||
// token on the ring; luckily an accurate answer is not needed
|
||||
// by the call sites in this case.
|
||||
func (es entries) between(token address.Address, i, j int) bool {
|
||||
common.Assert(i < j)
|
||||
|
||||
|
||||
+2
-2
@@ -14,8 +14,8 @@ import (
|
||||
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
type OnUpdate func(prev, curr []address.Range, local bool)
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"sort"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
type Space struct {
|
||||
|
||||
@@ -3,9 +3,9 @@ package space
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/rajch/weave/net/address"
|
||||
wt "github.com/rajch/weave/testing"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
wt "github.com/weaveworks/weave/testing"
|
||||
)
|
||||
|
||||
func makeSpace(start address.Address, size address.Offset) *Space {
|
||||
|
||||
+3
-2
@@ -2,8 +2,9 @@ package ipam
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/weaveworks/weave/ipam/paxos"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
|
||||
"github.com/rajch/weave/ipam/paxos"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
type Status struct {
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/rajch/weave/net/address"
|
||||
"github.com/rajch/weave/testing/gossip"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/weaveworks/weave/testing/gossip"
|
||||
)
|
||||
|
||||
type mockMessage struct {
|
||||
|
||||
@@ -29,8 +29,8 @@ import (
|
||||
"github.com/aws/aws-sdk-go/service/ec2"
|
||||
"github.com/vishvananda/netlink"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
type AWSVPCTracker struct {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package tracker
|
||||
|
||||
import (
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
// LocalRangeTracker is an interface for tracking changes in the IPAM ring.
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
"github.com/miekg/dns"
|
||||
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"github.com/miekg/dns"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/rajch/weave/net/address"
|
||||
"github.com/weaveworks/mesh"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
)
|
||||
|
||||
type mockUpstream struct {
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
var now = func() int64 { return time.Now().Unix() }
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
func l(es Entries) Entries {
|
||||
|
||||
+2
-2
@@ -9,8 +9,8 @@ import (
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/miekg/dns"
|
||||
|
||||
"github.com/weaveworks/weave/common/docker"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/common/docker"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
func (n *Nameserver) badRequest(w http.ResponseWriter, err error) {
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"github.com/miekg/dns"
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -12,8 +12,8 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/weaveworks/weave/testing/gossip"
|
||||
"github.com/rajch/weave/net/address"
|
||||
"github.com/rajch/weave/testing/gossip"
|
||||
)
|
||||
|
||||
func makeNameserver(name mesh.PeerName) *Nameserver {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"net"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/rajch/weave/common"
|
||||
)
|
||||
|
||||
// Using 32-bit integer to represent IPv4 address
|
||||
|
||||
+6
-6
@@ -12,11 +12,11 @@ import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/vishvananda/netlink"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/common/chains"
|
||||
"github.com/weaveworks/weave/common/odp"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/weaveworks/weave/net/ipset"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/common/chains"
|
||||
"github.com/rajch/weave/common/odp"
|
||||
"github.com/rajch/weave/net/address"
|
||||
"github.com/rajch/weave/net/ipset"
|
||||
)
|
||||
|
||||
/* This code implements three possible configurations to connect
|
||||
@@ -48,7 +48,7 @@ the "datapath" device, via "router/fastdp.go:fastDatapathBridge"
|
||||
|
||||
"weave" is an Open vSwitch datapath, and capture/injection are as in
|
||||
BridgedFastdp. Not used by default due to missing conntrack support in
|
||||
datapath of old kernel versions (https://github.com/weaveworks/weave/issues/1577).
|
||||
datapath of old kernel versions (https://github.com/rajch/weave/issues/1577).
|
||||
*/
|
||||
|
||||
const (
|
||||
|
||||
@@ -21,7 +21,7 @@ func ensureInterface(ifaceName string) (*net.Interface, error) {
|
||||
ch := make(chan netlink.LinkUpdate)
|
||||
// NB: We do not supply (and eventually close) a 'done' channel
|
||||
// here since that can cause incorrect file descriptor
|
||||
// re-usage. See https://github.com/weaveworks/weave/issues/2120
|
||||
// re-usage. See https://github.com/rajch/weave/issues/2120
|
||||
if err := netlink.LinkSubscribe(ch, nil); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ type ipset struct {
|
||||
// List of users per ipset entry. User is either a namespace or a pod.
|
||||
// There might be multiple users for the same ipset & entry pair because
|
||||
// events from k8s API server might be out of order causing duplicate IPs:
|
||||
// https://github.com/weaveworks/weave/issues/2792.
|
||||
// https://github.com/rajch/weave/issues/2792.
|
||||
users map[entryKey]map[UID]struct{}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -6,8 +6,8 @@ import (
|
||||
"net"
|
||||
"os"
|
||||
|
||||
"github.com/rajch/weave/db"
|
||||
"github.com/weaveworks/mesh"
|
||||
"github.com/weaveworks/weave/db"
|
||||
)
|
||||
|
||||
func getOldStyleSystemUUID() ([]byte, error) {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
||||
networkingv1 "k8s.io/api/networking/v1"
|
||||
"k8s.io/apimachinery/pkg/util/intstr"
|
||||
|
||||
"github.com/weaveworks/weave/net/ipset"
|
||||
"github.com/rajch/weave/net/ipset"
|
||||
)
|
||||
|
||||
func (ns *ns) analysePolicy(policy *networkingv1.NetworkPolicy) (
|
||||
|
||||
+4
-4
@@ -12,10 +12,10 @@ import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/client-go/kubernetes"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/common/chains"
|
||||
"github.com/weaveworks/weave/net/ipset"
|
||||
"github.com/weaveworks/weave/npc/iptables"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/common/chains"
|
||||
"github.com/rajch/weave/net/ipset"
|
||||
"github.com/rajch/weave/npc/iptables"
|
||||
)
|
||||
|
||||
type NetworkPolicyController interface {
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/rajch/weave/common/chains"
|
||||
"github.com/rajch/weave/net/ipset"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/weaveworks/weave/common/chains"
|
||||
"github.com/weaveworks/weave/net/ipset"
|
||||
coreapi "k8s.io/api/core/v1"
|
||||
networkingv1 "k8s.io/api/networking/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
@@ -156,7 +156,7 @@ func (ipt *mockIPTables) Insert(table, chain string, pos int, rulespec ...string
|
||||
|
||||
func TestRegressionPolicyNamespaceOrdering3059(t *testing.T) {
|
||||
// Test for race condition between namespace and networkpolicy events
|
||||
// https://github.com/weaveworks/weave/issues/3059
|
||||
// https://github.com/rajch/weave/issues/3059
|
||||
|
||||
sourceNamespace := &coreapi.Namespace{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
@@ -456,7 +456,7 @@ func TestOutOfOrderPodEvents(t *testing.T) {
|
||||
require.False(t, m.entriesExist(runBarIPSetName, podIP))
|
||||
}
|
||||
|
||||
// Test case for https://github.com/weaveworks/weave/issues/3222
|
||||
// Test case for https://github.com/rajch/weave/issues/3222
|
||||
func TestNewTargetSelector(t *testing.T) {
|
||||
const (
|
||||
ingressDefaultAllowIPSetName = "weave-;rGqyMIl1HN^cfDki~Z$3]6!N"
|
||||
@@ -633,7 +633,7 @@ func TestEgressPolicyWithIPBlock(t *testing.T) {
|
||||
require.Equal(t, 2, len(m.sets[exceptIPSetNameInNonDefault].subSets))
|
||||
}
|
||||
|
||||
// Test case for https://github.com/weaveworks/weave/issues/3653
|
||||
// Test case for https://github.com/rajch/weave/issues/3653
|
||||
func TestIngressPolicyWithIPBlockAndPortSpecified(t *testing.T) {
|
||||
const (
|
||||
barPodIP = "10.32.0.11"
|
||||
|
||||
+2
-2
@@ -7,8 +7,8 @@ import (
|
||||
|
||||
networkingv1 "k8s.io/api/networking/v1"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/net/ipset"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/net/ipset"
|
||||
)
|
||||
|
||||
type ipBlockSpec struct {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/rajch/weave/common"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
+4
-4
@@ -10,10 +10,10 @@ import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/util/uuid"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/common/chains"
|
||||
"github.com/weaveworks/weave/net/ipset"
|
||||
"github.com/weaveworks/weave/npc/iptables"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/common/chains"
|
||||
"github.com/rajch/weave/net/ipset"
|
||||
"github.com/rajch/weave/npc/iptables"
|
||||
)
|
||||
|
||||
var errInvalidNetworkPolicyObjType = errors.New("invalid NetworkPolicy object type")
|
||||
|
||||
+4
-4
@@ -5,10 +5,10 @@ import (
|
||||
"reflect"
|
||||
"strings"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/common/chains"
|
||||
"github.com/weaveworks/weave/net/ipset"
|
||||
"github.com/weaveworks/weave/npc/iptables"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/common/chains"
|
||||
"github.com/rajch/weave/net/ipset"
|
||||
"github.com/rajch/weave/npc/iptables"
|
||||
)
|
||||
|
||||
type ruleHost interface {
|
||||
|
||||
+3
-2
@@ -1,13 +1,14 @@
|
||||
package npc
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestRegressionHandleNil3095(t *testing.T) {
|
||||
// Test for handling nil values
|
||||
// https://github.com/weaveworks/weave/issues/3095
|
||||
// https://github.com/rajch/weave/issues/3095
|
||||
|
||||
rs := newRuleSpec(policyTypeIngress, nil, nil, nil, nil)
|
||||
|
||||
|
||||
+5
-5
@@ -6,8 +6,8 @@ import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/net/ipset"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/net/ipset"
|
||||
)
|
||||
|
||||
type selectorSpec struct {
|
||||
@@ -121,9 +121,9 @@ func newSelectorSet(ips ipset.Interface, onNewSelector selectorFn, onNewTargetSe
|
||||
onNewSelector: onNewSelector,
|
||||
onNewTargetSelector: onNewTargetSelector,
|
||||
onDestroyTargetSelector: onDestroyTargetSelector,
|
||||
users: make(map[string]map[ipset.UID]struct{}),
|
||||
entries: make(map[string]*selector),
|
||||
targetSelectorsCount: make(map[string]map[policyType]int)}
|
||||
users: make(map[string]map[ipset.UID]struct{}),
|
||||
entries: make(map[string]*selector),
|
||||
targetSelectorsCount: make(map[string]map[policyType]int)}
|
||||
}
|
||||
|
||||
func (ss *selectorSet) addToMatchingPodSelector(user ipset.UID, podLabelsMap map[string]string, entry string, comment string) (bool, bool, error) {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import (
|
||||
"os/exec"
|
||||
"syscall"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/rajch/weave/common"
|
||||
)
|
||||
|
||||
func waitForExit(cmd *exec.Cmd) {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
|
||||
"github.com/docker/libnetwork/discoverapi"
|
||||
"github.com/docker/libnetwork/netlabel"
|
||||
"github.com/weaveworks/weave/api"
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/rajch/weave/api"
|
||||
"github.com/rajch/weave/common"
|
||||
)
|
||||
|
||||
type Ipam struct {
|
||||
|
||||
+3
-3
@@ -13,11 +13,11 @@ import (
|
||||
"github.com/containernetworking/cni/pkg/types"
|
||||
current "github.com/containernetworking/cni/pkg/types/100"
|
||||
"github.com/containernetworking/plugins/pkg/ipam"
|
||||
weaveapi "github.com/rajch/weave/api"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
ipamplugin "github.com/rajch/weave/plugin/ipam"
|
||||
"github.com/vishvananda/netlink"
|
||||
"github.com/vishvananda/netns"
|
||||
weaveapi "github.com/weaveworks/weave/api"
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
ipamplugin "github.com/weaveworks/weave/plugin/ipam"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -10,12 +10,12 @@ import (
|
||||
"github.com/docker/libnetwork/types"
|
||||
"golang.org/x/sys/unix"
|
||||
|
||||
weaveapi "github.com/rajch/weave/api"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/common/docker"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
"github.com/rajch/weave/plugin/skel"
|
||||
"github.com/vishvananda/netlink"
|
||||
weaveapi "github.com/weaveworks/weave/api"
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/common/docker"
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
"github.com/weaveworks/weave/plugin/skel"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -3,9 +3,9 @@ package plugin
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
weaveapi "github.com/weaveworks/weave/api"
|
||||
"github.com/weaveworks/weave/common/docker"
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
weaveapi "github.com/rajch/weave/api"
|
||||
"github.com/rajch/weave/common/docker"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
)
|
||||
|
||||
type watcher struct {
|
||||
|
||||
+7
-7
@@ -7,13 +7,13 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/docker/libnetwork/ipamapi"
|
||||
weaveapi "github.com/weaveworks/weave/api"
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/common/docker"
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
ipamplugin "github.com/weaveworks/weave/plugin/ipam"
|
||||
netplugin "github.com/weaveworks/weave/plugin/net"
|
||||
"github.com/weaveworks/weave/plugin/skel"
|
||||
weaveapi "github.com/rajch/weave/api"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/common/docker"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
ipamplugin "github.com/rajch/weave/plugin/ipam"
|
||||
netplugin "github.com/rajch/weave/plugin/net"
|
||||
"github.com/rajch/weave/plugin/skel"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"k8s.io/client-go/kubernetes/fake"
|
||||
"k8s.io/client-go/testing"
|
||||
|
||||
weavetracker "github.com/weaveworks/weave/testing/kubernetes/testing"
|
||||
weavetracker "github.com/rajch/weave/testing/kubernetes/testing"
|
||||
)
|
||||
|
||||
var scheme = runtime.NewScheme()
|
||||
|
||||
@@ -24,8 +24,8 @@ import (
|
||||
"k8s.io/client-go/rest"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
|
||||
weaveapi "github.com/weaveworks/weave/api"
|
||||
"github.com/weaveworks/weave/common"
|
||||
weaveapi "github.com/rajch/weave/api"
|
||||
"github.com/rajch/weave/common"
|
||||
)
|
||||
|
||||
type nodeInfo struct {
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"k8s.io/client-go/kubernetes"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/rajch/weave/common"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -151,6 +151,8 @@ items:
|
||||
fieldRef:
|
||||
apiVersion: v1
|
||||
fieldPath: spec.nodeName
|
||||
- name: CHECKPOINT_DISABLE
|
||||
value: "1"
|
||||
image: 'rajchaudhuri/weave-kube:latest'
|
||||
imagePullPolicy: Always
|
||||
readinessProbe:
|
||||
|
||||
@@ -148,6 +148,8 @@ items:
|
||||
fieldRef:
|
||||
apiVersion: v1
|
||||
fieldPath: spec.nodeName
|
||||
- name: CHECKPOINT_DISABLE
|
||||
value: "1"
|
||||
image: 'rajchaudhuri/weave-kube:latest'
|
||||
imagePullPolicy: Always
|
||||
readinessProbe:
|
||||
|
||||
@@ -151,6 +151,8 @@ items:
|
||||
fieldRef:
|
||||
apiVersion: v1
|
||||
fieldPath: spec.nodeName
|
||||
- name: CHECKPOINT_DISABLE
|
||||
value: "1"
|
||||
image: 'rajchaudhuri/weave-kube:latest'
|
||||
imagePullPolicy: Always
|
||||
readinessProbe:
|
||||
|
||||
@@ -19,13 +19,13 @@ import (
|
||||
"k8s.io/client-go/rest"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/common/chains"
|
||||
"github.com/weaveworks/weave/net"
|
||||
"github.com/weaveworks/weave/net/ipset"
|
||||
"github.com/weaveworks/weave/npc"
|
||||
"github.com/weaveworks/weave/npc/metrics"
|
||||
"github.com/weaveworks/weave/npc/ulogd"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/common/chains"
|
||||
"github.com/rajch/weave/net"
|
||||
"github.com/rajch/weave/net/ipset"
|
||||
"github.com/rajch/weave/npc"
|
||||
"github.com/rajch/weave/npc/metrics"
|
||||
"github.com/rajch/weave/npc/ulogd"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
weave "github.com/rajch/weave/router"
|
||||
checkpoint "github.com/weaveworks/go-checkpoint"
|
||||
weave "github.com/weaveworks/weave/router"
|
||||
)
|
||||
|
||||
var checker *checkpoint.Checker
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"github.com/weaveworks/weave/ipam"
|
||||
"github.com/rajch/weave/ipam"
|
||||
)
|
||||
|
||||
// TODO: move these definitions somewhere more shareable
|
||||
|
||||
+7
-7
@@ -12,14 +12,14 @@ import (
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/ipam"
|
||||
"github.com/rajch/weave/nameserver"
|
||||
"github.com/rajch/weave/net/address"
|
||||
"github.com/rajch/weave/plugin"
|
||||
"github.com/rajch/weave/proxy"
|
||||
weave "github.com/rajch/weave/router"
|
||||
"github.com/weaveworks/go-checkpoint"
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/ipam"
|
||||
"github.com/weaveworks/weave/nameserver"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/weaveworks/weave/plugin"
|
||||
"github.com/weaveworks/weave/proxy"
|
||||
weave "github.com/weaveworks/weave/router"
|
||||
)
|
||||
|
||||
var allConnectionStates = []string{"established", "pending", "retrying", "failed", "connecting"}
|
||||
|
||||
+12
-12
@@ -18,18 +18,18 @@ import (
|
||||
"github.com/weaveworks/common/signals"
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/common/docker"
|
||||
"github.com/weaveworks/weave/db"
|
||||
"github.com/weaveworks/weave/ipam"
|
||||
"github.com/weaveworks/weave/ipam/tracker"
|
||||
"github.com/weaveworks/weave/nameserver"
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/weaveworks/weave/net/ipset"
|
||||
"github.com/weaveworks/weave/plugin"
|
||||
weaveproxy "github.com/weaveworks/weave/proxy"
|
||||
weave "github.com/weaveworks/weave/router"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/common/docker"
|
||||
"github.com/rajch/weave/db"
|
||||
"github.com/rajch/weave/ipam"
|
||||
"github.com/rajch/weave/ipam/tracker"
|
||||
"github.com/rajch/weave/nameserver"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
"github.com/rajch/weave/net/address"
|
||||
"github.com/rajch/weave/net/ipset"
|
||||
"github.com/rajch/weave/plugin"
|
||||
weaveproxy "github.com/rajch/weave/proxy"
|
||||
weave "github.com/rajch/weave/router"
|
||||
)
|
||||
|
||||
var version = "unreleased"
|
||||
|
||||
@@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"testing"
|
||||
|
||||
weavetest "github.com/weaveworks/weave/testing"
|
||||
weavetest "github.com/rajch/weave/testing"
|
||||
)
|
||||
|
||||
func TestMain(t *testing.T) {
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
|
||||
"github.com/weaveworks/weave/ipam"
|
||||
"github.com/weaveworks/weave/nameserver"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
weave "github.com/weaveworks/weave/router"
|
||||
"github.com/rajch/weave/ipam"
|
||||
"github.com/rajch/weave/nameserver"
|
||||
"github.com/rajch/weave/net/address"
|
||||
weave "github.com/rajch/weave/router"
|
||||
)
|
||||
|
||||
func metricsHandler(router *weave.NetworkRouter, allocator *ipam.Allocator, ns *nameserver.Nameserver, dnsserver *nameserver.DNSServer) http.Handler {
|
||||
|
||||
@@ -6,14 +6,14 @@ import (
|
||||
|
||||
docker "github.com/fsouza/go-dockerclient"
|
||||
|
||||
"github.com/rajch/weave/api"
|
||||
"github.com/rajch/weave/common"
|
||||
weavedocker "github.com/rajch/weave/common/docker"
|
||||
"github.com/rajch/weave/ipam"
|
||||
"github.com/rajch/weave/nameserver"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
"github.com/rajch/weave/net/address"
|
||||
"github.com/weaveworks/mesh"
|
||||
"github.com/weaveworks/weave/api"
|
||||
"github.com/weaveworks/weave/common"
|
||||
weavedocker "github.com/weaveworks/weave/common/docker"
|
||||
"github.com/weaveworks/weave/ipam"
|
||||
"github.com/weaveworks/weave/nameserver"
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
)
|
||||
|
||||
func a(cidr *net.IPNet) address.CIDR {
|
||||
|
||||
@@ -3,9 +3,9 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/fsouza/go-dockerclient"
|
||||
docker "github.com/fsouza/go-dockerclient"
|
||||
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
)
|
||||
|
||||
func containerAddrs(args []string) error {
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
|
||||
"github.com/vishvananda/netns"
|
||||
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
"github.com/weaveworks/weave/proxy"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
"github.com/rajch/weave/proxy"
|
||||
)
|
||||
|
||||
func attach(args []string) error {
|
||||
|
||||
@@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
)
|
||||
|
||||
func detectBridgeType(args []string) error {
|
||||
|
||||
@@ -7,10 +7,10 @@ import (
|
||||
"github.com/containernetworking/cni/pkg/version"
|
||||
|
||||
bv "github.com/containernetworking/plugins/pkg/utils/buildversion"
|
||||
weaveapi "github.com/weaveworks/weave/api"
|
||||
"github.com/weaveworks/weave/common"
|
||||
ipamplugin "github.com/weaveworks/weave/plugin/ipam"
|
||||
netplugin "github.com/weaveworks/weave/plugin/net"
|
||||
weaveapi "github.com/rajch/weave/api"
|
||||
"github.com/rajch/weave/common"
|
||||
ipamplugin "github.com/rajch/weave/plugin/ipam"
|
||||
netplugin "github.com/rajch/weave/plugin/net"
|
||||
)
|
||||
|
||||
func cniNet(args []string) error {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/weaveworks/weave/common/odp"
|
||||
"github.com/rajch/weave/common/odp"
|
||||
)
|
||||
|
||||
func createDatapath(args []string) error {
|
||||
|
||||
@@ -4,7 +4,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/weaveworks/weave/db"
|
||||
"github.com/rajch/weave/db"
|
||||
)
|
||||
|
||||
const dbFlagPrefix = "flag:"
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/rajch/weave/common"
|
||||
)
|
||||
|
||||
func dockerTLSArgs(args []string) error {
|
||||
|
||||
@@ -4,7 +4,7 @@ package main
|
||||
import (
|
||||
"net"
|
||||
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
)
|
||||
|
||||
func netcheck(args []string) error {
|
||||
|
||||
@@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
"github.com/rajch/weave/common"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
)
|
||||
|
||||
func processAddrs(args []string) error {
|
||||
|
||||
@@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
)
|
||||
|
||||
func uniqueID(args []string) error {
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
//go:build iface && !mcast
|
||||
// +build iface,!mcast
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
)
|
||||
|
||||
func checkNetwork() error {
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
//go:build iface && mcast
|
||||
// +build iface,mcast
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
)
|
||||
|
||||
func checkNetwork() error {
|
||||
|
||||
+3
-3
@@ -9,9 +9,9 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/fsouza/go-dockerclient"
|
||||
"github.com/weaveworks/weave/common"
|
||||
weavedocker "github.com/weaveworks/weave/common/docker"
|
||||
docker "github.com/fsouza/go-dockerclient"
|
||||
"github.com/rajch/weave/common"
|
||||
weavedocker "github.com/rajch/weave/common/docker"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
+3
-3
@@ -17,9 +17,9 @@ import (
|
||||
docker "github.com/fsouza/go-dockerclient"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
weaveapi "github.com/weaveworks/weave/api"
|
||||
weavedocker "github.com/weaveworks/weave/common/docker"
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
weaveapi "github.com/rajch/weave/api"
|
||||
weavedocker "github.com/rajch/weave/common/docker"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
+17
-1
@@ -2,7 +2,23 @@
|
||||
|
||||
All changes made to the weave net codebase during the reweave effort will be documented in this file.
|
||||
|
||||
## 2.8.2-beta11 (0d58e179) latest
|
||||
## latest
|
||||
|
||||
### Changed
|
||||
|
||||
* Module name changed to `github.com/rajch/weave`
|
||||
* Added environment variable `CHECKPOINT_DISABLE=1` to default manifests, to bypass weaveworks telemetry
|
||||
|
||||
## 2.8.2-beta12 (962bb57b)
|
||||
|
||||
### Changed
|
||||
|
||||
* Alpine base image upgraded to alpine:3.19.1
|
||||
* Upgraded github.com/containerd/containerd to v1.7.11
|
||||
* Upgraded github.com/opencontainers/runc to v1.1.12
|
||||
* Upgraded golang.org/x/crypto to v0.17.0
|
||||
|
||||
## 2.8.2-beta11 (0d58e179)
|
||||
|
||||
### Changed
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
IMAGE_VERSION ?= 2.8.2-beta12
|
||||
IMAGE_VERSION ?= 2.8.2-beta13
|
||||
REGISTRY_USER ?= rajchaudhuri
|
||||
|
||||
ALPINE_BASEIMAGE ?= alpine:3.19.1
|
||||
|
||||
+4
-4
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/weaveworks/go-odp/odp"
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/weaveworks/weave/net/ipsec"
|
||||
"github.com/rajch/weave/net/ipsec"
|
||||
)
|
||||
|
||||
// The virtual bridge accepts packets from ODP vports and the router
|
||||
@@ -1322,9 +1322,9 @@ func (fastdp *FastDatapath) takeDecoder(lock *fastDatapathLock) *EthernetDecoder
|
||||
// mode on the weave bridge port which attaches the datapath. Such flow is
|
||||
// identified by either:
|
||||
//
|
||||
// * in_port == out_port, where in_port is non-vxlan vport;
|
||||
// * a packet is sent back to a vxlan tunnel it has been received from and
|
||||
// the tunnel id is either the same or dstPeer and srcPeer are reversed.
|
||||
// - in_port == out_port, where in_port is non-vxlan vport;
|
||||
// - a packet is sent back to a vxlan tunnel it has been received from and
|
||||
// the tunnel id is either the same or dstPeer and srcPeer are reversed.
|
||||
func (fastdp *FastDatapath) isHairpinFlow(flow *odp.FlowSpec) bool {
|
||||
var (
|
||||
vxlanKey odp.TunnelAttrs
|
||||
|
||||
+3
-3
@@ -7,9 +7,9 @@ import (
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/net"
|
||||
"github.com/weaveworks/weave/net/address"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/net"
|
||||
"github.com/rajch/weave/net/address"
|
||||
)
|
||||
|
||||
func (router *NetworkRouter) HandleHTTP(muxRouter *mux.Router) {
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/weaveworks/weave/db"
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
"github.com/rajch/weave/common"
|
||||
"github.com/rajch/weave/db"
|
||||
weavenet "github.com/rajch/weave/net"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/weaveworks/mesh"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
"github.com/rajch/weave/common"
|
||||
)
|
||||
|
||||
// Router to convey gossip from one gossiper to another, for testing
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ type Gossip interface {
|
||||
// Unicast takes []byte instead of GossipData because "to date there has
|
||||
// been no compelling reason [in practice] to do merging on unicast."
|
||||
// But there may be some motivation to have unicast Mergeable; see
|
||||
// https://github.com/weaveworks/weave/issues/1764
|
||||
// https://github.com/rajch/weave/issues/1764
|
||||
//
|
||||
// TODO(pb): for uniformity of interface, rather take GossipData?
|
||||
GossipUnicast(dst PeerName, msg []byte) error
|
||||
|
||||
Reference in new issue
Block a user