Skip to content
Open
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
6 changes: 3 additions & 3 deletions ATTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

[//]: # (File generated by attribution-gen. DO NOT EDIT.)

The github.com/kro-run/kro source code is licensed under the
The github.com/kubernetes-sigs/kro source code is licensed under the
Apache-2.0 license. A copy of this license is available in the
[LICENSE](LICENSE) file in the root source code directory and is included,
along with this document, in any images containing github.com/kro-run/kro
along with this document, in any images containing github.com/kubernetes-sigs/kro
binaries.

## Package dependencies

The module github.com/kro-run/kro depends on a number of Open Source Go packages. Direct
The module github.com/kubernetes-sigs/kro depends on a number of Open Source Go packages. Direct
dependencies are listed in the ./go.mod file.
Those direct package dependencies have some dependencies of their own (known as
"transitive dependencies")
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,14 @@ $(ENVTEST): $(LOCALBIN)
build-image: ko ## Build the kro controller images using ko build
echo "Building kro image $(RELEASE_VERSION).."
$(WITH_GOFLAGS) KOCACHE=$(KOCACHE) KO_DOCKER_REPO=$(KO_DOCKER_REPO) \
$(KO) build --bare github.com/kro-run/kro/cmd/controller \
$(KO) build --bare github.com/kubernetes-sigs/kro/cmd/controller \
--local\
--push=false --tags ${RELEASE_VERSION} --sbom=none

.PHONY: publish
publish-image: ko ## Publish the kro controller images to ghcr.io
$(WITH_GOFLAGS) KOCACHE=$(KOCACHE) KO_DOCKER_REPO=$(KO_DOCKER_REPO) \
$(KO) publish --bare github.com/kro-run/kro/cmd/controller \
$(KO) publish --bare github.com/kubernetes-sigs/kro/cmd/controller \
--tags ${RELEASE_VERSION} --sbom=none

.PHONY: package-helm
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# kro | Kube Resource Orchestrator


[![Go Report Card](https://goreportcard.com/badge/github.com/kro-run/kro)](https://goreportcard.com/report/github.com/kro-run/kro)
[![unit tests](https://github.com/kro-run/kro/actions/workflows/unit-tests.yaml/badge.svg)](https://github.com/kro-run/kro/actions/workflows/unit-tests.yaml)
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/kro-run/Kro)
![GitHub License](https://img.shields.io/github/license/kro-run/kro)
[![Build and Publish](https://github.com/kro-run/kro/actions/workflows/build-push-image.yaml/badge.svg?branch=main)](https://github.com/kro-run/kro/actions/workflows/build-push-image.yaml)
![GitHub Repo stars](https://img.shields.io/github/stars/kro-run/kro)
[![Go Report Card](https://goreportcard.com/badge/github.com/kubernetes-sigs/kro)](https://goreportcard.com/report/github.com/kubernetes-sigs/kro)
[![unit tests](https://github.com/kubernetes-sigs/kro/actions/workflows/unit-tests.yaml/badge.svg)](https://github.com/kubernetes-sigs/kro/actions/workflows/unit-tests.yaml)
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/kubernetes-sigs/kro)
![GitHub License](https://img.shields.io/github/license/kubernetes-sigs/kro)
[![Build and Publish](https://github.com/kubernetes-sigs/kro/actions/workflows/build-push-image.yaml/badge.svg?branch=main)](https://github.com/kubernetes-sigs/kro/actions/workflows/build-push-image.yaml)
![GitHub Repo stars](https://img.shields.io/github/stars/kubernetes-sigs/kro)

This project aims to simplify the creation and management of complex custom resources for Kubernetes.

Expand Down
10 changes: 5 additions & 5 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ import (
"sigs.k8s.io/controller-runtime/pkg/log/zap"
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"

xv1alpha1 "github.com/kro-run/kro/api/v1alpha1"
kroclient "github.com/kro-run/kro/pkg/client"
resourcegraphdefinitionctrl "github.com/kro-run/kro/pkg/controller/resourcegraphdefinition"
"github.com/kro-run/kro/pkg/dynamiccontroller"
"github.com/kro-run/kro/pkg/graph"
xv1alpha1 "github.com/kubernetes-sigs/kro/api/v1alpha1"
kroclient "github.com/kubernetes-sigs/kro/pkg/client"
resourcegraphdefinitionctrl "github.com/kubernetes-sigs/kro/pkg/controller/resourcegraphdefinition"
"github.com/kubernetes-sigs/kro/pkg/dynamiccontroller"
"github.com/kubernetes-sigs/kro/pkg/graph"
//+kubebuilder:scaffold:imports
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/kro/commands/generate/crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"os"

"github.com/kro-run/kro/api/v1alpha1"
"github.com/kubernetes-sigs/kro/api/v1alpha1"
"github.com/spf13/cobra"
"sigs.k8s.io/yaml"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/kro/commands/generate/diagram.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/spf13/cobra"
"sigs.k8s.io/yaml"

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

var generateDiagramCmd = &cobra.Command{
Expand Down
6 changes: 3 additions & 3 deletions cmd/kro/commands/generate/generate_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
"encoding/json"
"fmt"

kroclient "github.com/kro-run/kro/pkg/client"
kroclient "github.com/kubernetes-sigs/kro/pkg/client"

"github.com/kro-run/kro/api/v1alpha1"
"github.com/kro-run/kro/pkg/graph"
"github.com/kubernetes-sigs/kro/api/v1alpha1"
"github.com/kubernetes-sigs/kro/pkg/graph"
"gopkg.in/yaml.v2"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/kro/commands/generate/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"os"

"github.com/kro-run/kro/api/v1alpha1"
"github.com/kubernetes-sigs/kro/api/v1alpha1"
"github.com/spf13/cobra"
"sigs.k8s.io/yaml"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/kro/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package commands
import (
"github.com/spf13/cobra"

generate "github.com/kro-run/kro/cmd/kro/commands/generate"
validate "github.com/kro-run/kro/cmd/kro/commands/validate"
generate "github.com/kubernetes-sigs/kro/cmd/kro/commands/generate"
validate "github.com/kubernetes-sigs/kro/cmd/kro/commands/validate"
)

func AddCommands(root *cobra.Command) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/kro/commands/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"fmt"
"os"

"github.com/kro-run/kro/api/v1alpha1"
kroclient "github.com/kro-run/kro/pkg/client"
"github.com/kro-run/kro/pkg/graph"
"github.com/kubernetes-sigs/kro/api/v1alpha1"
kroclient "github.com/kubernetes-sigs/kro/pkg/client"
"github.com/kubernetes-sigs/kro/pkg/graph"
"github.com/spf13/cobra"
"sigs.k8s.io/yaml"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/kro/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"os"
"path/filepath"

"github.com/kro-run/kro/cmd/kro/commands"
"github.com/kubernetes-sigs/kro/cmd/kro/commands"
"github.com/spf13/cobra"
"k8s.io/client-go/util/homedir"
)
Expand Down
4 changes: 2 additions & 2 deletions docs/design/proposals/status-conditions.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ and the understanding that they adhere to “abnormal-true” style conditions.
Today the KRO project defaults status to have the shape defined in
[meta v1 condition](https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Condition),
and defaults to a single
[]`InstanceSynced`](https://github.com/kro-run/kro/blob/b9d1822983c4dead2f6dae594041dae550f1847a/pkg/controller/instance/controller_status.go#L78)
[]`InstanceSynced`](https://github.com/kubernetes-sigs/kro/blob/b9d1822983c4dead2f6dae594041dae550f1847a/pkg/controller/instance/controller_status.go#L78)
condition, but has no concept of a top-level condition. It then exposes the
state of this condition in
[custom columns](https://github.com/kro-run/kro/blob/b9d1822983c4dead2f6dae594041dae550f1847a/pkg/graph/crd/defaults.go#L68-L73).
[custom columns](https://github.com/kubernetes-sigs/kro/blob/b9d1822983c4dead2f6dae594041dae550f1847a/pkg/graph/crd/defaults.go#L68-L73).
The user is able to create and map their own custom conditions in the provided
schema inside of an instance of an RGD.

Expand Down
2 changes: 1 addition & 1 deletion examples/apigateway/vpc-lattice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ KRO (Kubernetes Resource Orchestrator) provides a way to define, deploy and mana

```bash
export KRO_VERSION=$(curl -sL \
https://api.github.com/repos/kro-run/kro/releases/latest | \
https://api.github.com/repos/kubernetes-sigs/kro/releases/latest | \
jq -r '.tag_name | ltrimstr("v")'
)
helm install kro oci://ghcr.io/kro-run/kro/kro \
Expand Down
2 changes: 1 addition & 1 deletion examples/aws/eks-cluster-mgmt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The solution implements a hub-spoke model where a management cluster (hub) is cr

```sh
export ACCOUNT_ID=$(aws sts get-caller-identity --output text --query Account) # Or update to the AWS account to use for your management cluster
export KRO_REPO_URL="https://github.com/kro-run/kro.git"
export KRO_REPO_URL="https://github.com/kubernetes-sigs/kro.git"
export WORKING_REPO="eks-cluster-mgmt" # Try to keep this default name as it's referenced in terraform and gitops configs
export TF_VAR_FILE="terraform.tfvars" # the name of terraform configuration file to use
```
Expand Down
2 changes: 1 addition & 1 deletion examples/gcp/gemma-on-tpu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Install KRO following [instructions here](https://kro.run/docs/getting-started/I

```bash
export KRO_VERSION=$(curl -sL \
https://api.github.com/repos/kro-run/kro/releases/latest | \
https://api.github.com/repos/kubernetes-sigs/kro/releases/latest | \
jq -r '.tag_name | ltrimstr("v")'
)
echo $KRO_VERSION
Expand Down
2 changes: 1 addition & 1 deletion examples/gcp/gemma-on-tpu/rgd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ spec:
- member: serviceAccount:${project.spec.resourceID}.svc.id.goog[${schema.metadata.namespace}/default]
- id: annotateDefaultServiceAccount
# TODO KRO/BUG: Missing support for dont-delete lifecycle
# https://github.com/kro-run/kro/issues/542
# https://github.com/kubernetes-sigs/kro/issues/542
template:
apiVersion: v1
kind: ServiceAccount
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/kro-run/kro
module github.com/kubernetes-sigs/kro

go 1.24.0

Expand Down
2 changes: 1 addition & 1 deletion helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
securityContext:
{{- toYaml .Values.deployment.securityContext | nindent 12 }}
{{- if .Values.image.ko }}
image: "ko://github.com/kro-run/kro/cmd/controller"
image: "ko://github.com/kubernetes-sigs/kro/cmd/controller"
{{- else }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package apis

import (
"github.com/kro-run/kro/api/v1alpha1"
"github.com/kubernetes-sigs/kro/api/v1alpha1"
"sigs.k8s.io/controller-runtime/pkg/client"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/condition_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/utils/ptr"

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

// ConditionSet provides methods for evaluating Conditions.
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/condition_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/utils/ptr"

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

// ----------------- Test Resource ----------------------
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 @@ -21,7 +21,7 @@ import (
"github.com/google/cel-go/cel"
exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1"

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

// ResourceDependency represents a resource and its accessed path within a CEL expression.
Expand Down
2 changes: 1 addition & 1 deletion pkg/cel/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/google/cel-go/cel"
"github.com/google/cel-go/ext"

"github.com/kro-run/kro/pkg/cel/library"
"github.com/kubernetes-sigs/kro/pkg/cel/library"
)

// EnvOption is a function that modifies the environment options.
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/fake/fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package fake
import (
"context"

"github.com/kro-run/kro/pkg/client"
"github.com/kubernetes-sigs/kro/pkg/client"
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1"
"k8s.io/client-go/dynamic"
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 @@ -28,10 +28,10 @@ import (
"k8s.io/client-go/dynamic"
ctrl "sigs.k8s.io/controller-runtime"

"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"
"github.com/kubernetes-sigs/kro/api/v1alpha1"
kroclient "github.com/kubernetes-sigs/kro/pkg/client"
"github.com/kubernetes-sigs/kro/pkg/graph"
"github.com/kubernetes-sigs/kro/pkg/metadata"
)

// ReconcileConfig holds configuration parameters for the reconciliation 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 @@ -26,10 +26,10 @@ import (
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/dynamic"

"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"
"github.com/kubernetes-sigs/kro/pkg/controller/instance/delta"
"github.com/kubernetes-sigs/kro/pkg/metadata"
"github.com/kubernetes-sigs/kro/pkg/requeue"
"github.com/kubernetes-sigs/kro/pkg/runtime"
)

const (
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 @@ -22,8 +22,8 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/kro-run/kro/api/v1alpha1"
"github.com/kro-run/kro/pkg/requeue"
"github.com/kubernetes-sigs/kro/api/v1alpha1"
"github.com/kubernetes-sigs/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/resourcegraphdefinition/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ import (
"sigs.k8s.io/controller-runtime/pkg/predicate"
"sigs.k8s.io/controller-runtime/pkg/reconcile"

"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"
"github.com/kubernetes-sigs/kro/api/v1alpha1"
kroclient "github.com/kubernetes-sigs/kro/pkg/client"
"github.com/kubernetes-sigs/kro/pkg/dynamiccontroller"
"github.com/kubernetes-sigs/kro/pkg/graph"
"github.com/kubernetes-sigs/kro/pkg/metadata"
)

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

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

// cleanupResourceGraphDefinition handles the deletion of a ResourceGraphDefinition by shutting down its associated
Expand Down
10 changes: 5 additions & 5 deletions pkg/controller/resourcegraphdefinition/controller_reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
ctrl "sigs.k8s.io/controller-runtime"

"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"
"github.com/kubernetes-sigs/kro/api/v1alpha1"
instancectrl "github.com/kubernetes-sigs/kro/pkg/controller/instance"
"github.com/kubernetes-sigs/kro/pkg/dynamiccontroller"
"github.com/kubernetes-sigs/kro/pkg/graph"
"github.com/kubernetes-sigs/kro/pkg/metadata"
)

// reconcileResourceGraphDefinition orchestrates the reconciliation of a ResourceGraphDefinition by:
Expand Down
6 changes: 3 additions & 3 deletions pkg/controller/resourcegraphdefinition/controller_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/go-logr/logr"
"github.com/kro-run/kro/api/v1alpha1"
"github.com/kro-run/kro/pkg/apis"
"github.com/kro-run/kro/pkg/metadata"
"github.com/kubernetes-sigs/kro/api/v1alpha1"
"github.com/kubernetes-sigs/kro/pkg/apis"
"github.com/kubernetes-sigs/kro/pkg/metadata"
)

// setResourceGraphDefinitionStatus calculates the ResourceGraphDefinition status and updates it
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 @@ -77,8 +77,8 @@ import (
"k8s.io/client-go/util/workqueue"
ctrl "sigs.k8s.io/controller-runtime"

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

// Config holds the configuration for DynamicController
Expand Down
Loading