|
1 |
| -The `crossplane` manager has no `fileMatch` default patterns, so it won't match any files until you configure it with a pattern. |
2 |
| -This is because there is no commonly accepted file/directory naming convention for crossplane YAML files and we don't want to check every single `*.yaml` file in repositories just in case any of them have Crossplane Packages definitions: Configurations, Providers, Functions. |
| 1 | +To use the `crossplane` manager you must set your own `fileMatch` pattern. |
| 2 | +The `crossplane` manager has no default `fileMatch` pattern, because there is no common filename or directory name convention for Crossplane YAML files. |
| 3 | +By setting your own `fileMatch` Renovate avoids having to check each `*.yaml` file in a repository for a Crossplane Package definition. |
3 | 4 |
|
4 |
| -If most `.yaml` files in your repository are Crossplane ones, then you could add this to your config: |
| 5 | +The `crossplane` manager supports these `depType`s: |
5 | 6 |
|
6 |
| -```json |
| 7 | +- `configuration` |
| 8 | +- `function` |
| 9 | +- `provider` |
| 10 | + |
| 11 | +You can use these `depType`'s to control which dependencies Renovate will upgrade. |
| 12 | + |
| 13 | +If you need to change the versioning format, read the [versioning](../../../modules/versioning.md) documentation to learn more. |
| 14 | + |
| 15 | +Some configuration examples: |
| 16 | + |
| 17 | +```json title="If most .yaml files are for Crossplane" |
7 | 18 | {
|
8 | 19 | "crossplane": {
|
9 | 20 | "fileMatch": ["\\.yaml$"]
|
10 | 21 | }
|
11 | 22 | }
|
12 | 23 | ```
|
13 | 24 |
|
14 |
| -If instead you have them all inside a `packages/` directory, you would add this: |
15 |
| - |
16 |
| -```json |
| 25 | +```json title="For Crossplane files in a packages/ directory" |
17 | 26 | {
|
18 | 27 | "crossplane": {
|
19 | 28 | "fileMatch": ["packages/.+\\.yaml$"]
|
20 | 29 | }
|
21 | 30 | }
|
22 | 31 | ```
|
23 | 32 |
|
24 |
| -Or if it's only a single file then something like this: |
25 |
| - |
26 |
| -```json |
| 33 | +```json title="For a single Crossplane file" |
27 | 34 | {
|
28 | 35 | "crossplane": {
|
29 | 36 | "fileMatch": ["^config/provider\\.yaml$"]
|
30 | 37 | }
|
31 | 38 | }
|
32 | 39 | ```
|
33 |
| - |
34 |
| -If you need to change the versioning format, read the [versioning](https://docs.renovatebot.com/modules/versioning/) documentation to learn more. |
35 |
| - |
36 |
| -The `crossplane` manager has three `depType`s to allow a fine-grained control of which dependencies are upgraded: |
37 |
| - |
38 |
| -- `configuration` |
39 |
| -- `function` |
40 |
| -- `provider` |
0 commit comments