Skip to content

Commit

Permalink
Rename module to github.com/kro-run/kro
Browse files Browse the repository at this point in the history
  • Loading branch information
a-hilaly committed Jan 23, 2025
1 parent a9e1049 commit bf4fc85
Show file tree
Hide file tree
Showing 51 changed files with 115 additions and 114 deletions.
10 changes: 5 additions & 5 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ import (
"sigs.k8s.io/controller-runtime/pkg/predicate"
"sigs.k8s.io/controller-runtime/pkg/reconcile"

xv1alpha1 "github.com/awslabs/kro/api/v1alpha1"
kroclient "github.com/awslabs/kro/pkg/client"
resourcegroupctrl "github.com/awslabs/kro/pkg/controller/resourcegroup"
"github.com/awslabs/kro/pkg/dynamiccontroller"
"github.com/awslabs/kro/pkg/graph"
xv1alpha1 "github.com/kro-run/kro/api/v1alpha1"
kroclient "github.com/kro-run/kro/pkg/client"
resourcegroupctrl "github.com/kro-run/kro/pkg/controller/resourcegroup"
"github.com/kro-run/kro/pkg/dynamiccontroller"
"github.com/kro-run/kro/pkg/graph"
//+kubebuilder:scaffold:imports
)

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/awslabs/kro
module github.com/kro-run/kro

go 1.22.0

Expand Down
2 changes: 1 addition & 1 deletion pkg/cel/ast/inspector.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/google/cel-go/cel"
exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1"

krocel "github.com/awslabs/kro/pkg/cel"
krocel "github.com/kro-run/kro/pkg/cel"
)

// ResourceDependency represents a resource and its accessed path within a CEL expression.
Expand Down
8 changes: 4 additions & 4 deletions pkg/controller/instance/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import (
"k8s.io/client-go/dynamic"
ctrl "sigs.k8s.io/controller-runtime"

"github.com/awslabs/kro/api/v1alpha1"
kroclient "github.com/awslabs/kro/pkg/client"
"github.com/awslabs/kro/pkg/graph"
"github.com/awslabs/kro/pkg/metadata"
"github.com/kro-run/kro/api/v1alpha1"
kroclient "github.com/kro-run/kro/pkg/client"
"github.com/kro-run/kro/pkg/graph"
"github.com/kro-run/kro/pkg/metadata"
)

// ReconcileConfig holds configuration parameters for the recnociliation process.
Expand Down
8 changes: 4 additions & 4 deletions pkg/controller/instance/controller_reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import (
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/dynamic"

"github.com/awslabs/kro/pkg/controller/instance/delta"
"github.com/awslabs/kro/pkg/metadata"
"github.com/awslabs/kro/pkg/requeue"
"github.com/awslabs/kro/pkg/runtime"
"github.com/kro-run/kro/pkg/controller/instance/delta"
"github.com/kro-run/kro/pkg/metadata"
"github.com/kro-run/kro/pkg/requeue"
"github.com/kro-run/kro/pkg/runtime"
)

// instanceGraphReconciler is responsible for reconciling a single instance and
Expand Down
4 changes: 2 additions & 2 deletions pkg/controller/instance/controller_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/awslabs/kro/api/v1alpha1"
"github.com/awslabs/kro/pkg/requeue"
"github.com/kro-run/kro/api/v1alpha1"
"github.com/kro-run/kro/pkg/requeue"
)

func createCondition(conditionType v1alpha1.ConditionType, status corev1.ConditionStatus, reason, message string, generation int64) map[string]interface{} {
Expand Down
10 changes: 5 additions & 5 deletions pkg/controller/resourcegroup/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import (
"sigs.k8s.io/controller-runtime/pkg/predicate"
"sigs.k8s.io/controller-runtime/pkg/reconcile"

"github.com/awslabs/kro/api/v1alpha1"
kroclient "github.com/awslabs/kro/pkg/client"
"github.com/awslabs/kro/pkg/dynamiccontroller"
"github.com/awslabs/kro/pkg/graph"
"github.com/awslabs/kro/pkg/metadata"
"github.com/kro-run/kro/api/v1alpha1"
kroclient "github.com/kro-run/kro/pkg/client"
"github.com/kro-run/kro/pkg/dynamiccontroller"
"github.com/kro-run/kro/pkg/graph"
"github.com/kro-run/kro/pkg/metadata"
)

//+kubebuilder:rbac:groups=kro.run,resources=resourcegroups,verbs=get;list;watch;create;update;patch;delete
Expand Down
4 changes: 2 additions & 2 deletions pkg/controller/resourcegroup/controller_cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"github.com/gobuffalo/flect"
"k8s.io/apimachinery/pkg/runtime/schema"

"github.com/awslabs/kro/api/v1alpha1"
"github.com/awslabs/kro/pkg/metadata"
"github.com/kro-run/kro/api/v1alpha1"
"github.com/kro-run/kro/pkg/metadata"
)

// cleanupResourceGroup handles the deletion of a ResourceGroup by shutting down its associated
Expand Down
10 changes: 5 additions & 5 deletions pkg/controller/resourcegroup/controller_reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
"k8s.io/apimachinery/pkg/runtime/schema"

"github.com/awslabs/kro/api/v1alpha1"
instancectrl "github.com/awslabs/kro/pkg/controller/instance"
"github.com/awslabs/kro/pkg/dynamiccontroller"
"github.com/awslabs/kro/pkg/graph"
"github.com/awslabs/kro/pkg/metadata"
"github.com/kro-run/kro/api/v1alpha1"
instancectrl "github.com/kro-run/kro/pkg/controller/instance"
"github.com/kro-run/kro/pkg/dynamiccontroller"
"github.com/kro-run/kro/pkg/graph"
"github.com/kro-run/kro/pkg/metadata"
)

// reconcileResourceGroup orchestrates the reconciliation of a ResourceGroup by:
Expand Down
4 changes: 2 additions & 2 deletions pkg/controller/resourcegroup/controller_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"k8s.io/client-go/util/retry"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/awslabs/kro/api/v1alpha1"
"github.com/awslabs/kro/pkg/metadata"
"github.com/go-logr/logr"
"github.com/kro-run/kro/api/v1alpha1"
"github.com/kro-run/kro/pkg/metadata"
)

// StatusProcessor handles the processing of ResourceGroup status updates
Expand Down
4 changes: 2 additions & 2 deletions pkg/dynamiccontroller/dynamic_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ import (
"k8s.io/client-go/util/workqueue"
ctrl "sigs.k8s.io/controller-runtime"

"github.com/awslabs/kro/pkg/metadata"
"github.com/awslabs/kro/pkg/requeue"
"github.com/kro-run/kro/pkg/metadata"
"github.com/kro-run/kro/pkg/requeue"
)

// Config holds the configuration for DynamicController
Expand Down
22 changes: 11 additions & 11 deletions pkg/graph/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ import (
"k8s.io/client-go/discovery"
"k8s.io/client-go/rest"

"github.com/awslabs/kro/api/v1alpha1"
krocel "github.com/awslabs/kro/pkg/cel"
"github.com/awslabs/kro/pkg/cel/ast"
"github.com/awslabs/kro/pkg/graph/crd"
"github.com/awslabs/kro/pkg/graph/dag"
"github.com/awslabs/kro/pkg/graph/emulator"
"github.com/awslabs/kro/pkg/graph/parser"
"github.com/awslabs/kro/pkg/graph/schema"
"github.com/awslabs/kro/pkg/graph/variable"
"github.com/awslabs/kro/pkg/metadata"
"github.com/awslabs/kro/pkg/simpleschema"
"github.com/kro-run/kro/api/v1alpha1"
krocel "github.com/kro-run/kro/pkg/cel"
"github.com/kro-run/kro/pkg/cel/ast"
"github.com/kro-run/kro/pkg/graph/crd"
"github.com/kro-run/kro/pkg/graph/dag"
"github.com/kro-run/kro/pkg/graph/emulator"
"github.com/kro-run/kro/pkg/graph/parser"
"github.com/kro-run/kro/pkg/graph/schema"
"github.com/kro-run/kro/pkg/graph/variable"
"github.com/kro-run/kro/pkg/metadata"
"github.com/kro-run/kro/pkg/simpleschema"
)

// NewBuilder creates a new GraphBuilder instance.
Expand Down
8 changes: 4 additions & 4 deletions pkg/graph/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"github.com/stretchr/testify/require"
"k8s.io/client-go/rest"

"github.com/awslabs/kro/pkg/graph/emulator"
"github.com/awslabs/kro/pkg/graph/variable"
"github.com/awslabs/kro/pkg/testutil/generator"
"github.com/awslabs/kro/pkg/testutil/k8s"
"github.com/kro-run/kro/pkg/graph/emulator"
"github.com/kro-run/kro/pkg/graph/variable"
"github.com/kro-run/kro/pkg/testutil/generator"
"github.com/kro-run/kro/pkg/testutil/k8s"
)

func TestGraphBuilder_Validation(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/graph/crd/crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ import (
"fmt"
"strings"

"github.com/awslabs/kro/api/v1alpha1"
"github.com/gobuffalo/flect"
extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/kro-run/kro/api/v1alpha1"
)

// SynthesizeCRD generates a CustomResourceDefinition for a given API version and kind
Expand Down
4 changes: 2 additions & 2 deletions pkg/graph/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ package graph
import (
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

"github.com/awslabs/kro/pkg/graph/dag"
"github.com/awslabs/kro/pkg/runtime"
"github.com/kro-run/kro/pkg/graph/dag"
"github.com/kro-run/kro/pkg/runtime"
)

// Graph represents a processed resourcegroup. It contains the DAG representation
Expand Down
2 changes: 1 addition & 1 deletion pkg/graph/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"k8s.io/kube-openapi/pkg/validation/spec"

"github.com/awslabs/kro/pkg/graph/variable"
"github.com/kro-run/kro/pkg/graph/variable"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/graph/parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"k8s.io/kube-openapi/pkg/validation/spec"

"github.com/awslabs/kro/pkg/graph/variable"
"github.com/kro-run/kro/pkg/graph/variable"
)

func TestParseResource(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/graph/parser/schemaless.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"fmt"
"strings"

"github.com/awslabs/kro/pkg/graph/variable"
"github.com/kro-run/kro/pkg/graph/variable"
)

// ParseSchemalessResource extracts CEL expressions without a schema, this is useful
Expand Down
2 changes: 1 addition & 1 deletion pkg/graph/parser/schemaless_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"sort"
"testing"

"github.com/awslabs/kro/pkg/graph/variable"
"github.com/kro-run/kro/pkg/graph/variable"
)

func areEqualExpressionFields(a, b []variable.FieldDescriptor) bool {
Expand Down
4 changes: 2 additions & 2 deletions pkg/graph/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/kube-openapi/pkg/validation/spec"

rgschema "github.com/awslabs/kro/pkg/graph/schema"
"github.com/awslabs/kro/pkg/graph/variable"
rgschema "github.com/kro-run/kro/pkg/graph/schema"
"github.com/kro-run/kro/pkg/graph/variable"
)

// Resource represents a resource in a resource group, it hholds
Expand Down
2 changes: 1 addition & 1 deletion pkg/graph/schema/conversion_cel.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/google/cel-go/common/types/ref"
extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"

krocel "github.com/awslabs/kro/pkg/cel"
krocel "github.com/kro-run/kro/pkg/cel"
)

// inferSchemaFromCELValue infers a JSONSchemaProps from a CEL value.
Expand Down
2 changes: 1 addition & 1 deletion pkg/graph/schema/field_descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/google/cel-go/common/types/ref"
extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"

"github.com/awslabs/kro/pkg/graph/fieldpath"
"github.com/kro-run/kro/pkg/graph/fieldpath"
)

// fieldDescriptor represents a field in an OpenAPI schema. Typically this field
Expand Down
2 changes: 1 addition & 1 deletion pkg/graph/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"k8s.io/apimachinery/pkg/runtime/schema"

"github.com/awslabs/kro/api/v1alpha1"
"github.com/kro-run/kro/api/v1alpha1"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/graph/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package graph
import (
"testing"

"github.com/awslabs/kro/api/v1alpha1"
"github.com/kro-run/kro/api/v1alpha1"
)

func TestValidateRGResourceNames(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/metadata/finalizers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/types"

"github.com/awslabs/kro/api/v1alpha1"
"github.com/kro-run/kro/api/v1alpha1"
)

const kroFinalizer = v1alpha1.KroDomainName + "/finalizer"
Expand Down
2 changes: 1 addition & 1 deletion pkg/metadata/groupversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/gobuffalo/flect"
"k8s.io/apimachinery/pkg/runtime/schema"

"github.com/awslabs/kro/api/v1alpha1"
"github.com/kro-run/kro/api/v1alpha1"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/metadata/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"errors"
"fmt"

"github.com/awslabs/kro/api/v1alpha1"
"github.com/kro-run/kro/api/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

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

"github.com/awslabs/kro/api/v1alpha1"
"github.com/kro-run/kro/api/v1alpha1"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/runtime/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema"

"github.com/awslabs/kro/pkg/graph/variable"
"github.com/kro-run/kro/pkg/graph/variable"
)

// Interface defines the main runtime interface for managing and synchronizing
Expand Down
4 changes: 2 additions & 2 deletions pkg/runtime/resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"fmt"
"strings"

"github.com/awslabs/kro/pkg/graph/fieldpath"
"github.com/awslabs/kro/pkg/graph/variable"
"github.com/kro-run/kro/pkg/graph/fieldpath"
"github.com/kro-run/kro/pkg/graph/variable"
)

// ResolutionResult represents the result of resolving a single expression.
Expand Down
2 changes: 1 addition & 1 deletion pkg/runtime/resolver/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/awslabs/kro/pkg/graph/variable"
"github.com/kro-run/kro/pkg/graph/variable"
)

func TestGetValueFromPath(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions pkg/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"golang.org/x/exp/maps"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

krocel "github.com/awslabs/kro/pkg/cel"
"github.com/awslabs/kro/pkg/graph/variable"
"github.com/awslabs/kro/pkg/runtime/resolver"
krocel "github.com/kro-run/kro/pkg/cel"
"github.com/kro-run/kro/pkg/graph/variable"
"github.com/kro-run/kro/pkg/runtime/resolver"
)

// Compile time proof to ensure that ResourceGroupRuntime implements the
Expand Down
4 changes: 2 additions & 2 deletions pkg/runtime/runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema"

krocel "github.com/awslabs/kro/pkg/cel"
"github.com/awslabs/kro/pkg/graph/variable"
krocel "github.com/kro-run/kro/pkg/cel"
"github.com/kro-run/kro/pkg/graph/variable"
)

func Test_RuntimeWorkflow(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/runtime/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package runtime

import "github.com/awslabs/kro/pkg/graph/variable"
import "github.com/kro-run/kro/pkg/graph/variable"

// ResourceState represents the current state of a resource in the runtime.
// It indicates the resource's readiness for processing or what it's waiting on.
Expand Down
2 changes: 1 addition & 1 deletion pkg/testutil/generator/resourcegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"

krov1alpha1 "github.com/awslabs/kro/api/v1alpha1"
krov1alpha1 "github.com/kro-run/kro/api/v1alpha1"
)

// ResourceGroupOption is a functional option for ResourceGroup
Expand Down
Loading

0 comments on commit bf4fc85

Please sign in to comment.