Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Change imports path from weaveworks to fluxcd
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Sep 4, 2019
1 parent ff33d2a commit 4d8024f
Show file tree
Hide file tree
Showing 176 changed files with 514 additions and 517 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ realclean: clean
rm -rf ./cache

test: test/bin/helm test/bin/kubectl test/bin/kustomize
PATH="${PWD}/bin:${PWD}/test/bin:${PATH}" go test ${TEST_FLAGS} $(shell go list ./... | grep -v "^github.com/weaveworks/flux/vendor" | sort -u)
PATH="${PWD}/bin:${PWD}/test/bin:${PATH}" go test ${TEST_FLAGS} $(shell go list ./... | grep -v "^github.com/fluxcd/flux/vendor" | sort -u)

e2e: test/bin/helm test/bin/kubectl build/.flux.done
PATH="${PWD}/test/bin:${PATH}" CURRENT_OS_ARCH=$(CURRENT_OS_ARCH) test/e2e/run.sh
Expand Down Expand Up @@ -113,8 +113,6 @@ $(GOBIN)/fluxd: $(FLUXD_DEPS)
integration-test: all
test/bin/test-flux



generate-deploy: install/generated_templates.gogen.go
cd deploy && go run ../install/generate.go deploy

Expand Down
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package api

import "github.com/weaveworks/flux/api/v11"
import "github.com/fluxcd/flux/api/v11"

// Server defines the minimal interface a Flux must satisfy to adequately serve a
// connecting fluxctl. This interface specifically does not facilitate connecting
Expand Down
6 changes: 3 additions & 3 deletions api/v10/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package v10
import (
"context"

"github.com/weaveworks/flux/api/v6"
"github.com/weaveworks/flux/api/v9"
"github.com/weaveworks/flux/update"
"github.com/fluxcd/flux/api/v6"
"github.com/fluxcd/flux/api/v9"
"github.com/fluxcd/flux/update"
)

type ListImagesOptions struct {
Expand Down
6 changes: 3 additions & 3 deletions api/v11/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package v11
import (
"context"

"github.com/weaveworks/flux/api/v10"
"github.com/weaveworks/flux/api/v6"
"github.com/weaveworks/flux/resource"
"github.com/fluxcd/flux/api/v10"
"github.com/fluxcd/flux/api/v6"
"github.com/fluxcd/flux/resource"
)

type ListServicesOptions struct {
Expand Down
12 changes: 6 additions & 6 deletions api/v6/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package v6
import (
"context"

"github.com/weaveworks/flux/cluster"
"github.com/weaveworks/flux/git"
"github.com/weaveworks/flux/job"
"github.com/weaveworks/flux/resource"
"github.com/weaveworks/flux/ssh"
"github.com/weaveworks/flux/update"
"github.com/fluxcd/flux/cluster"
"github.com/fluxcd/flux/git"
"github.com/fluxcd/flux/job"
"github.com/fluxcd/flux/resource"
"github.com/fluxcd/flux/ssh"
"github.com/fluxcd/flux/update"
)

type ImageStatus struct {
Expand Down
8 changes: 4 additions & 4 deletions api/v6/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package v6

import (
"github.com/pkg/errors"
"github.com/weaveworks/flux/image"
"github.com/weaveworks/flux/policy"
"github.com/weaveworks/flux/registry"
"github.com/weaveworks/flux/update"
"github.com/fluxcd/flux/image"
"github.com/fluxcd/flux/policy"
"github.com/fluxcd/flux/registry"
"github.com/fluxcd/flux/update"
)

// Container describes an individual container including current image info and
Expand Down
6 changes: 3 additions & 3 deletions api/v6/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"github.com/stretchr/testify/assert"

"github.com/weaveworks/flux/image"
"github.com/weaveworks/flux/policy"
"github.com/weaveworks/flux/update"
"github.com/fluxcd/flux/image"
"github.com/fluxcd/flux/policy"
"github.com/fluxcd/flux/update"
)

type justSlice []image.Info
Expand Down
2 changes: 1 addition & 1 deletion api/v9/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package v9
import (
"context"

"github.com/weaveworks/flux/api/v6"
"github.com/fluxcd/flux/api/v6"
)

type Server interface {
Expand Down
2 changes: 1 addition & 1 deletion api/v9/change.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"errors"

"github.com/weaveworks/flux/image"
"github.com/fluxcd/flux/image"
)

type ChangeKind string
Expand Down
2 changes: 1 addition & 1 deletion api/v9/change_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"github.com/weaveworks/flux/image"
"github.com/fluxcd/flux/image"
)

func TestChangeEncoding(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"errors"

"github.com/weaveworks/flux/policy"
"github.com/weaveworks/flux/resource"
"github.com/weaveworks/flux/ssh"
"github.com/fluxcd/flux/policy"
"github.com/fluxcd/flux/resource"
"github.com/fluxcd/flux/ssh"
)

// Constants for workload ready status. These are defined here so that
Expand Down
2 changes: 1 addition & 1 deletion cluster/kubernetes/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package kubernetes
import (
"fmt"

fluxerr "github.com/weaveworks/flux/errors"
fluxerr "github.com/fluxcd/flux/errors"
)

func ObjectMissingError(obj string, err error) *fluxerr.Error {
Expand Down
6 changes: 3 additions & 3 deletions cluster/kubernetes/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
apierrors "k8s.io/apimachinery/pkg/api/errors"
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/weaveworks/flux/image"
"github.com/weaveworks/flux/registry"
"github.com/weaveworks/flux/resource"
"github.com/fluxcd/flux/image"
"github.com/fluxcd/flux/registry"
"github.com/fluxcd/flux/resource"
)

func mergeCredentials(log func(...interface{}) error,
Expand Down
4 changes: 2 additions & 2 deletions cluster/kubernetes/images_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
apiv1 "k8s.io/api/core/v1"
"k8s.io/client-go/kubernetes/fake"

"github.com/weaveworks/flux/image"
"github.com/weaveworks/flux/registry"
"github.com/fluxcd/flux/image"
"github.com/fluxcd/flux/registry"
)

func noopLog(...interface{}) error {
Expand Down
10 changes: 5 additions & 5 deletions cluster/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import (
k8sclientdynamic "k8s.io/client-go/dynamic"
k8sclient "k8s.io/client-go/kubernetes"

"github.com/weaveworks/flux/cluster"
kresource "github.com/weaveworks/flux/cluster/kubernetes/resource"
fhrclient "github.com/weaveworks/flux/integrations/client/clientset/versioned"
"github.com/weaveworks/flux/resource"
"github.com/weaveworks/flux/ssh"
"github.com/fluxcd/flux/cluster"
kresource "github.com/fluxcd/flux/cluster/kubernetes/resource"
fhrclient "github.com/fluxcd/flux/integrations/client/clientset/versioned"
"github.com/fluxcd/flux/resource"
"github.com/fluxcd/flux/ssh"
)

type coreClient k8sclient.Interface
Expand Down
6 changes: 3 additions & 3 deletions cluster/kubernetes/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
"k8s.io/apimachinery/pkg/runtime/schema"

kresource "github.com/weaveworks/flux/cluster/kubernetes/resource"
"github.com/weaveworks/flux/image"
"github.com/weaveworks/flux/resource"
kresource "github.com/fluxcd/flux/cluster/kubernetes/resource"
"github.com/fluxcd/flux/image"
"github.com/fluxcd/flux/resource"
)

// ResourceScopes maps resource definitions (GroupVersionKind) to whether they are namespaced or not
Expand Down
2 changes: 1 addition & 1 deletion cluster/kubernetes/manifests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/weaveworks/flux/cluster/kubernetes/testfiles"
"github.com/fluxcd/flux/cluster/kubernetes/testfiles"
)

func TestLocalCRDScope(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cluster/kubernetes/mock.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package kubernetes

import kresource "github.com/weaveworks/flux/cluster/kubernetes/resource"
import kresource "github.com/fluxcd/flux/cluster/kubernetes/resource"

type ConstNamespacer string

Expand Down
2 changes: 1 addition & 1 deletion cluster/kubernetes/namespacer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"k8s.io/client-go/discovery"
"k8s.io/client-go/tools/clientcmd"

kresource "github.com/weaveworks/flux/cluster/kubernetes/resource"
kresource "github.com/fluxcd/flux/cluster/kubernetes/resource"
)

// The namespace to presume if something doesn't have one, and we
Expand Down
2 changes: 1 addition & 1 deletion cluster/kubernetes/namespacer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
corefake "k8s.io/client-go/kubernetes/fake"

kresource "github.com/weaveworks/flux/cluster/kubernetes/resource"
kresource "github.com/fluxcd/flux/cluster/kubernetes/resource"
)

var getAndList = metav1.Verbs([]string{"get", "list"})
Expand Down
4 changes: 2 additions & 2 deletions cluster/kubernetes/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"k8s.io/apimachinery/pkg/util/strategicpatch"
k8sscheme "k8s.io/client-go/kubernetes/scheme"

kresource "github.com/weaveworks/flux/cluster/kubernetes/resource"
"github.com/weaveworks/flux/resource"
kresource "github.com/fluxcd/flux/cluster/kubernetes/resource"
"github.com/fluxcd/flux/resource"
)

func createManifestPatch(originalManifests, modifiedManifests []byte, originalSource, modifiedSource string) ([]byte, error) {
Expand Down
2 changes: 1 addition & 1 deletion cluster/kubernetes/patch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"gopkg.in/yaml.v2"

"github.com/weaveworks/flux/cluster/kubernetes/resource"
"github.com/fluxcd/flux/cluster/kubernetes/resource"
)

func TestPatchAndApply(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions cluster/kubernetes/policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package kubernetes
import (
"fmt"

kresource "github.com/weaveworks/flux/cluster/kubernetes/resource"
"github.com/weaveworks/flux/resource"
kresource "github.com/fluxcd/flux/cluster/kubernetes/resource"
"github.com/fluxcd/flux/resource"
)

func (m *manifests) UpdateWorkloadPolicies(def []byte, id resource.ID, update resource.PolicyUpdate) ([]byte, error) {
Expand Down
4 changes: 2 additions & 2 deletions cluster/kubernetes/policies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/go-kit/kit/log"
"github.com/stretchr/testify/assert"

"github.com/weaveworks/flux/policy"
"github.com/weaveworks/flux/resource"
"github.com/fluxcd/flux/policy"
"github.com/fluxcd/flux/resource"
)

func TestUpdatePolicies(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions cluster/kubernetes/resource/cronjob.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package resource

import (
"github.com/weaveworks/flux/image"
"github.com/weaveworks/flux/resource"
"github.com/fluxcd/flux/image"
"github.com/fluxcd/flux/resource"
)

type CronJob struct {
Expand Down
4 changes: 2 additions & 2 deletions cluster/kubernetes/resource/daemonset.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package resource

import (
"github.com/weaveworks/flux/image"
"github.com/weaveworks/flux/resource"
"github.com/fluxcd/flux/image"
"github.com/fluxcd/flux/resource"
)

type DaemonSet struct {
Expand Down
4 changes: 2 additions & 2 deletions cluster/kubernetes/resource/deployment.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package resource

import (
"github.com/weaveworks/flux/image"
"github.com/weaveworks/flux/resource"
"github.com/fluxcd/flux/image"
"github.com/fluxcd/flux/resource"
)

type Deployment struct {
Expand Down
4 changes: 2 additions & 2 deletions cluster/kubernetes/resource/helmrelease.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"sort"
"strings"

"github.com/weaveworks/flux/image"
"github.com/weaveworks/flux/resource"
"github.com/fluxcd/flux/image"
"github.com/fluxcd/flux/resource"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cluster/kubernetes/resource/helmrelease_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/assert"
"testing"

"github.com/weaveworks/flux/resource"
"github.com/fluxcd/flux/resource"
)

func TestSortedContainers(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions cluster/kubernetes/resource/load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/weaveworks/flux/cluster/kubernetes/testfiles"
"github.com/weaveworks/flux/resource"
"github.com/fluxcd/flux/cluster/kubernetes/testfiles"
"github.com/fluxcd/flux/resource"
)

// for convenience
Expand Down
6 changes: 3 additions & 3 deletions cluster/kubernetes/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
jsonyaml "github.com/ghodss/yaml"
"gopkg.in/yaml.v2"

fluxerr "github.com/weaveworks/flux/errors"
"github.com/weaveworks/flux/policy"
"github.com/weaveworks/flux/resource"
fluxerr "github.com/fluxcd/flux/errors"
"github.com/fluxcd/flux/policy"
"github.com/fluxcd/flux/resource"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cluster/kubernetes/resource/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package resource
import (
"fmt"

"github.com/weaveworks/flux/image"
"github.com/weaveworks/flux/resource"
"github.com/fluxcd/flux/image"
"github.com/fluxcd/flux/resource"
)

// Types that daemonsets, deployments, and other things have in
Expand Down
4 changes: 2 additions & 2 deletions cluster/kubernetes/resource/statefulset.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package resource

import (
"github.com/weaveworks/flux/image"
"github.com/weaveworks/flux/resource"
"github.com/fluxcd/flux/image"
"github.com/fluxcd/flux/resource"
)

type StatefulSet struct {
Expand Down
14 changes: 7 additions & 7 deletions cluster/kubernetes/resourcekinds.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
apiv1 "k8s.io/api/core/v1"
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/weaveworks/flux/cluster"
kresource "github.com/weaveworks/flux/cluster/kubernetes/resource"
"github.com/weaveworks/flux/image"
hr_v1beta1 "github.com/weaveworks/flux/integrations/apis/flux.weave.works/v1beta1"
fhr_v1alpha2 "github.com/weaveworks/flux/integrations/apis/helm.integrations.flux.weave.works/v1alpha2"
"github.com/weaveworks/flux/policy"
"github.com/weaveworks/flux/resource"
"github.com/fluxcd/flux/cluster"
kresource "github.com/fluxcd/flux/cluster/kubernetes/resource"
"github.com/fluxcd/flux/image"
hr_v1beta1 "github.com/fluxcd/flux/integrations/apis/flux.weave.works/v1beta1"
fhr_v1alpha2 "github.com/fluxcd/flux/integrations/apis/helm.integrations.flux.weave.works/v1alpha2"
"github.com/fluxcd/flux/policy"
"github.com/fluxcd/flux/resource"
)

// AntecedentAnnotation is an annotation on a resource indicating that
Expand Down
Loading

0 comments on commit 4d8024f

Please sign in to comment.