Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
mbbush committed Dec 6, 2023
2 parents d41950c + 1cdb099 commit 0549ec7
Show file tree
Hide file tree
Showing 1,320 changed files with 42,209 additions and 6,754 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 10m
deadline: 20m

skip-files:
- "zz_\\..+\\.go$"
Expand Down
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export GOPRIVATE = github.com/upbound/*
GO_REQUIRED_VERSION ?= 1.19
# GOLANGCILINT_VERSION is inherited from build submodule by default.
# Uncomment below if you need to override the version.
# GOLANGCILINT_VERSION ?= 1.54.0
GOLANGCILINT_VERSION ?= 1.55.2

# SUBPACKAGES ?= $(shell find cmd/provider -type d -maxdepth 1 -mindepth 1 | cut -d/ -f3)
SUBPACKAGES ?= monolith
Expand All @@ -65,7 +65,7 @@ export SUBPACKAGES := $(SUBPACKAGES)
# Setup Kubernetes tools

KIND_VERSION = v0.15.0
UP_VERSION = v0.19.2
UP_VERSION = v0.20.0
UP_CHANNEL = stable
UPTEST_VERSION = v0.6.1

Expand Down Expand Up @@ -217,10 +217,17 @@ local-deploy: build-provider.monolith local-deploy.monolith
# - UPTEST_EXAMPLE_LIST, a comma-separated list of examples to test
# - UPTEST_DATASOURCE_PATH, see https://github.com/upbound/uptest#injecting-dynamic-values-and-datasource
family-e2e:
@$(INFO) Removing everything under $(XPKG_OUTPUT_DIR) and $(OUTPUT_DIR)/cache...
@rm -fR $(XPKG_OUTPUT_DIR)
@rm -fR $(OUTPUT_DIR)/cache
@(INSTALL_APIS=""; \
for m in $$(tr ',' ' ' <<< $${UPTEST_EXAMPLE_LIST}); do \
$(INFO) Processing the example manifest "$${m}"; \
for api in $$(sed -nE 's/^apiVersion: *(.+)/\1/p' "$${m}" | cut -d. -f1); do \
if [[ $${api} == "v1" ]]; then \
$(INFO) v1 is not a valid provider. Skipping...; \
continue; \
fi; \
if [[ $${INSTALL_APIS} =~ " $${api} " ]]; then \
$(INFO) Resource provider $(PROJECT_NAME)-$${api} is already installed. Skipping...; \
continue; \
Expand Down
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,30 @@ For the general contribution guide, see [Upjet Contribution Guide](https://githu

If you'd like to learn how to use Upjet, see [Usage Guide](https://github.com/crossplane/upjet/tree/main/docs).

To build this provider locally and run it in a local Kubernetes cluster, run the
following to build the family provider (`config`) and `ec2`:

```shell
DOCKERHUB_ORG=<your-docker-name>
BUILD_ARGS="--load" XPKG_REG_ORGS_NO_PROMOTE="" XPKG_REG_ORGS="index.docker.io/$DOCKERHUB_ORG" make build.all publish BRANCH_NAME=main SUBPACKAGES="config ec2"
```

The `BRANCH_NAME` set to `main` (even though you might be on another branch) will
let make publish the images to your docker hub account.

To install the provider `provider-aws-ec2` into a local Kubernetes cluster, apply:

```yaml
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-aws-ec2
spec:
package: docker.io/<your-docker-name>/provider-aws-ec2:<the-version-taken-from-the-output-of-the-previous-command>
```
Use `monolith` instead of `ec2` to build and publish the monolithic provider.

### Add a New Resource

Follow the guide [here](https://github.com/crossplane/upjet/blob/v0.10.0/docs/add-new-resource-short.md).
Expand Down
61 changes: 61 additions & 0 deletions apis/accessanalyzer/v1beta1/zz_generated_terraformed.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions apis/account/v1beta1/zz_generated_terraformed.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 61 additions & 0 deletions apis/acm/v1beta1/zz_generated_terraformed.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0549ec7

Please sign in to comment.