Skip to content

Commit 133fc7b

Browse files
author
Julian Wefers
committed
fix references to upstream to make fork usable
1 parent 85f3aeb commit 133fc7b

85 files changed

Lines changed: 267 additions & 403 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ needs to tested and shown to be correct. Briefly describe the testing that has
3434
already been done or which is planned for this change.
3535
-->
3636

37-
[contribution process]: https://github.com/crossplane/upjet/blob/main/CONTRIBUTING.md
37+
[contribution process]: https://github.com/jwefers/upjet/blob/main/CONTRIBUTING.md

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ linters-settings:
4040
sections:
4141
- standard
4242
- default
43-
- prefix(github.com/crossplane/upjet)
43+
- prefix(github.com/jwefers/upjet)
4444
- blank
4545
- dot
4646

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ change in Upjet, the best way to test it is to use a `replace` statement in the
9191
`go.mod` file of the provider to use your local version as shown below.
9292

9393
```
94-
replace github.com/crossplane/upjet => ../upjet
94+
replace github.com/jwefers/upjet => ../upjet
9595
```
9696

9797
Once you complete your change, make sure to run `make reviewable` before opening
@@ -104,7 +104,7 @@ in your provider to point to a certain commit in your branch of the provider tha
104104
you opened a PR for.
105105

106106
```
107-
replace github.com/crossplane/upjet => github.com/<your user name>/upjet <hash of the last commit from your branch>
107+
replace github.com/jwefers/upjet => github.com/<your user name>/upjet <hash of the last commit from your branch>
108108
```
109109

110110
[Slack]: https://crossplane.slack.com/archives/C01TRKD4623

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ SPDX-License-Identifier: CC-BY-4.0
88

99
<div align="center">
1010

11-
![CI](https://github.com/crossplane/upjet/workflows/CI/badge.svg)
12-
[![GitHub release](https://img.shields.io/github/release/crossplane/upjet/all.svg)](https://github.com/crossplane/upjet/releases)
13-
[![Go Report Card](https://goreportcard.com/badge/github.com/crossplane/upjet)](https://goreportcard.com/report/github.com/crossplane/upjet)
14-
[![Contributors](https://img.shields.io/github/contributors/crossplane/upjet)](https://github.com/crossplane/upjet/graphs/contributors)
11+
![CI](https://github.com/jwefers/upjet/workflows/CI/badge.svg)
12+
[![GitHub release](https://img.shields.io/github/release/jwefers/upjet/all.svg)](https://github.com/jwefers/upjet/releases)
13+
[![Go Report Card](https://goreportcard.com/badge/github.com/jwefers/upjet)](https://goreportcard.com/report/github.com/jwefers/upjet)
14+
[![Contributors](https://img.shields.io/github/contributors/jwefers/upjet)](https://github.com/jwefers/upjet/graphs/contributors)
1515
[![Slack](https://img.shields.io/badge/Slack-4A154B?logo=slack)](https://crossplane.slack.com/archives/C05T19TB729)
1616
[![X (formerly Twitter) Follow](https://img.shields.io/twitter/follow/crossplane_io)](https://twitter.com/crossplane_io)
1717

@@ -38,7 +38,7 @@ directory.
3838
## Report a Bug
3939

4040
For filing bugs, suggesting improvements, or requesting new features, please
41-
open an [issue](https://github.com/crossplane/upjet/issues).
41+
open an [issue](https://github.com/jwefers/upjet/issues).
4242

4343
## Contact
4444

cmd/resolver/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/spf13/afero"
1414
"sigs.k8s.io/controller-runtime/pkg/log/zap"
1515

16-
"github.com/crossplane/upjet/v2/pkg/transformers"
16+
"github.com/jwefers/upjet/v2/pkg/transformers"
1717
)
1818

1919
func main() {

cmd/scraper/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/alecthomas/kingpin/v2"
1212

13-
"github.com/crossplane/upjet/v2/pkg/registry"
13+
"github.com/jwefers/upjet/v2/pkg/registry"
1414
)
1515

1616
func main() {

docs/adding-new-resource.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ The `aws_redshift_endpoint_access` resource is an SDK resource, go to
6161
```
6262
- If there is no group, continue by adding the group name as a comment line.
6363

64-
- For Framework resources, you will see a comment line like
64+
- For Framework resources, you will see a comment line like
6565
`// @FrameworkResource` in the source code. If the resource is a Framework
6666
resource, add the external-name config to the
6767
`TerraformPluginFrameworkExternalNameConfigs` table.
6868

6969
*Note: Look at the `config/externalnamenottested.go` file and check if there is
7070
a configuration for the resource and remove it from there.*
7171

72-
5. Run `make submodules` to initialize the build submodule and run
72+
5. Run `make submodules` to initialize the build submodule and run
7373
`make generate`. When the command process is completed, you will see that the
7474
controller, CRD, generated example, and other necessary files for the resource
7575
have been created and modified.
@@ -131,7 +131,7 @@ X. Many of the generated examples include these dependencies. However, in some
131131
cases, there may be missing dependencies. In these cases, please add the
132132
relevant dependencies to your example manifest. This is important both for you
133133
to pass the tests and to provide the correct manifests.
134-
```
134+
```
135135

136136
- In our case, the generated example has required fields
137137
`spec.forProvider.clusterIdentifierSelector` and
@@ -229,7 +229,7 @@ an end-to-end pipeline during the resource configuration process. Together with
229229
the example manifest generation tool, it allows us to avoid manual interventions
230230
and shortens testing processes.
231231

232-
## Automated Tests - Uptest
232+
## Automated Tests - Uptest
233233

234234
After providing all the required fields of the resource we added and added
235235
dependent resources, if any, we can start with automatic testing. To trigger
@@ -633,7 +633,7 @@ the resource and the import instructions read as the following:
633633
> GKE clusters can be imported using the project, location, and name.
634634
> If the project is omitted, the default provider value will be used.
635635
> Examples:
636-
>
636+
>
637637
> ```console
638638
> $ terraform import google_container_cluster.mycluster projects/my-gcp-project/locations/us-east1-a/clusters/my-cluster
639639
> $ terraform import google_container_cluster.mycluster my-gcp-project/us-east1-a/my-cluster
@@ -721,15 +721,15 @@ detailed guide could also help you.
721721
[Terraform v1.5.5]: https://developer.hashicorp.com/terraform/install
722722
[goimports]: https://pkg.go.dev/golang.org/x/tools/cmd/goimports
723723
[provider-guide]: https://github.com/upbound/upjet/blob/main/docs/generating-a-provider.md
724-
[config-guide]: https://github.com/crossplane/upjet/blob/main/docs/configuring-a-resource.md
724+
[config-guide]: https://github.com/jwefers/upjet/blob/main/docs/configuring-a-resource.md
725725
[`aws_redshift_endpoint_access`]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/redshift_endpoint_access
726726
[Import]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/redshift_endpoint_access#import
727727
[External Name Cases]: #external-name-cases
728728
[source code]: https://github.com/hashicorp/terraform-provider-aws/blob/f222bd785228729dc1f5aad7d85c4d04a6109075/internal/service/redshift/endpoint_access.go#L24
729729
[cluster_identifier]: https://registry.terraform.io/providers/hashicorp/aws/5.35.0/docs/resources/redshift_endpoint_access#cluster_identifier
730730
[subnet_group_name]: https://registry.terraform.io/providers/hashicorp/aws/5.35.0/docs/resources/redshift_endpoint_access#subnet_group_name
731-
[automatically]: https://github.com/crossplane/upjet/blob/main/docs/configuring-a-resource.md#auto-cross-resource-reference-generation
732-
[Cross Resource Referencing]: https://github.com/crossplane/upjet/blob/main/docs/configuring-a-resource.md#cross-resource-referencing
731+
[automatically]: https://github.com/jwefers/upjet/blob/main/docs/configuring-a-resource.md#auto-cross-resource-reference-generation
732+
[Cross Resource Referencing]: https://github.com/jwefers/upjet/blob/main/docs/configuring-a-resource.md#cross-resource-referencing
733733
[a comment]: https://github.com/crossplane-contrib/provider-upjet-aws/pull/1314#issuecomment-2120539099
734734
[new commit]: https://github.com/crossplane-contrib/provider-upjet-aws/pull/1314/commits/b76e566eea5bd53450f2175e7e5a6e274934255b
735735
[Create a Kubernetes secret with the AWS credentials]: https://docs.crossplane.io/latest/getting-started/provider-aws/#create-a-kubernetes-secret-with-the-aws-credentials

docs/adding-support-for-management-policies.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ directory on your local machine.
1919
go mod tidy
2020
# Generate getters/setters for management policies
2121
make generate
22-
22+
2323
# Consume the latest crossplane-runtime:
2424
go get github.com/crossplane/crossplane-runtime@main
2525
go mod tidy
@@ -105,7 +105,7 @@ directory on your local machine.
105105
106106
```bash
107107
# Bump to the latest upjet
108-
go get github.com/crossplane/upjet@main
108+
go get github.com/jwefers/upjet@main
109109
go mod tidy
110110
```
111111

docs/configuring-a-resource.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ conditions:
116116

117117
```go
118118
import (
119-
"github.com/crossplane/upjet/v2/pkg/config"
119+
"github.com/jwefers/upjet/v2/pkg/config"
120120
...
121121
)
122122

@@ -143,7 +143,7 @@ also omit `bucket` and `bucket_prefix` arguments from the spec with
143143

144144
```go
145145
import (
146-
"github.com/crossplane/upjet/v2/pkg/config"
146+
"github.com/jwefers/upjet/v2/pkg/config"
147147
...
148148
)
149149

@@ -175,7 +175,7 @@ Here, we can just use [IdentifierFromProvider] configuration:
175175

176176
```go
177177
import (
178-
"github.com/crossplane/upjet/v2/pkg/config"
178+
"github.com/jwefers/upjet/pkg/v2/config"
179179
...
180180
)
181181

@@ -206,7 +206,7 @@ this id back (`GetIDFn`).
206206

207207
```go
208208
import (
209-
"github.com/crossplane/upjet/v2/pkg/config"
209+
"github.com/jwefers/upjet/pkg/v2/config"
210210
...
211211
)
212212

@@ -653,7 +653,7 @@ late-initialization behaviour. Thus, Upjet provides an extensible
653653
behaviour.
654654

655655
The associated resource struct is defined
656-
[here](https://github.com/crossplane/upjet/blob/c9e21387298d8ed59fcd71c7f753ec401a3383a5/pkg/config/resource.go#L91)
656+
[here](https://github.com/jwefers/upjet/blob/c9e21387298d8ed59fcd71c7f753ec401a3383a5/pkg/config/resource.go#L91)
657657
as follows:
658658

659659
```go
@@ -869,17 +869,17 @@ type Initializer interface {
869869
So, an interface must be passed to the related configuration field for adding
870870
initializers for a resource.
871871

872-
[Upjet]: https://github.com/crossplane/upjet
872+
[Upjet]: https://github.com/jwefers/upjet
873873
[External name]: #external-name
874874
[Cross Resource Referencing]: #cross-resource-referencing
875875
[Additional Sensitive Fields and Custom Connection Details]: #additional-sensitive-fields-and-custom-connection-details
876876
[Late Initialization Behavior]: #late-initialization-configuration
877877
[Overriding Terraform Resource Schema]: #overriding-terraform-resource-schema
878878
[the external name documentation]: https://docs.crossplane.io/master/concepts/managed-resources/#naming-external-resources
879879
[import section]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_access_key#import
880-
[the types for the External Name configuration]: https://github.com/crossplane/upjet/blob/main/pkg/config/resource.go#L68
880+
[the types for the External Name configuration]: https://github.com/jwefers/upjet/blob/main/pkg/config/resource.go#L68
881881
[aws_iam_user]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_user
882-
[NameAsIdentifier]: https://github.com/crossplane/upjet/blob/main/pkg/config/externalname.go#L28
882+
[NameAsIdentifier]: https://github.com/jwefers/upjet/blob/main/pkg/config/externalname.go#L28
883883
[aws_s3_bucket]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket
884884
[import section of s3 bucket]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#import
885885
[bucket]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#bucket
@@ -888,20 +888,20 @@ initializers for a resource.
888888
[import section of aws_vpc]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#import
889889
[arguments list]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#argument-reference
890890
[example usages]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#example-usage
891-
[IdentifierFromProvider]: https://github.com/crossplane/upjet/blob/main/pkg/config/externalname.go#L42
891+
[IdentifierFromProvider]: https://github.com/jwefers/upjet/blob/main/pkg/config/externalname.go#L42
892892
[a similar identifier]: https://www.terraform.io/docs/glossary#id
893893
[import section of azurerm_sql_server]: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/sql_server#import
894894
[handle dependencies]: https://docs.crossplane.io/master/concepts/managed-resources/#referencing-other-resources
895895
[user]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_access_key#user
896896
[generate reference resolution methods]: https://github.com/crossplane/crossplane-tools/pull/35
897-
[configuration]: https://github.com/crossplane/upjet/blob/942508c5370a697b1cb81d074933ba75d8f1fb4f/pkg/config/resource.go#L172
897+
[configuration]: https://github.com/jwefers/upjet/blob/942508c5370a697b1cb81d074933ba75d8f1fb4f/pkg/config/resource.go#L172
898898
[iam_access_key]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_access_key#argument-reference
899899
[kms key]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ebs_volume#kms_key_id
900900
[connection details]: https://docs.crossplane.io/master/concepts/managed-resources/#writeconnectionsecrettoref
901901
[id]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_access_key#id
902902
[secret]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_access_key#secret
903-
[`external.Observe`]: https://github.com/crossplane/upjet/blob/main/pkg/controller/external.go#L175
904-
[late-initialization customization API]: https://github.com/crossplane/upjet/blob/main/pkg/resource/lateinit.go#L45
903+
[`external.Observe`]: https://github.com/jwefers/upjet/blob/main/pkg/controller/external.go#L175
904+
[late-initialization customization API]: https://github.com/jwefers/upjet/blob/main/pkg/resource/lateinit.go#L45
905905
[`address_prefix`]: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet#address_prefix
906906
[Terraform schema of the resource]: https://github.com/hashicorp/terraform-plugin-sdk/blob/e3325b095ef501cf551f7935254ce942c44c1af0/helper/schema/schema.go#L34
907907
[Type]: https://github.com/hashicorp/terraform-plugin-sdk/blob/e3325b095ef501cf551f7935254ce942c44c1af0/helper/schema/schema.go#L52
@@ -914,8 +914,8 @@ initializers for a resource.
914914
[AWS region]: https://github.com/crossplane-contrib/provider-upjet-aws/blob/199dbf93b8c67632db50b4f9c0adbd79021146a3/config/overrides.go#L42
915915
[this figure]: ../docs/images/upjet-externalname.png
916916
[Initializers]: #initializers
917-
[InitializerFns]: https://github.com/crossplane/upjet/blob/92d1af84d24241bef08e6b4a2cfe1ab66a93308a/pkg/config/resource.go#L427
918-
[NewInitializerFn]: https://github.com/crossplane/upjet/blob/92d1af84d24241bef08e6b4a2cfe1ab66a93308a/pkg/config/resource.go#L265
917+
[InitializerFns]: https://github.com/jwefers/upjet/blob/92d1af84d24241bef08e6b4a2cfe1ab66a93308a/pkg/config/resource.go#L427
918+
[NewInitializerFn]: https://github.com/jwefers/upjet/blob/92d1af84d24241bef08e6b4a2cfe1ab66a93308a/pkg/config/resource.go#L265
919919
[crossplane-runtime]: https://github.com/crossplane/crossplane-runtime/blob/428b7c3903756bb0dcf5330f40298e1fa0c34301/pkg/reconciler/managed/reconciler.go#L138
920920
[tagging convention]: https://github.com/crossplane/crossplane/blob/60c7df9/design/one-pager-managed-resource-api-design.md#external-resource-labeling
921921
[Naming Conventions - One Pager Managed Resource API Design]: https://github.com/crossplane/crossplane/blob/main/design/one-pager-managed-resource-api-design.md#naming-conventions

docs/generating-a-provider.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ variables in the `Makefile`:
4545
|`TERRAFORM_PROVIDER_DOWNLOAD_NAME` | The name of the provider in the [Terraform registry](https://releases.hashicorp.com/) |
4646
|`TERRAFORM_NATIVE_PROVIDER_BINARY` | The name of the binary in the Terraform provider. This follows the pattern `terraform-provider-{provider name}_v{provider version}`. |
4747
|`TERRAFORM_DOCS_PATH` | The relative path, from the root of the repository, where the provider resource documentation exist. |
48-
48+
4949
For example, for the [Terraform GitHub provider], the variables are:
5050

5151
```makefile
@@ -126,7 +126,7 @@ variables in the `Makefile`:
126126
- Create custom configuration directory for whole repository group
127127

128128
```bash
129-
mkdir config/repository
129+
mkdir config/repository
130130
```
131131

132132
- Create custom configuration directory for whole branch group
@@ -141,7 +141,7 @@ variables in the `Makefile`:
141141
cat <<EOF > config/repository/config.go
142142
package repository
143143

144-
import "github.com/crossplane/upjet/v2/pkg/config"
144+
import "github.com/jwefers/upjet/pkg/v2/config"
145145

146146
// Configure configures individual resources by adding custom ResourceConfigurators.
147147
func Configure(p *config.Provider) {
@@ -163,7 +163,7 @@ variables in the `Makefile`:
163163
cat <<EOF > config/branch/config.go
164164
package branch
165165

166-
import "github.com/crossplane/upjet/v2/pkg/config"
166+
import "github.com/jwefers/upjet/pkg/v2/config"
167167

168168
func Configure(p *config.Provider) {
169169
p.AddResourceConfigurator("github_branch", func(r *config.Resource) {

0 commit comments

Comments
 (0)