Skip to content

Commit

Permalink
rename github.com/weaveworks/tf-controller to github.com/flux-iac/tof…
Browse files Browse the repository at this point in the history
…u-controller
  • Loading branch information
akselleirv committed Feb 27, 2024
1 parent 24518c8 commit d3ff233
Show file tree
Hide file tree
Showing 156 changed files with 262 additions and 253 deletions.
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Running the above will also deploy `source-controller` and its CRDs to the clust

For realtime communications we use Slack: To join the conversation, simply join the [Weave Users](https://weave-community.slack.com/) Slack workspace and use the [#tf-controller](https://weave-community.slack.com/messages/tf-controller/) channel.

To discuss ideas and specifications we use [Github Discussions](https://github.com/weaveworks/tf-controller/discussions).
To discuss ideas and specifications we use [Github Discussions](https://github.com/flux-iac/tofu-controller/discussions).

## Acceptance policy

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} \

FROM alpine:3.18

LABEL org.opencontainers.image.source="https://github.com/weaveworks/tf-controller"
LABEL org.opencontainers.image.source="https://github.com/flux-iac/tofu-controller"

ARG LIBCRYPTO_VERSION

Expand Down
6 changes: 3 additions & 3 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ domain: contrib.fluxcd.io
layout:
- go.kubebuilder.io/v3
projectName: test-terraform-controller
repo: github.com/weaveworks/tf-controller
repo: github.com/flux-iac/tofu-controller
resources:
- api:
crdVersion: v1
Expand All @@ -11,7 +11,7 @@ resources:
domain: contrib.fluxcd.io
group: infra
kind: Terraform
path: github.com/weaveworks/tf-controller/api/v1alpha1
path: github.com/flux-iac/tofu-controller/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
Expand All @@ -20,6 +20,6 @@ resources:
domain: contrib.fluxcd.io
group: infra
kind: Terraform
path: github.com/weaveworks/tf-controller/api/v1alpha2
path: github.com/flux-iac/tofu-controller/api/v1alpha2
version: v1alpha2
version: "3"
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Our Security Team consists of project maintainers and Weaveworks employees.

### Disclosures

Vulnerability disclosures are announced publicly through our [security advisories](https://github.com/weaveworks/tf-controller/security/advisories).
Vulnerability disclosures are announced publicly through our [security advisories](https://github.com/flux-iac/tofu-controller/security/advisories).
Disclosures will contain an overview, details about the vulnerability, a fix that will typically be an update, and optionally a workaround if one is available.

We will coordinate publishing disclosures and security releases in a way that is realistic and necessary for end users.
Expand Down
2 changes: 1 addition & 1 deletion api/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/weaveworks/tf-controller/api
module github.com/flux-iac/tofu-controller/api

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha2/terraform_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"time"
"unicode/utf8"

"github.com/flux-iac/tofu-controller/api/planid"
"github.com/fluxcd/pkg/apis/meta"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
"github.com/weaveworks/tf-controller/api/planid"
corev1 "k8s.io/api/core/v1"
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
apimeta "k8s.io/apimachinery/pkg/api/meta"
Expand Down
2 changes: 1 addition & 1 deletion cmd/branch-planner/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/fluxcd/pkg/runtime/logger"
flag "github.com/spf13/pflag"

"github.com/weaveworks/tf-controller/internal/server/polling"
"github.com/flux-iac/tofu-controller/internal/server/polling"
)

type applicationOptions struct {
Expand Down
8 changes: 4 additions & 4 deletions cmd/branch-planner/informer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"fmt"
"time"

tfv1alpha2 "github.com/flux-iac/tofu-controller/api/v1alpha2"
"github.com/flux-iac/tofu-controller/internal/config"
"github.com/flux-iac/tofu-controller/internal/git/provider"
planner "github.com/flux-iac/tofu-controller/internal/informer/branch-planner"
"github.com/go-logr/logr"
tfv1alpha2 "github.com/weaveworks/tf-controller/api/v1alpha2"
"github.com/weaveworks/tf-controller/internal/config"
"github.com/weaveworks/tf-controller/internal/git/provider"
planner "github.com/weaveworks/tf-controller/internal/informer/branch-planner"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/dynamic"
Expand Down
2 changes: 1 addition & 1 deletion cmd/branch-planner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"os"
"os/signal"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
"github.com/fluxcd/pkg/runtime/logger"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
sourcev1b2 "github.com/fluxcd/source-controller/api/v1beta2"
"github.com/go-logr/logr"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/client-go/kubernetes/scheme"
cgoscheme "k8s.io/client-go/kubernetes/scheme"
Expand Down
2 changes: 1 addition & 1 deletion cmd/branch-planner/polling.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"fmt"

"github.com/flux-iac/tofu-controller/internal/server/polling"
"github.com/go-logr/logr"
"github.com/weaveworks/tf-controller/internal/server/polling"
"sigs.k8s.io/controller-runtime/pkg/client"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ import (
"os"
"time"

"github.com/weaveworks/tf-controller/mtls"
"github.com/weaveworks/tf-controller/runner"
"github.com/flux-iac/tofu-controller/mtls"
"github.com/flux-iac/tofu-controller/runner"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
"github.com/flux-iac/tofu-controller/controllers"
"github.com/fluxcd/pkg/runtime/acl"
"github.com/fluxcd/pkg/runtime/client"
runtimeCtrl "github.com/fluxcd/pkg/runtime/controller"
Expand All @@ -34,8 +36,6 @@ import (
sourcev1 "github.com/fluxcd/source-controller/api/v1"
sourcev1b2 "github.com/fluxcd/source-controller/api/v1beta2"
flag "github.com/spf13/pflag"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
"github.com/weaveworks/tf-controller/controllers"
"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
Expand Down
2 changes: 1 addition & 1 deletion cmd/runner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"os/signal"
"syscall"

"github.com/flux-iac/tofu-controller/mtls"
"github.com/fluxcd/pkg/runtime/logger"
flag "github.com/spf13/pflag"
"github.com/weaveworks/tf-controller/mtls"
ctrl "sigs.k8s.io/controller-runtime"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/tfctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os"
"strings"

"github.com/flux-iac/tofu-controller/tfctl"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/weaveworks/tf-controller/tfctl"
"k8s.io/cli-runtime/pkg/genericclioptions"
)

Expand Down
4 changes: 2 additions & 2 deletions controllers/cleaner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"fmt"

"github.com/onsi/gomega"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
"github.cgithub.com/flux-iac/tofu-controller

Check failure on line 8 in controllers/cleaner_test.go

View workflow job for this annotation

GitHub Actions / Internal Tests

string literal not terminated

Check failure on line 8 in controllers/cleaner_test.go

View workflow job for this annotation

GitHub Actions / verify

string literal not terminated

Check failure on line 8 in controllers/cleaner_test.go

View workflow job for this annotation

GitHub Actions / Controller Tests: Non-numbered

string literal not terminated

Check failure on line 8 in controllers/cleaner_test.go

View workflow job for this annotation

GitHub Actions / Controller Tests: 10->29 / targeted-test

string literal not terminated

Check failure on line 8 in controllers/cleaner_test.go

View workflow job for this annotation

GitHub Actions / Controller Tests: 1xx / targeted-test

string literal not terminated

Check failure on line 8 in controllers/cleaner_test.go

View workflow job for this annotation

GitHub Actions / Controller Tests: 30->59 / targeted-test

string literal not terminated

Check failure on line 8 in controllers/cleaner_test.go

View workflow job for this annotation

GitHub Actions / Controller Tests: 60->99 / targeted-test

string literal not terminated

Check failure on line 8 in controllers/cleaner_test.go

View workflow job for this annotation

GitHub Actions / Controller Tests: 2xx / targeted-test

string literal not terminated

Check failure on line 8 in controllers/cleaner_test.go

View workflow job for this annotation

GitHub Actions / Controller Tests: 3xx / targeted-test

string literal not terminated

Check failure on line 8 in controllers/cleaner_test.go

View workflow job for this annotation

GitHub Actions / Controller Tests: 99xx / targeted-test

string literal not terminated
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
5 changes: 3 additions & 2 deletions controllers/get_runner_pod_object_key_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package controllers

import (
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
"testing"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
"testing"

. "github.com/onsi/gomega"
)
Expand Down
5 changes: 3 additions & 2 deletions controllers/object_encode_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package controllers

import (
"testing"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
. "github.com/onsi/gomega"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"testing"
)

func TestObjectEncode(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"testing"
"time"

"github.com/weaveworks/tf-controller/mtls"
"github.com/weaveworks/tf-controller/runner"
"github.com/flux-iac/tofu-controller/mtls"
"github.com/flux-iac/tofu-controller/runner"
"k8s.io/apimachinery/pkg/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"

Expand All @@ -39,9 +39,9 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/cli-utils/pkg/kstatus/polling"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
sourcev1b2 "github.com/fluxcd/source-controller/api/v1beta2"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
"k8s.io/client-go/rest"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000010_no_outputs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

. "github.com/onsi/gomega"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000011_bad_tar_gz_no_outputs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

. "github.com/onsi/gomega"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
)
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000011_workspace_no_outputs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

. "github.com/onsi/gomega"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000012_src_bucket_no_outputs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"testing"
"time"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
. "github.com/onsi/gomega"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"

sourcev1 "github.com/fluxcd/source-controller/api/v1"
sourcev1b2 "github.com/fluxcd/source-controller/api/v1beta2"
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000013_source_not_found_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

. "github.com/onsi/gomega"

infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
)
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000014_artifact_not_found_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (

. "github.com/onsi/gomega"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gstruct"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000015_depends_on_cross_ns_denied_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gstruct"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
fluxmeta "github.com/fluxcd/pkg/apis/meta"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000015_source_cross_ns_denied_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gstruct"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000016_default_observed_generation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

. "github.com/onsi/gomega"

infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/rand"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000016_finilize_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
sourcev1 "github.com/fluxcd/source-controller/api/v1"
. "github.com/onsi/gomega"

infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/rand"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000020_with_backend_no_outputs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"testing"
"time"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
. "github.com/onsi/gomega"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000020_with_workspace_no_outputs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"testing"
"time"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
. "github.com/onsi/gomega"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000030_plan_only_no_outputs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

. "github.com/onsi/gomega"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

. "github.com/onsi/gomega"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
)
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000040_controlled_outputs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

. "github.com/onsi/gomega"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
)
Expand Down
2 changes: 1 addition & 1 deletion controllers/tc000041_all_outputs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

. "github.com/onsi/gomega"

infrav1 "github.com/flux-iac/tofu-controller/api/v1alpha2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
infrav1 "github.com/weaveworks/tf-controller/api/v1alpha2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
)
Expand Down
Loading

0 comments on commit d3ff233

Please sign in to comment.