Skip to content

Commit 59205d7

Browse files
committed
docs: fix manifestPatches field name
1 parent 628476c commit 59205d7

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

docs/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ spec:
778778
## Patching provider manifests
779779

780780
Provider manifests can be patched using JSON merge patches. This can be useful when you need to modify the provider manifests that are fetched from the repository. In order to provider
781-
manifests `spec.ResourcePatches` has to be used where an array of patches can be specified:
781+
manifests `spec.ManifestPatches` has to be used where an array of patches can be specified:
782782

783783
```yaml
784784
---
@@ -788,13 +788,13 @@ metadata:
788788
name: cluster-api
789789
namespace: capi-system
790790
spec:
791-
resourcePatches:
791+
manifestPatches:
792792
- |
793-
apiVersion: v1
794-
kind: Service
795-
metadata:
796-
labels:
797-
test-label: test-value
793+
apiVersion: v1
794+
kind: Service
795+
metadata:
796+
labels:
797+
test-label: test-value
798798
```
799799

800800
More information about JSON merge patches can be found here https://datatracker.ietf.org/doc/html/rfc7396

docs/book/src/03_topics/02_configuration/04_patching-provider-manifests.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Patching provider manifests
22

33
Provider manifests can be patched using JSON merge patches. This can be useful when you need to modify the provider manifests that are fetched from the repository. In order to provider
4-
manifests `spec.ResourcePatches` has to be used where an array of patches can be specified:
4+
manifests `spec.ManifestPatches` has to be used where an array of patches can be specified:
55

66
```yaml
77
---
@@ -11,13 +11,13 @@ metadata:
1111
name: cluster-api
1212
namespace: capi-system
1313
spec:
14-
resourcePatches:
14+
manifestPatches:
1515
- |
16-
apiVersion: v1
17-
kind: Service
18-
metadata:
19-
labels:
20-
test-label: test-value
16+
apiVersion: v1
17+
kind: Service
18+
metadata:
19+
labels:
20+
test-label: test-value
2121
```
2222
2323
More information about JSON merge patches can be found here <https://datatracker.ietf.org/doc/html/rfc7396>

0 commit comments

Comments
 (0)