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 Jul 29, 2019
1 parent e50dda2 commit 338ccdc
Show file tree
Hide file tree
Showing 184 changed files with 541 additions and 543 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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 build/.helm-operator.done
PATH="${PWD}/test/bin:${PATH}" CURRENT_OS_ARCH=$(CURRENT_OS_ARCH) test/e2e/run.sh
Expand Down Expand Up @@ -122,8 +122,6 @@ $(GOBIN)/helm-operator: $(HELM_OPERATOR_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
4 changes: 2 additions & 2 deletions api/v6/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/stretchr/testify/assert"

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

func TestNewContainer(t *testing.T) {
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
4 changes: 2 additions & 2 deletions bin/helm/update_codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/../..
CODEGEN_PKG=${CODEGEN_PKG:-$(echo `go env GOPATH`'/pkg/mod/k8s.io/[email protected]')}

go mod download # make sure the code-generator is downloaded
env GOPATH=`go env GOPATH` bash ${CODEGEN_PKG}/generate-groups.sh all github.com/weaveworks/flux/integrations/client \
github.com/weaveworks/flux/integrations/apis \
env GOPATH=`go env GOPATH` bash ${CODEGEN_PKG}/generate-groups.sh all github.com/fluxcd/flux/integrations/client \
github.com/fluxcd/flux/integrations/apis \
"flux.weave.works:v1beta1 helm.integrations.flux.weave.works:v1alpha2" \
--go-header-file "${SCRIPT_ROOT}/bin/helm/custom-boilerplate.go.txt"

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 @@ -17,11 +17,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/ssh"
"github.com/weaveworks/flux/resource"
"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/ssh"
"github.com/fluxcd/flux/resource"
)

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 @@ -5,8 +5,8 @@ import (

"github.com/pkg/errors"

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/fluxhelmrelease.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"sort"

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

// ReleaseContainerName is the name used when Flux interprets a
Expand Down
2 changes: 1 addition & 1 deletion cluster/kubernetes/resource/fluxhelmrelease_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

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

func TestParseImageOnlyFormat(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 @@ -5,9 +5,9 @@ import (

"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
Loading

0 comments on commit 338ccdc

Please sign in to comment.