Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
skydjol committed Nov 19, 2023
1 parent 4412991 commit aeea122
Show file tree
Hide file tree
Showing 96 changed files with 15,261 additions and 705 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ on:

env:
# Common versions
GO_VERSION: '1.19'
GOLANGCI_VERSION: 'v1.50.0'
GO_VERSION: '1.20'
GOLANGCI_VERSION: 'v1.53.3'
DOCKER_BUILDX_VERSION: 'v0.8.2'

# Common users. We can't run a step 'if secrets.XXX != ""' but we can run a
# step 'if env.XXX != ""', so we copy these to succinctly test whether
# credentials have been provided before trying to run steps that need them.
UPBOUND_MARKETPLACE_PUSH_ROBOT_USR: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
UPBOUND_MARKETPLACE_TOKEN: ${{ secrets.UPBOUND_MARKETPLACE_TOKEN }}
REGISTRY_ORGS: ${{ secrets.REGISTRY_ORGS }}
XPKG_REG_ORGS: ${{ secrets.XPKG_REG_ORGS }}
XPKG_REG_ORGS_NO_PROMOTE: ${{ secrets.XPKG_REG_ORGS_NO_PROMOTE }}

jobs:
detect-noop:
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/upbound/upjet-provider-template
local-prefixes: github.com/saagie/upjet-provider-ovh

gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
Expand Down
19 changes: 9 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
# ====================================================================================
# Setup Project

PROJECT_NAME ?= upjet-provider-template
PROJECT_REPO ?= github.com/upbound/$(PROJECT_NAME)
PROJECT_NAME ?= upjet-provider-ovh
PROJECT_REPO ?= github.com/saagie/$(PROJECT_NAME)

export TERRAFORM_VERSION ?= 1.2.1

export TERRAFORM_PROVIDER_SOURCE ?= hashicorp/null
export TERRAFORM_PROVIDER_REPO ?= https://github.com/hashicorp/terraform-provider-null
export TERRAFORM_PROVIDER_VERSION ?= 3.1.0
export TERRAFORM_PROVIDER_DOWNLOAD_NAME ?= terraform-provider-null
export TERRAFORM_PROVIDER_SOURCE ?= ovh/ovh
export TERRAFORM_PROVIDER_REPO ?= https://github.com/ovh/terraform-provider-ovh
export TERRAFORM_PROVIDER_VERSION ?= 0.35.0
export TERRAFORM_PROVIDER_DOWNLOAD_NAME ?= terraform-provider-ovh
export TERRAFORM_PROVIDER_DOWNLOAD_URL_PREFIX ?= https://releases.hashicorp.com/$(TERRAFORM_PROVIDER_DOWNLOAD_NAME)/$(TERRAFORM_PROVIDER_VERSION)
export TERRAFORM_NATIVE_PROVIDER_BINARY ?= terraform-provider-null_v3.1.0_x5
export TERRAFORM_DOCS_PATH ?= docs/resources

export TERRAFORM_NATIVE_PROVIDER_BINARY ?= terraform-provider-ovh_0.35.0_x5
export TERRAFORM_DOCS_PATH ?= website/docs/r

PLATFORMS ?= linux_amd64 linux_arm64

Expand Down Expand Up @@ -158,7 +157,7 @@ submodules:
run: go.build
@$(INFO) Running Crossplane locally out-of-cluster . . .
@# To see other arguments that can be provided, run the command with --help instead
UPBOUND_CONTEXT="local" $(GO_OUT_DIR)/provider --debug
UPBOUND_CONTEXT="local" $(GO_OUT_DIR)/provider --debug --enable-management-policies

# ====================================================================================
# End to End Testing
Expand Down
13 changes: 7 additions & 6 deletions OWNERS.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# OWNERS

This page lists all maintainers for **this** repository. Each repository in the [Upbound
organization](https://github.com/upbound/) will list their repository maintainers in their own
This page lists all maintainers for **this** repository. Each repository in the [Crossplane
organization](https://github.com/crossplane/) will list their repository maintainers in their own
`OWNERS.md` file.

Please see the Crossplane
[GOVERNANCE.md](https://github.com/crossplane/crossplane/blob/master/GOVERNANCE.md) for governance
guidelines and responsibilities for the steering committee and maintainers.

## Maintainers

* Alper Ulucinar <alper@upbound.com> ([ulucinar](https://github.com/ulucinar))
* Sergen Yalcin <sergen@upbound.com> ([sergenyalcin](https://github.com/sergenyalcin))

See [CODEOWNERS](./CODEOWNERS) for automatic PR assignment.
* Maintainer 1 <maintainer1@acme.org> ([maintainer1](https://github.com/maintainer1))
* Maintainer 2 <maintainer2@acme.org> ([maintainer1](https://github.com/maintainer2))
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Provider Template
# Provider Ovh

`upjet-provider-template` is a [Crossplane](https://crossplane.io/) provider that
`provider-ovh` is a [Crossplane](https://crossplane.io/) provider that
is built using [Upjet](https://github.com/crossplane/upjet) code
generation tools and exposes XRM-conformant managed resources for the
Template API.
Ovh API.

## Getting Started

Install the provider by using the following command after changing the image tag
to the [latest release](https://marketplace.upbound.io/providers/upbound/upjet-provider-template):
to the [latest release](https://marketplace.upbound.io/providers/upjet-provider-ovh):
```
up ctp provider install upbound/upjet-provider-template:v0.1.0
up ctp provider install upjet-provider-ovh:v0.1.0
```

Alternatively, you can use declarative installation:
Expand All @@ -19,15 +19,15 @@ cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: upjet-provider-template
name: provider-ovh
spec:
package: upbound/upjet-provider-template:v0.1.0
package: upjet-provider-ovh:v0.1.0
EOF
```

Notice that in this example Provider resource is referencing ControllerConfig with debug enabled.

You can see the API reference [here](https://doc.crds.dev/github.com/upbound/upjet-provider-template).
You can see the API reference [here](https://doc.crds.dev/github.com/saagie/upjet-provider-ovh).

## Developing

Expand Down Expand Up @@ -57,4 +57,4 @@ make build
## Report a Bug

For filing bugs, suggesting improvements, or requesting new features, please
open an [issue](https://github.com/upbound/upjet-provider-template/issues).
open an [issue](https://github.com/saagie/upjet-provider-ovh/issues).
Loading

0 comments on commit aeea122

Please sign in to comment.