From 5a30cced879a9de35becfb649b5aa3d9588add63 Mon Sep 17 00:00:00 2001 From: arielsepton <64063409+arielsepton@users.noreply.github.com> Date: Thu, 29 Feb 2024 07:49:19 +0000 Subject: [PATCH] Update GitHub references to crossplane-contrib Signed-off-by: arielsepton <64063409+arielsepton@users.noreply.github.com> --- Makefile | 2 +- PROVIDER_CHECKLIST.md | 18 ++++++------- README.md | 4 +-- apis/http.go | 6 ++--- cmd/provider/main.go | 4 +-- deploy.yml | 25 ++----------------- go.mod | 2 +- .../controller/KIND_LOWER/KIND_LOWER.go.tmpl | 6 ++--- internal/controller/config/config.go | 2 +- .../desposiblerequest/desposiblerequest.go | 12 ++++----- .../desposiblerequest_test.go | 6 ++--- internal/controller/http.go | 6 ++--- internal/controller/request/observe.go | 10 ++++---- internal/controller/request/observe_test.go | 4 +-- internal/controller/request/request.go | 12 ++++----- internal/controller/request/request_test.go | 4 +-- .../request/requestgen/request_generator.go | 8 +++--- .../requestgen/request_generator_test.go | 2 +- .../requestprocessing/request_processing.go | 2 +- .../request/responseconverter/converter.go | 4 +-- .../responseconverter/converter_test.go | 4 +-- .../request/statushandler/status.go | 10 ++++---- .../request/statushandler/status_test.go | 6 ++--- internal/controller/request/utils.go | 2 +- internal/controller/request/utils_test.go | 2 +- internal/json/util_test.go | 2 +- internal/utils/set_status.go | 2 +- internal/utils/set_status_test.go | 6 ++--- package/crossplane.yaml | 22 ++++++++++++++-- 29 files changed, 96 insertions(+), 99 deletions(-) diff --git a/Makefile b/Makefile index 9de441a..d84b6a2 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # Setup Project PROJECT_NAME := provider-http -PROJECT_REPO := github.com/arielsepton/$(PROJECT_NAME) +PROJECT_REPO := github.com/crossplane-contrib/$(PROJECT_NAME) PLATFORMS ?= linux_amd64 linux_arm64 diff --git a/PROVIDER_CHECKLIST.md b/PROVIDER_CHECKLIST.md index 9d1f072..259f9ee 100644 --- a/PROVIDER_CHECKLIST.md +++ b/PROVIDER_CHECKLIST.md @@ -30,7 +30,7 @@ Generally projects are named `provider-`, with `name` being the API being managed. Example project names are `provider-aws`, `provider-kubernetes`, and `provider-github`. -The [provider-http](https://github.com/arielsepton/provider-http) repository can be +The [provider-http](https://github.com/crossplane-contrib/provider-http) repository can be used as a starting point for new providers. For [terrajet](https://github.com/crossplane/terrajet)-based providers, the [provider-jet-http](https://github.com/crossplane-contrib/provider-jet-http) is available. @@ -43,17 +43,17 @@ Most Crossplane providers include the following files: [provider-gcp/README.md](https://github.com/crossplane/provider-gcp/blob/master/README.md) as an example) - [ ] Code is licensed under the [Apache 2.0 - License](https://github.com/arielsepton/provider-http/blob/main/LICENSE) + License](https://github.com/crossplane-contrib/provider-http/blob/main/LICENSE) - [ ] Include a “Developer Certificate of Origin”. Example: [DCO](https://github.com/upbound/build/blob/master/DCO) - [ ] Include the CNCF [Code of Conduct](https://github.com/crossplane/crossplane/blob/master/CODE_OF_CONDUCT.md) - [ ] Update - [OWNERS.md](https://github.com/arielsepton/provider-http/blob/main/OWNERS.md) + [OWNERS.md](https://github.com/crossplane-contrib/provider-http/blob/main/OWNERS.md) with contacts for project Owners - [ ] Ensure `hack/boilerplate.go.txt` (used in Code generation) includes Crossplane Authors, Apache license and any other Copyright statements: - [https://github.com/arielsepton/provider-http/blob/main/hack/boilerplate.go.txt](https://github.com/arielsepton/provider-http/blob/main/hack/boilerplate.go.txt) + [https://github.com/crossplane-contrib/provider-http/blob/main/hack/boilerplate.go.txt](https://github.com/crossplane-contrib/provider-http/blob/main/hack/boilerplate.go.txt) - [ ] Include Documentation on how to: - [ ] Install Provider - [ ] Contribute to Development @@ -68,7 +68,7 @@ There are a number of build tools and processes that are common across the Crossplane ecosystem. Using these ensures a consistent development environment across projects. -The [provider-http](https://github.com/arielsepton/provider-http) +The [provider-http](https://github.com/crossplane-contrib/provider-http) repository contains most of these settings. - [ ] Use the [Upbound build](https://github.com/upbound/build) submodule. (see @@ -81,7 +81,7 @@ repository contains most of these settings. - [ ] Create a [Crossplane Package](https://crossplane.io/docs/master/concepts/packages.html) configuration (see - [package/crossplane.yaml)](https://github.com/arielsepton/provider-http/blob/main/package/crossplane.yaml) + [package/crossplane.yaml)](https://github.com/crossplane-contrib/provider-http/blob/main/package/crossplane.yaml) ## Deployment of Artifacts @@ -96,7 +96,7 @@ the publish and promotion workflows. In general, providers should: - [ ] Utilize GitHub workflows from - + - [ ] Create OCI image repos to push Package and Controller images. - [ ] Automatically push Provider images and packages via CI - [ ] Add GitHub Secrets to push to Docker repository. (To be performed by @@ -113,6 +113,6 @@ to grant your project access to the GitHub org scoped secrets. - [ ] Follow recommendations at [https://github.com/crossplane/crossplane/blob/master/GOVERNANCE.md#repository-governance](https://github.com/crossplane/crossplane/blob/master/GOVERNANCE.md#repository-governance) - [ ] Enable Issues on your project and configure Issue https (examples at: - [.github/ISSUE_TEMPLATE](https://github.com/arielsepton/provider-http/tree/master/.github/ISSUE_TEMPLATE)) + [.github/ISSUE_TEMPLATE](https://github.com/crossplane-contrib/provider-http/tree/master/.github/ISSUE_TEMPLATE)) - [ ] Create Pull Request Https: (example: - [PULL_REQUEST_TEMPLATE.md](https://github.com/arielsepton/provider-http/blob/master/.github/PULL_REQUEST_TEMPLATE.md)) + [PULL_REQUEST_TEMPLATE.md](https://github.com/crossplane-contrib/provider-http/blob/master/.github/PULL_REQUEST_TEMPLATE.md)) diff --git a/README.md b/README.md index 4d92792..7b77389 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ To install `provider-http`, you have two options: 1. Using the Crossplane CLI in a Kubernetes cluster where Crossplane is installed: ```console - kubectl crossplane install provider ghcr.io/arielsepton/provider-http:v1.2.0 + kubectl crossplane install provider xpkg.upbound.io/crossplane-contrib/provider-http:v0.1.0 ``` 2. Manually creating a Provider by applying the following YAML: @@ -21,7 +21,7 @@ To install `provider-http`, you have two options: metadata: name: provider-http spec: - package: "ghcr.io/arielsepton/provider-http:v1.2.0" + package: "xpkg.upbound.io/crossplane-contrib/provider-http:v0.1.0" ``` diff --git a/apis/http.go b/apis/http.go index cc8985d..b8454f8 100644 --- a/apis/http.go +++ b/apis/http.go @@ -20,9 +20,9 @@ package apis import ( "k8s.io/apimachinery/pkg/runtime" - desposiblerequestv1alpha1 "github.com/arielsepton/provider-http/apis/desposiblerequest/v1alpha1" - requestv1alpha1 "github.com/arielsepton/provider-http/apis/request/v1alpha1" - httpv1alpha1 "github.com/arielsepton/provider-http/apis/v1alpha1" + desposiblerequestv1alpha1 "github.com/crossplane-contrib/provider-http/apis/desposiblerequest/v1alpha1" + requestv1alpha1 "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" + httpv1alpha1 "github.com/crossplane-contrib/provider-http/apis/v1alpha1" ) func init() { diff --git a/cmd/provider/main.go b/cmd/provider/main.go index 95ab03c..eba0f3d 100644 --- a/cmd/provider/main.go +++ b/cmd/provider/main.go @@ -31,8 +31,8 @@ import ( "github.com/crossplane/crossplane-runtime/pkg/logging" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" - "github.com/arielsepton/provider-http/apis" - template "github.com/arielsepton/provider-http/internal/controller" + "github.com/crossplane-contrib/provider-http/apis" + template "github.com/crossplane-contrib/provider-http/internal/controller" ) func main() { diff --git a/deploy.yml b/deploy.yml index 23624a0..c8b7a28 100644 --- a/deploy.yml +++ b/deploy.yml @@ -1,10 +1,10 @@ -# HTTP_PROVIDER +# provider-http apiVersion: pkg.crossplane.io/v1 kind: Provider metadata: name: http-provider spec: - package: ghcr.io/arielsepton/provider-http:v1.0.1 + package: xpkg.upbound.io/crossplane-contrib/provider-http:v0.1.0 controllerConfigRef: name: debug-config @@ -18,24 +18,3 @@ metadata: spec: args: - --debug - - ---- -# PROVIDER_HELM -apiVersion: pkg.crossplane.io/v1 -kind: Provider -metadata: - name: provider-helm -spec: - package: xpkg.upbound.io/crossplane-contrib/provider-helm:v0.15.0 - - ---- -# PROVIDER_CONFIG_HELM_PROVIDER -apiVersion: helm.crossplane.io/v1beta1 -kind: ProviderConfig -metadata: - name: helm-provider -spec: - credentials: - source: InjectedIdentity \ No newline at end of file diff --git a/go.mod b/go.mod index e7420af..9cb85f5 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/arielsepton/provider-http +module github.com/crossplane-contrib/provider-http go 1.19 diff --git a/hack/helpers/controller/KIND_LOWER/KIND_LOWER.go.tmpl b/hack/helpers/controller/KIND_LOWER/KIND_LOWER.go.tmpl index 6a63230..e3758a4 100644 --- a/hack/helpers/controller/KIND_LOWER/KIND_LOWER.go.tmpl +++ b/hack/helpers/controller/KIND_LOWER/KIND_LOWER.go.tmpl @@ -32,9 +32,9 @@ import ( "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" "github.com/crossplane/crossplane-runtime/pkg/resource" - "github.com/arielsepton/provider-{{ .Env.PROVIDER | strings.ToLower }}/apis/{{ .Env.GROUP | strings.ToLower }}/{{ .Env.APIVERSION | strings.ToLower }}" - apisv1alpha1 "github.com/arielsepton/provider-{{ .Env.PROVIDER | strings.ToLower }}/apis/v1alpha1" - "github.com/arielsepton/provider-{{ .Env.PROVIDER | strings.ToLower }}/internal/controller/features" + "github.com/crossplane-contrib/provider-{{ .Env.PROVIDER | strings.ToLower }}/apis/{{ .Env.GROUP | strings.ToLower }}/{{ .Env.APIVERSION | strings.ToLower }}" + apisv1alpha1 "github.com/crossplane-contrib/provider-{{ .Env.PROVIDER | strings.ToLower }}/apis/v1alpha1" + "github.com/crossplane-contrib/provider-{{ .Env.PROVIDER | strings.ToLower }}/internal/controller/features" ) const ( diff --git a/internal/controller/config/config.go b/internal/controller/config/config.go index c2ef321..e5b5daf 100644 --- a/internal/controller/config/config.go +++ b/internal/controller/config/config.go @@ -28,7 +28,7 @@ import ( "github.com/crossplane/crossplane-runtime/pkg/reconciler/providerconfig" "github.com/crossplane/crossplane-runtime/pkg/resource" - "github.com/arielsepton/provider-http/apis/v1alpha1" + "github.com/crossplane-contrib/provider-http/apis/v1alpha1" ) // Setup adds a controller that reconciles ProviderConfigs by accounting for diff --git a/internal/controller/desposiblerequest/desposiblerequest.go b/internal/controller/desposiblerequest/desposiblerequest.go index eb8bebf..fb0438d 100644 --- a/internal/controller/desposiblerequest/desposiblerequest.go +++ b/internal/controller/desposiblerequest/desposiblerequest.go @@ -28,8 +28,8 @@ import ( ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" - "github.com/arielsepton/provider-http/internal/jq" - json_util "github.com/arielsepton/provider-http/internal/json" + "github.com/crossplane-contrib/provider-http/internal/jq" + json_util "github.com/crossplane-contrib/provider-http/internal/json" xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" "github.com/crossplane/crossplane-runtime/pkg/controller" "github.com/crossplane/crossplane-runtime/pkg/event" @@ -37,10 +37,10 @@ import ( "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" "github.com/crossplane/crossplane-runtime/pkg/resource" - "github.com/arielsepton/provider-http/apis/desposiblerequest/v1alpha1" - apisv1alpha1 "github.com/arielsepton/provider-http/apis/v1alpha1" - httpClient "github.com/arielsepton/provider-http/internal/clients/http" - "github.com/arielsepton/provider-http/internal/utils" + "github.com/crossplane-contrib/provider-http/apis/desposiblerequest/v1alpha1" + apisv1alpha1 "github.com/crossplane-contrib/provider-http/apis/v1alpha1" + httpClient "github.com/crossplane-contrib/provider-http/internal/clients/http" + "github.com/crossplane-contrib/provider-http/internal/utils" ) const ( diff --git a/internal/controller/desposiblerequest/desposiblerequest_test.go b/internal/controller/desposiblerequest/desposiblerequest_test.go index d9993c8..e9fec1d 100644 --- a/internal/controller/desposiblerequest/desposiblerequest_test.go +++ b/internal/controller/desposiblerequest/desposiblerequest_test.go @@ -22,10 +22,10 @@ import ( "testing" "time" - "github.com/arielsepton/provider-http/apis/desposiblerequest/v1alpha1" + "github.com/crossplane-contrib/provider-http/apis/desposiblerequest/v1alpha1" - httpClient "github.com/arielsepton/provider-http/internal/clients/http" - "github.com/arielsepton/provider-http/internal/utils" + httpClient "github.com/crossplane-contrib/provider-http/internal/clients/http" + "github.com/crossplane-contrib/provider-http/internal/utils" xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" "github.com/google/go-cmp/cmp" "github.com/pkg/errors" diff --git a/internal/controller/http.go b/internal/controller/http.go index 4af4e1f..693be76 100644 --- a/internal/controller/http.go +++ b/internal/controller/http.go @@ -22,9 +22,9 @@ import ( "github.com/crossplane/crossplane-runtime/pkg/controller" ctrl "sigs.k8s.io/controller-runtime" - "github.com/arielsepton/provider-http/internal/controller/config" - desposiblerequest "github.com/arielsepton/provider-http/internal/controller/desposiblerequest" - request "github.com/arielsepton/provider-http/internal/controller/request" + "github.com/crossplane-contrib/provider-http/internal/controller/config" + desposiblerequest "github.com/crossplane-contrib/provider-http/internal/controller/desposiblerequest" + request "github.com/crossplane-contrib/provider-http/internal/controller/request" ) // Setup creates all http controllers with the supplied logger and adds them to diff --git a/internal/controller/request/observe.go b/internal/controller/request/observe.go index 146718a..55609df 100644 --- a/internal/controller/request/observe.go +++ b/internal/controller/request/observe.go @@ -5,11 +5,11 @@ import ( "net/http" "strings" - "github.com/arielsepton/provider-http/apis/request/v1alpha1" - httpClient "github.com/arielsepton/provider-http/internal/clients/http" - "github.com/arielsepton/provider-http/internal/controller/request/requestgen" - "github.com/arielsepton/provider-http/internal/json" - "github.com/arielsepton/provider-http/internal/utils" + "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" + httpClient "github.com/crossplane-contrib/provider-http/internal/clients/http" + "github.com/crossplane-contrib/provider-http/internal/controller/request/requestgen" + "github.com/crossplane-contrib/provider-http/internal/json" + "github.com/crossplane-contrib/provider-http/internal/utils" "github.com/pkg/errors" ) diff --git a/internal/controller/request/observe_test.go b/internal/controller/request/observe_test.go index 618ba64..e9fcc0b 100644 --- a/internal/controller/request/observe_test.go +++ b/internal/controller/request/observe_test.go @@ -5,8 +5,8 @@ import ( "net/http" "testing" - "github.com/arielsepton/provider-http/apis/request/v1alpha1" - httpClient "github.com/arielsepton/provider-http/internal/clients/http" + "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" + httpClient "github.com/crossplane-contrib/provider-http/internal/clients/http" "github.com/crossplane/crossplane-runtime/pkg/logging" "github.com/crossplane/crossplane-runtime/pkg/test" "github.com/google/go-cmp/cmp" diff --git a/internal/controller/request/request.go b/internal/controller/request/request.go index a2e35b2..3ab697f 100644 --- a/internal/controller/request/request.go +++ b/internal/controller/request/request.go @@ -34,12 +34,12 @@ import ( "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" "github.com/crossplane/crossplane-runtime/pkg/resource" - "github.com/arielsepton/provider-http/apis/request/v1alpha1" - apisv1alpha1 "github.com/arielsepton/provider-http/apis/v1alpha1" - httpClient "github.com/arielsepton/provider-http/internal/clients/http" - "github.com/arielsepton/provider-http/internal/controller/request/requestgen" - "github.com/arielsepton/provider-http/internal/controller/request/statushandler" - "github.com/arielsepton/provider-http/internal/utils" + "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" + apisv1alpha1 "github.com/crossplane-contrib/provider-http/apis/v1alpha1" + httpClient "github.com/crossplane-contrib/provider-http/internal/clients/http" + "github.com/crossplane-contrib/provider-http/internal/controller/request/requestgen" + "github.com/crossplane-contrib/provider-http/internal/controller/request/statushandler" + "github.com/crossplane-contrib/provider-http/internal/utils" ) const ( diff --git a/internal/controller/request/request_test.go b/internal/controller/request/request_test.go index 175248d..fb4a1cc 100644 --- a/internal/controller/request/request_test.go +++ b/internal/controller/request/request_test.go @@ -7,8 +7,8 @@ import ( v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/client" - "github.com/arielsepton/provider-http/apis/request/v1alpha1" - httpClient "github.com/arielsepton/provider-http/internal/clients/http" + "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" + httpClient "github.com/crossplane-contrib/provider-http/internal/clients/http" xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" "github.com/crossplane/crossplane-runtime/pkg/logging" "github.com/crossplane/crossplane-runtime/pkg/resource" diff --git a/internal/controller/request/requestgen/request_generator.go b/internal/controller/request/requestgen/request_generator.go index 58ea643..991021b 100644 --- a/internal/controller/request/requestgen/request_generator.go +++ b/internal/controller/request/requestgen/request_generator.go @@ -6,10 +6,10 @@ import ( "github.com/pkg/errors" - "github.com/arielsepton/provider-http/apis/request/v1alpha1" - "github.com/arielsepton/provider-http/internal/controller/request/requestprocessing" - json_util "github.com/arielsepton/provider-http/internal/json" - "github.com/arielsepton/provider-http/internal/utils" + "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" + "github.com/crossplane-contrib/provider-http/internal/controller/request/requestprocessing" + json_util "github.com/crossplane-contrib/provider-http/internal/json" + "github.com/crossplane-contrib/provider-http/internal/utils" "golang.org/x/exp/maps" ) diff --git a/internal/controller/request/requestgen/request_generator_test.go b/internal/controller/request/requestgen/request_generator_test.go index fdc90cf..16c38ce 100644 --- a/internal/controller/request/requestgen/request_generator_test.go +++ b/internal/controller/request/requestgen/request_generator_test.go @@ -3,7 +3,7 @@ package requestgen import ( "testing" - "github.com/arielsepton/provider-http/apis/request/v1alpha1" + "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" "github.com/crossplane/crossplane-runtime/pkg/logging" "github.com/crossplane/crossplane-runtime/pkg/test" "github.com/google/go-cmp/cmp" diff --git a/internal/controller/request/requestprocessing/request_processing.go b/internal/controller/request/requestprocessing/request_processing.go index 560a912..6ca2ea6 100644 --- a/internal/controller/request/requestprocessing/request_processing.go +++ b/internal/controller/request/requestprocessing/request_processing.go @@ -4,7 +4,7 @@ import ( "encoding/json" "strings" - "github.com/arielsepton/provider-http/internal/jq" + "github.com/crossplane-contrib/provider-http/internal/jq" ) func ConvertStringToJQQuery(input string) string { diff --git a/internal/controller/request/responseconverter/converter.go b/internal/controller/request/responseconverter/converter.go index e5c3d6f..132d0ed 100644 --- a/internal/controller/request/responseconverter/converter.go +++ b/internal/controller/request/responseconverter/converter.go @@ -1,8 +1,8 @@ package responseconverter import ( - "github.com/arielsepton/provider-http/apis/request/v1alpha1" - httpClient "github.com/arielsepton/provider-http/internal/clients/http" + "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" + httpClient "github.com/crossplane-contrib/provider-http/internal/clients/http" ) // Convert HttpResponse to Response diff --git a/internal/controller/request/responseconverter/converter_test.go b/internal/controller/request/responseconverter/converter_test.go index 5f57220..82a5794 100644 --- a/internal/controller/request/responseconverter/converter_test.go +++ b/internal/controller/request/responseconverter/converter_test.go @@ -3,8 +3,8 @@ package responseconverter import ( "testing" - "github.com/arielsepton/provider-http/apis/request/v1alpha1" - httpClient "github.com/arielsepton/provider-http/internal/clients/http" + "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" + httpClient "github.com/crossplane-contrib/provider-http/internal/clients/http" "github.com/google/go-cmp/cmp" ) diff --git a/internal/controller/request/statushandler/status.go b/internal/controller/request/statushandler/status.go index 38b80ea..7444c56 100644 --- a/internal/controller/request/statushandler/status.go +++ b/internal/controller/request/statushandler/status.go @@ -5,11 +5,11 @@ import ( "net/http" "strconv" - "github.com/arielsepton/provider-http/apis/request/v1alpha1" - httpClient "github.com/arielsepton/provider-http/internal/clients/http" - "github.com/arielsepton/provider-http/internal/controller/request/requestgen" - "github.com/arielsepton/provider-http/internal/controller/request/responseconverter" - "github.com/arielsepton/provider-http/internal/utils" + "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" + httpClient "github.com/crossplane-contrib/provider-http/internal/clients/http" + "github.com/crossplane-contrib/provider-http/internal/controller/request/requestgen" + "github.com/crossplane-contrib/provider-http/internal/controller/request/responseconverter" + "github.com/crossplane-contrib/provider-http/internal/utils" "github.com/crossplane/crossplane-runtime/pkg/logging" "github.com/pkg/errors" "k8s.io/apimachinery/pkg/types" diff --git a/internal/controller/request/statushandler/status_test.go b/internal/controller/request/statushandler/status_test.go index ecaf4ae..cb6deba 100644 --- a/internal/controller/request/statushandler/status_test.go +++ b/internal/controller/request/statushandler/status_test.go @@ -7,9 +7,9 @@ import ( "github.com/pkg/errors" - "github.com/arielsepton/provider-http/apis/request/v1alpha1" - httpClient "github.com/arielsepton/provider-http/internal/clients/http" - "github.com/arielsepton/provider-http/internal/utils" + "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" + httpClient "github.com/crossplane-contrib/provider-http/internal/clients/http" + "github.com/crossplane-contrib/provider-http/internal/utils" "github.com/crossplane/crossplane-runtime/pkg/logging" "github.com/crossplane/crossplane-runtime/pkg/test" "github.com/google/go-cmp/cmp" diff --git a/internal/controller/request/utils.go b/internal/controller/request/utils.go index 331ea86..5c1a75f 100644 --- a/internal/controller/request/utils.go +++ b/internal/controller/request/utils.go @@ -1,7 +1,7 @@ package request import ( - "github.com/arielsepton/provider-http/apis/request/v1alpha1" + "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" ) func getMappingByMethod(requestParams *v1alpha1.RequestParameters, method string) (*v1alpha1.Mapping, bool) { diff --git a/internal/controller/request/utils_test.go b/internal/controller/request/utils_test.go index 85bde19..d81bfed 100644 --- a/internal/controller/request/utils_test.go +++ b/internal/controller/request/utils_test.go @@ -3,7 +3,7 @@ package request import ( "testing" - "github.com/arielsepton/provider-http/apis/request/v1alpha1" + "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" "github.com/google/go-cmp/cmp" ) diff --git a/internal/json/util_test.go b/internal/json/util_test.go index cb63151..6da1134 100644 --- a/internal/json/util_test.go +++ b/internal/json/util_test.go @@ -3,7 +3,7 @@ package json import ( "testing" - "github.com/arielsepton/provider-http/apis/request/v1alpha1" + "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" "github.com/google/go-cmp/cmp" ) diff --git a/internal/utils/set_status.go b/internal/utils/set_status.go index fa60b89..e0d12f9 100644 --- a/internal/utils/set_status.go +++ b/internal/utils/set_status.go @@ -3,7 +3,7 @@ package utils import ( "context" - httpClient "github.com/arielsepton/provider-http/internal/clients/http" + httpClient "github.com/crossplane-contrib/provider-http/internal/clients/http" "sigs.k8s.io/controller-runtime/pkg/client" ) diff --git a/internal/utils/set_status_test.go b/internal/utils/set_status_test.go index ac5eec8..9075051 100644 --- a/internal/utils/set_status_test.go +++ b/internal/utils/set_status_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - v1alpha1_desposible "github.com/arielsepton/provider-http/apis/desposiblerequest/v1alpha1" - v1alpha1_request "github.com/arielsepton/provider-http/apis/request/v1alpha1" - httpClient "github.com/arielsepton/provider-http/internal/clients/http" + v1alpha1_desposible "github.com/crossplane-contrib/provider-http/apis/desposiblerequest/v1alpha1" + v1alpha1_request "github.com/crossplane-contrib/provider-http/apis/request/v1alpha1" + httpClient "github.com/crossplane-contrib/provider-http/internal/clients/http" "github.com/pkg/errors" "github.com/crossplane/crossplane-runtime/pkg/test" diff --git a/package/crossplane.yaml b/package/crossplane.yaml index 3edbbe0..bf81511 100644 --- a/package/crossplane.yaml +++ b/package/crossplane.yaml @@ -4,7 +4,25 @@ metadata: name: provider-http annotations: meta.crossplane.io/maintainer: Crossplane Maintainers - meta.crossplane.io/source: github.com/arielsepton/provider-http + meta.crossplane.io/source: github.com/crossplane-contrib/provider-http meta.crossplane.io/license: Apache-2.0 meta.crossplane.io/description: | - A http that can be used to create Crossplane providers. + A Crossplane provider facilitating seamless integration of HTTP interactions. + + meta.crossplane.io/readme: | + `provider-http` is a Crossplane Provider designed to leverage HTTP interactions for effective resource management. + + ## Resources + + - **`DisposableRequest` Resource:** + - Enables one-time HTTP interactions. + + - **`Request` Resource:** + - Enables resource management through HTTP requests. + + Explore the available resources and their specifications in the [Docs](https://github.com/crossplane-contrib/provider-http/tree/main/resources-docs). + + ## Get Involved + + If you have any questions, encounter issues, or want to contribute, join our community discussions on [slack.crossplane.io](https://slack.crossplane.io). Feel free to create issues or contribute to the development at [crossplane-contrib/provider-http](https://github.com/crossplane-contrib/provider-http). +