Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧹 Change Go module name #450

Merged
merged 4 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/v1alpha2/agentpool_validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package v1alpha2
import (
"testing"

"github.com/hashicorp/terraform-cloud-operator/internal/pointer"
"github.com/hashicorp/hcp-terraform-operator/internal/pointer"
)

func TestValidateAgentPoolSpecAgentToken(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha2/workspace_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package v1alpha2

import (
"github.com/hashicorp/terraform-cloud-operator/internal/slice"
"github.com/hashicorp/hcp-terraform-operator/internal/slice"
)

func (w *Workspace) IsCreationCandidate() bool {
Expand Down
4 changes: 2 additions & 2 deletions controllers/agentpool_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (

"github.com/go-logr/logr"
tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
"github.com/hashicorp/terraform-cloud-operator/version"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
"github.com/hashicorp/hcp-terraform-operator/version"
)

// AgentPoolReconciler reconciles a AgentPool object
Expand Down
2 changes: 1 addition & 1 deletion controllers/agentpool_controller_autoscaling.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"

appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

// matchWildcardName checks if a given string matches a specified wildcard pattern.
Expand Down
8 changes: 4 additions & 4 deletions controllers/agentpool_controller_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"net/url"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
"github.com/hashicorp/terraform-cloud-operator/internal/pointer"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
"github.com/hashicorp/hcp-terraform-operator/internal/pointer"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
Expand Down Expand Up @@ -74,7 +74,7 @@ func (r *AgentPoolReconciler) createDeployment(ctx context.Context, ap *agentPoo
d.Spec.Replicas = a.MinReplicas
}
ap.log.Info("Reconcile Agent Deployment", "msg", fmt.Sprintf("creating a new Kubernetes Deployment %q", d.Name))
err = r.Client.Create(ctx, d, &client.CreateOptions{FieldManager: "terraform-cloud-operator"})
err = r.Client.Create(ctx, d, &client.CreateOptions{FieldManager: "hcp-terraform-operator"})
if err != nil {
return err
}
Expand All @@ -94,7 +94,7 @@ func (r *AgentPoolReconciler) updateDeployment(ctx context.Context, ap *agentPoo
if a := ap.instance.Status.AgentDeploymentAutoscalingStatus; a != nil {
nd.Spec.Replicas = a.DesiredReplicas
}
uerr := r.Client.Update(ctx, nd, &client.UpdateOptions{FieldManager: "terraform-cloud-operator"})
uerr := r.Client.Update(ctx, nd, &client.UpdateOptions{FieldManager: "hcp-terraform-operator"})
if uerr != nil {
ap.log.Error(uerr, "Reconcile Agent Deployment", "msg", "Failed to update agent deployment")
r.Recorder.Event(&ap.instance, corev1.EventTypeWarning, "Deployment update failed", uerr.Error())
Expand Down
4 changes: 2 additions & 2 deletions controllers/agentpool_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"k8s.io/apimachinery/pkg/types"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
"github.com/hashicorp/terraform-cloud-operator/internal/pointer"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
"github.com/hashicorp/hcp-terraform-operator/internal/pointer"
)

var _ = Describe("Agent Pool controller", Ordered, func() {
Expand Down
4 changes: 2 additions & 2 deletions controllers/agentpool_controller_tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"fmt"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
"github.com/hashicorp/terraform-cloud-operator/internal/pointer"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
"github.com/hashicorp/hcp-terraform-operator/internal/pointer"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
4 changes: 2 additions & 2 deletions controllers/module_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"github.com/go-logr/logr"
"github.com/hashicorp/go-slug"
tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
"github.com/hashicorp/terraform-cloud-operator/version"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
"github.com/hashicorp/hcp-terraform-operator/version"
)

// ModuleReconciler reconciles a Module object
Expand Down
2 changes: 1 addition & 1 deletion controllers/module_controller_outputs.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"k8s.io/apimachinery/pkg/types"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
)

Expand Down
4 changes: 2 additions & 2 deletions controllers/module_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
"github.com/hashicorp/terraform-cloud-operator/internal/pointer"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
"github.com/hashicorp/hcp-terraform-operator/internal/pointer"
)

var _ = Describe("Module controller", Ordered, func() {
Expand Down
4 changes: 2 additions & 2 deletions controllers/project_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/predicate"

appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
"github.com/hashicorp/terraform-cloud-operator/version"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
"github.com/hashicorp/hcp-terraform-operator/version"
)

// ProjectReconciler reconciles a Project object
Expand Down
2 changes: 1 addition & 1 deletion controllers/project_controller_team_access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Project controller", Ordered, func() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/project_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Project controller", Ordered, func() {
Expand Down
4 changes: 2 additions & 2 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
"github.com/hashicorp/terraform-cloud-operator/version"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
"github.com/hashicorp/hcp-terraform-operator/version"
//+kubebuilder:scaffold:imports
)

Expand Down
4 changes: 2 additions & 2 deletions controllers/workspace_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/predicate"

appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
"github.com/hashicorp/terraform-cloud-operator/version"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
"github.com/hashicorp/hcp-terraform-operator/version"
)

type HCPTerraformClient struct {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_agents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"k8s.io/apimachinery/pkg/types"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Workspace controller", Ordered, func() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/google/go-cmp/cmp/cmpopts"
tfc "github.com/hashicorp/go-tfe"

"github.com/hashicorp/terraform-cloud-operator/internal/slice"
"github.com/hashicorp/hcp-terraform-operator/internal/slice"
)

func hasNotificationItem(s []tfc.NotificationConfiguration, f tfc.NotificationConfiguration) (int, bool) {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_notifications_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"k8s.io/apimachinery/pkg/types"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Workspace controller", Label("Notifications"), Ordered, func() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_outputs.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_outputs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"k8s.io/apimachinery/pkg/types"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Workspace controller", Ordered, func() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_projects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"k8s.io/apimachinery/pkg/types"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Workspace controller", Ordered, func() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_remote_state_sharing.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"errors"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
corev1 "k8s.io/api/core/v1"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"k8s.io/apimachinery/pkg/types"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Workspace controller", Ordered, func() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_run_tasks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"

appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Workspace controller", Ordered, func() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_run_triggers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"k8s.io/apimachinery/pkg/types"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Workspace controller", Ordered, func() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_runs.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

func (r *WorkspaceReconciler) reconcileRuns(ctx context.Context, w *workspaceInstance, workspace *tfc.Workspace) error {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_runs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"time"

appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
corev1 "k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_sshkey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"k8s.io/apimachinery/pkg/types"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Workspace controller", Ordered, func() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"context"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

// HELPERS
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_team_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
corev1 "k8s.io/api/core/v1"
)

Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_team_access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"k8s.io/apimachinery/pkg/types"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Workspace controller", Ordered, func() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"k8s.io/apimachinery/pkg/types"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Workspace controller", Ordered, func() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/types"

appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

// variableValueID calculates a hash of a variable.
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_variables_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"k8s.io/apimachinery/pkg/types"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Workspace controller", Ordered, func() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_vcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"k8s.io/apimachinery/pkg/types"

tfc "github.com/hashicorp/go-tfe"
appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
)

var _ = Describe("Workspace controller", Ordered, func() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/hashicorp/terraform-cloud-operator
module github.com/hashicorp/hcp-terraform-operator

go 1.22

Expand Down
10 changes: 6 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ import (

"github.com/go-logr/zapr"

appv1alpha2 "github.com/hashicorp/terraform-cloud-operator/api/v1alpha2"
"github.com/hashicorp/terraform-cloud-operator/controllers"
"github.com/hashicorp/terraform-cloud-operator/version"
appv1alpha2 "github.com/hashicorp/hcp-terraform-operator/api/v1alpha2"
"github.com/hashicorp/hcp-terraform-operator/controllers"
"github.com/hashicorp/hcp-terraform-operator/version"
//+kubebuilder:scaffold:imports
)

Expand Down Expand Up @@ -138,7 +138,9 @@ func main() {
HealthProbeBindAddress: ":8081",
LeaderElection: true,
LeaderElectionReleaseOnCancel: true,
LeaderElectionID: "hashicorp-terraform-cloud-operator",
// TODO:
// - Make `LeaderElectionID` configurable and default to Helm release name.
LeaderElectionID: "hashicorp-hcp-terraform-operator",
}

// When the Operator not running in a Kubernetes environment,
Expand Down
Loading