Update go mod and refs with crossplane org name
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
This commit is contained in:
parent
e599809162
commit
16aa98bd07
|
|
@ -29,7 +29,7 @@ I have:
|
|||
- [ ] Updated any relevant [documentation], [examples], or [release notes].
|
||||
- [ ] Updated the RBAC permissions in [`clusterrole.yaml`] to include any new types.
|
||||
|
||||
[documentation]: https://github.com/crossplaneio/crossplane/tree/master/docs
|
||||
[examples]: https://github.com/crossplaneio/crossplane/tree/master/cluster/examples
|
||||
[release notes]: https://github.com/crossplaneio/crossplane/tree/master/PendingReleaseNotes.md
|
||||
[`clusterrole.yaml`]: https://github.com/crossplaneio/crossplane/blob/master/cluster/charts/crossplane/templates/clusterrole.yaml
|
||||
[documentation]: https://github.com/crossplane/crossplane/tree/master/docs
|
||||
[examples]: https://github.com/crossplane/crossplane/tree/master/cluster/examples
|
||||
[release notes]: https://github.com/crossplane/crossplane/tree/master/PendingReleaseNotes.md
|
||||
[`clusterrole.yaml`]: https://github.com/crossplane/crossplane/blob/master/cluster/charts/crossplane/templates/clusterrole.yaml
|
||||
|
|
@ -38,7 +38,7 @@ linters-settings:
|
|||
goimports:
|
||||
# put imports beginning with prefix after 3rd-party packages;
|
||||
# it's a comma-separated list of prefixes
|
||||
local-prefixes: github.com/crossplaneio/crossplane
|
||||
local-prefixes: github.com/crossplane/crossplane
|
||||
|
||||
gocyclo:
|
||||
# minimal code complexity to report, 30 by default (but we recommend 10-20)
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -2,7 +2,7 @@
|
|||
# Setup Project
|
||||
|
||||
PROJECT_NAME := crossplane-runtime
|
||||
PROJECT_REPO := github.com/crossplaneio/$(PROJECT_NAME)
|
||||
PROJECT_REPO := github.com/crossplane/$(PROJECT_NAME)
|
||||
|
||||
PLATFORMS ?= linux_amd64 linux_arm64
|
||||
# -include will silently skip missing files, which allows us
|
||||
|
|
|
|||
2
PROJECT
2
PROJECT
|
|
@ -1,3 +1,3 @@
|
|||
version: "1"
|
||||
domain: crossplane.io
|
||||
repo: github.com/crossplaneio/crossplane-runtime
|
||||
repo: github.com/crossplane/crossplane-runtime
|
||||
|
|
|
|||
16
README.md
16
README.md
|
|
@ -1,4 +1,4 @@
|
|||
# crossplane-runtime [](https://godoc.org/github.com/crossplaneio/crossplane-runtime)
|
||||
# crossplane-runtime [](https://godoc.org/github.com/crossplane/crossplane-runtime)
|
||||
|
||||
## Overview
|
||||
|
||||
|
|
@ -47,14 +47,14 @@ crossplane-runtime is under the Apache 2.0 license.
|
|||
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fcrossplaneio%2Fcrossplane-runtime?ref=badge_large)
|
||||
|
||||
[developer guide]: https://crossplane.io/docs/master/developer-guide.html
|
||||
[API documentation]: https://godoc.org/github.com/crossplaneio/crossplane-runtime
|
||||
[contributing]: https://github.com/crossplaneio/crossplane/blob/master/CONTRIBUTING.md
|
||||
[issue]: https://github.com/crossplaneio/crossplane-runtime/issues
|
||||
[API documentation]: https://godoc.org/github.com/crossplane/crossplane-runtime
|
||||
[contributing]: https://github.com/crossplane/crossplane/blob/master/CONTRIBUTING.md
|
||||
[issue]: https://github.com/crossplane/crossplane-runtime/issues
|
||||
[slack channel]: https://slack.crossplane.io
|
||||
[crossplane-dev]: https://groups.google.com/forum/#!forum/crossplane-dev
|
||||
[@crossplane_io]: https://twitter.com/crossplane_io
|
||||
[info@crossplane.io]: mailto:info@crossplane.io
|
||||
[roadmap]: https://github.com/crossplaneio/crossplane/blob/master/ROADMAP.md
|
||||
[governance]: https://github.com/crossplaneio/crossplane/blob/master/GOVERNANCE.md
|
||||
[ownership]: https://github.com/crossplaneio/crossplane/blob/master/OWNERS.md
|
||||
[code of conduct]: https://github.com/crossplaneio/crossplane/blob/master/CODE_OF_CONDUCT.md
|
||||
[roadmap]: https://github.com/crossplane/crossplane/blob/master/ROADMAP.md
|
||||
[governance]: https://github.com/crossplane/crossplane/blob/master/GOVERNANCE.md
|
||||
[ownership]: https://github.com/crossplane/crossplane/blob/master/OWNERS.md
|
||||
[code of conduct]: https://github.com/crossplane/crossplane/blob/master/CODE_OF_CONDUCT.md
|
||||
|
|
|
|||
|
|
@ -23,12 +23,12 @@ limitations under the License.
|
|||
//go:generate go run -tags generate sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile=../hack/boilerplate.go.txt paths=./...
|
||||
|
||||
// Generate crossplane-runtime methodsets (resource.Claim, etc)
|
||||
//go:generate go run -tags generate github.com/crossplaneio/crossplane-tools/cmd/angryjet generate-methodsets --header-file=../hack/boilerplate.go.txt ./...
|
||||
//go:generate go run -tags generate github.com/crossplane/crossplane-tools/cmd/angryjet generate-methodsets --header-file=../hack/boilerplate.go.txt ./...
|
||||
|
||||
// Package apis contains Kubernetes API groups
|
||||
package apis
|
||||
|
||||
import (
|
||||
_ "github.com/crossplaneio/crossplane-tools/cmd/angryjet" //nolint:typecheck
|
||||
_ "sigs.k8s.io/controller-tools/cmd/controller-gen" //nolint:typecheck
|
||||
_ "github.com/crossplane/crossplane-tools/cmd/angryjet" //nolint:typecheck
|
||||
_ "sigs.k8s.io/controller-tools/cmd/controller-gen" //nolint:typecheck
|
||||
)
|
||||
|
|
|
|||
|
|
@ -135,14 +135,14 @@ type ResourceSpec struct {
|
|||
// ClaimReference specifies the resource claim to which this managed
|
||||
// resource will be bound. ClaimReference is set automatically during
|
||||
// dynamic provisioning. Crossplane does not currently support setting this
|
||||
// field manually, per https://github.com/crossplaneio/crossplane-runtime/issues/19
|
||||
// field manually, per https://github.com/crossplane/crossplane-runtime/issues/19
|
||||
// +optional
|
||||
ClaimReference *corev1.ObjectReference `json:"claimRef,omitempty"`
|
||||
|
||||
// ClassReference specifies the resource class that was used to dynamically
|
||||
// provision this managed resource, if any. Crossplane does not currently
|
||||
// support setting this field manually, per
|
||||
// https://github.com/crossplaneio/crossplane-runtime/issues/20
|
||||
// https://github.com/crossplane/crossplane-runtime/issues/20
|
||||
// +optional
|
||||
ClassReference *corev1.ObjectReference `json:"classRef,omitempty"`
|
||||
|
||||
|
|
|
|||
4
go.mod
4
go.mod
|
|
@ -1,4 +1,4 @@
|
|||
module github.com/crossplaneio/crossplane-runtime
|
||||
module github.com/crossplane/crossplane-runtime
|
||||
|
||||
go 1.13
|
||||
|
||||
|
|
@ -6,7 +6,7 @@ require (
|
|||
github.com/Azure/go-autorest/autorest v0.9.2 // indirect
|
||||
github.com/Azure/go-autorest/autorest/adal v0.8.0 // indirect
|
||||
github.com/beorn7/perks v1.0.1 // indirect
|
||||
github.com/crossplaneio/crossplane-tools v0.0.0-20191220202319-9033bd8a02ce
|
||||
github.com/crossplane/crossplane-tools v0.0.0-20200219001116-bb8b2ce46330
|
||||
github.com/go-logr/logr v0.1.0
|
||||
github.com/go-logr/zapr v0.1.1 // indirect
|
||||
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
|
||||
|
|
|
|||
4
go.sum
4
go.sum
|
|
@ -73,8 +73,8 @@ github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7
|
|||
github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea h1:n2Ltr3SrfQlf/9nOna1DoGKxLx3qTSI8Ttl6Xrqp6mw=
|
||||
github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
|
||||
github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
|
||||
github.com/crossplaneio/crossplane-tools v0.0.0-20191220202319-9033bd8a02ce h1:V7cUPRBxbJr0siRHn459gb6hfMXaEA+pGm0Yt5aXdhQ=
|
||||
github.com/crossplaneio/crossplane-tools v0.0.0-20191220202319-9033bd8a02ce/go.mod h1:fzQeWDvZvzaC4N8vPjTubQocGnwzQ4cuZM6949+T43U=
|
||||
github.com/crossplane/crossplane-tools v0.0.0-20200219001116-bb8b2ce46330 h1:zxdYGQnQbfyZSnRbKUJ16x5lRzkUTbH+uumVq03ijYo=
|
||||
github.com/crossplane/crossplane-tools v0.0.0-20200219001116-bb8b2ce46330/go.mod h1:C735A9X0x0lR8iGVOOxb49Mt70Ua4EM2b7PGaRPBLd4=
|
||||
github.com/dave/jennifer v1.3.0 h1:p3tl41zjjCZTNBytMwrUuiAnherNUZktlhPTKoF/sEk=
|
||||
github.com/dave/jennifer v1.3.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhrIygKg=
|
||||
github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
`{{violation.rule}}`: {{violation.message}}
|
||||
|
||||
Refer to Crossplane's [coding style documentation](https://github.com/crossplaneio/crossplane/blob/master/CONTRIBUTING.md#coding-style-and-linting) for more information.
|
||||
Refer to Crossplane's [coding style documentation](https://github.com/crossplane/crossplane/blob/master/CONTRIBUTING.md#coding-style-and-linting) for more information.
|
||||
|
|
@ -21,7 +21,7 @@ limitations under the License.
|
|||
// * https://peter.bourgon.org/go-best-practices-2016/#logging-and-instrumentation
|
||||
// * https://dave.cheney.net/2015/11/05/lets-talk-about-logging
|
||||
// * https://dave.cheney.net/2017/01/23/the-package-level-logger-anti-pattern
|
||||
// * https://github.com/crossplaneio/crossplane/blob/c06433/design/one-pager-error-and-event-reporting.md
|
||||
// * https://github.com/crossplane/crossplane/blob/c06433/design/one-pager-error-and-event-reporting.md
|
||||
//
|
||||
// It is similar to other logging interfaces inspired by said article, namely:
|
||||
//
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ import (
|
|||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ import (
|
|||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
)
|
||||
|
||||
// Error strings.
|
||||
|
|
|
|||
|
|
@ -27,11 +27,11 @@ import (
|
|||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ import (
|
|||
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
)
|
||||
|
||||
// A ConfiguratorChain chains multiple configurators.
|
||||
|
|
|
|||
|
|
@ -24,11 +24,11 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -30,11 +30,11 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/event"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/logging"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/event"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/logging"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -30,10 +30,10 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
var _ reconcile.Reconciler = &Reconciler{}
|
||||
|
|
|
|||
|
|
@ -29,11 +29,11 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/event"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/logging"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/event"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/logging"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -32,10 +32,10 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
var _ reconcile.Reconciler = &Reconciler{}
|
||||
|
|
|
|||
|
|
@ -29,10 +29,10 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/event"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/logging"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/event"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/logging"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
var _ reconcile.Reconciler = &Reconciler{}
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
util "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
)
|
||||
|
||||
// Error strings.
|
||||
|
|
|
|||
|
|
@ -30,11 +30,11 @@ import (
|
|||
"k8s.io/apimachinery/pkg/types"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ package managed
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
)
|
||||
|
||||
// A PublisherChain chains multiple ManagedPublishers.
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ import (
|
|||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -27,11 +27,11 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/event"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/logging"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/event"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/logging"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
@ -670,7 +670,7 @@ func (r *Reconciler) Reconcile(req reconcile.Request) (reconcile.Result, error)
|
|||
// Per the below issue nothing will notify us if and when the external
|
||||
// resource we manage changes, so we requeue a speculative reconcile
|
||||
// after a long wait in order to observe it and react accordingly.
|
||||
// https://github.com/crossplaneio/crossplane/issues/289
|
||||
// https://github.com/crossplane/crossplane/issues/289
|
||||
log.Debug("External resource is up to date", "requeue-after", time.Now().Add(r.longWait))
|
||||
managed.SetConditions(v1alpha1.ReconcileSuccess())
|
||||
return reconcile.Result{RequeueAfter: r.longWait}, errors.Wrap(r.client.Status().Update(ctx, managed), errUpdateManagedStatus)
|
||||
|
|
@ -703,7 +703,7 @@ func (r *Reconciler) Reconcile(req reconcile.Request) (reconcile.Result, error)
|
|||
// nothing will notify us if and when the external resource we manage
|
||||
// changes, so we requeue a speculative reconcile after a long wait in order
|
||||
// to observe it and react accordingly.
|
||||
// https://github.com/crossplaneio/crossplane/issues/289
|
||||
// https://github.com/crossplane/crossplane/issues/289
|
||||
log.Debug("Successfully requested update of external resource", "requeue-after", time.Now().Add(r.longWait))
|
||||
record.Event(managed, event.Normal(reasonUpdated, "Successfully requested update of external resource"))
|
||||
managed.SetConditions(v1alpha1.ReconcileSuccess())
|
||||
|
|
|
|||
|
|
@ -32,10 +32,10 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
var _ reconcile.Reconciler = &Reconciler{}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
)
|
||||
|
||||
// Error strings
|
||||
|
|
|
|||
|
|
@ -25,9 +25,9 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
type mockReferencer struct {
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/event"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/logging"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/event"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/logging"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
)
|
||||
|
||||
const secretReconcileTimeout = 1 * time.Minute
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
func TestReconciler(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -27,11 +27,11 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/event"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/logging"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/event"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/logging"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -31,10 +31,10 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
func TestReconciler(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
util "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
)
|
||||
|
||||
// Error strings.
|
||||
|
|
|
|||
|
|
@ -29,10 +29,10 @@ import (
|
|||
"k8s.io/apimachinery/pkg/types"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/event"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
)
|
||||
|
||||
type adder interface {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/handler"
|
||||
"sigs.k8s.io/controller-runtime/pkg/reconcile"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import (
|
|||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
)
|
||||
|
||||
// Bindable is a mock that implements Bindable interface.
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import (
|
|||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
)
|
||||
|
||||
// A Bindable resource may be bound to another resource. Resources are bindable
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ import (
|
|||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
func TestAnyOf(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ func (r ReferenceStatus) String() string {
|
|||
type CanReference runtime.Object
|
||||
|
||||
// An AttributeReferencer resolves cross-resource attribute references. See
|
||||
// https://github.com/crossplaneio/crossplane/blob/master/design/one-pager-cross-resource-referencing.md
|
||||
// https://github.com/crossplane/crossplane/blob/master/design/one-pager-cross-resource-referencing.md
|
||||
// for more information
|
||||
type AttributeReferencer interface {
|
||||
// GetStatus retries the referenced resource, as well as other non-managed
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ import (
|
|||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/meta"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/meta"
|
||||
)
|
||||
|
||||
// Supported resources with all of these annotations will be fully or partially
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ import (
|
|||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
|
||||
"github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplaneio/crossplane-runtime/pkg/test"
|
||||
"github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/resource/fake"
|
||||
"github.com/crossplane/crossplane-runtime/pkg/test"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import (
|
|||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/google/go-cmp/cmp/cmpopts"
|
||||
|
||||
corev1alpha1 "github.com/crossplaneio/crossplane-runtime/apis/core/v1alpha1"
|
||||
corev1alpha1 "github.com/crossplane/crossplane-runtime/apis/core/v1alpha1"
|
||||
)
|
||||
|
||||
// TODO(negz): Replace this if a similar option is added to cmpopts per
|
||||
|
|
|
|||
Loading…
Reference in New Issue