Skip to content

Commit

Permalink
Add: configure Renovate
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
  • Loading branch information
nlamirault committed Mar 11, 2021
1 parent 6d69e5e commit 0801707
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 38 deletions.
52 changes: 52 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"extends": [
"config:base",
":gitSignOff"
],
"enabled": true,
"timezone": "Europe/Paris",
"dependencyDashboard": true,
"dependencyDashboardTitle": "Renovate Dashboard",
// "gitAuthor": "Nicolas Lamirault <nlamirault@users.noreply.github.com>",
// "commitBody": "Signed-off-by: Nicolas Lamirault <nlamirault@users.noreply.github.com>",
// Do not notify on closed unmerged PRs
"suppressNotifications": ["prIgnoreNotification"],
// Do not rebase PRs
"rebaseWhen": "conflicted",
"assignees": ["@nlamirault"],
"reviewersFromCodeOwners": true,
"packageRules": [
// Labels for Terraform
{
"datasources": ["terraform", "terraform-provider", "terraform-module"],
"updateTypes": ["major"],
"labels": ["area/renovate", "dependency/terraform", "priority/high", "size/xs"]
},
{
"datasources": ["terraform", "terraform-provider", "terraform-module"],
"updateTypes": ["minor"],
"labels": ["area/renovate", "dependency/terraform", "priority/medium", "size/xs"]
},
{
"datasources": ["terraform", "terraform-provider", "terraform-module"],
"updateTypes": ["patch"],
"labels": ["area/renovate", "dependency/terraform", "priority/low", "size/xs"]
},
// Labels for Terraform-version
{
"matchPackageNames": ["terraform-version"],
"updateTypes": ["major"],
"labels": ["area/renovate", "dependency/terraform", "priority/high", "size/xs"]
},
{
"matchPackageNames": ["terraform-version"],
"updateTypes": ["minor"],
"labels": ["area/renovate", "dependency/terraform", "priority/medium", "size/xs"]
},
{
"matchPackageNames": ["terraform-version"],
"updateTypes": ["patch"],
"labels": ["area/renovate", "dependency/terraform", "priority/low", "size/xs"]
},
]
}
40 changes: 2 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,6 @@

![Tfsec](https://github.com/nlamirault/terraform-google-velero/workflows/Tfsec/badge.svg)

## Terraform versions

Use Terraform `>= 0.14.0` minimum and Terraform Provider Google `3.54+`.

These types of resources are supported:

* [google_service_account](https://www.terraform.io/docs/providers/google/r/google_service_account.html)
* [google_kms_key_ring](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/kms_key_ring)
* [google_kms_crypto_key](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/kms_crypto_key)
* [google_kms_crypto_key_iam_binding](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_kms_crypto_key_iam)
* [google_storage_bucket](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket)
* [google_project_iam_custom_role](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_project_iam_custom_role)
* [google_project_iam_binding](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_project_iam)
* [google_storage_bucket_iam_member](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket_iam#google_storage_bucket_iam_member)
* [google_service_account_iam_member](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_service_account_iam#google_service_account_iam_member)

## Usage

```hcl
Expand Down Expand Up @@ -64,26 +48,6 @@ keyring_location = "europe-west1"

## Documentation

### Providers

| Name | Version |
|------|---------|
| google | 3.54.0 |

### Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:-----:|
| bucket\_labels | Map of labels to apply to the bucket | `map(string)` | <pre>{<br> "made-by": "terraform"<br>}</pre> | no |
| bucket\_location | The bucket location | `string` | n/a | yes |
| bucket\_storage\_class | Bucket storage class. | `string` | `"MULTI_REGIONAL"` | no |
| keyring\_location | The KMS keyring location | `string` | n/a | yes |
| namespace | The Kubernetes namespace | `string` | n/a | yes |
| project | The project in which the resource belongs | `string` | n/a | yes |
| service\_account | The Kubernetes service account | `string` | n/a | yes |

### Outputs
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

| Name | Description |
|------|-------------|
| service\_account | Service Account for Velero |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

0 comments on commit 0801707

Please sign in to comment.