Skip to content

Commit 488419f

Browse files
authored
Merge pull request #215 from rcerven/renovate_customize
document specifying customized options for the nudging
2 parents 44dc036 + 0937ed9 commit 488419f

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

docs/modules/ROOT/pages/how-tos/configuring/component-nudges.adoc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,48 @@ NOTE: You can also use **kubectl edit** to add the build-nudges-ref instead of p
109109

110110
* Ensure that the existing references in the repositories of your components are correct.
111111
* Try running the necessary commands again, and ensure you have the correct syntax.
112+
113+
== Customizing nudging PRs
114+
Nudging feature is using renovate `https://docs.renovatebot.com/` to actually do the job,
115+
for which you can customize some options specified in ConfigMap in your namespace.
116+
117+
Only following options are possible to customize via ConfigMap (for more details about those options refer to `https://docs.renovatebot.com/`.):
118+
* automerge
119+
* automergeType
120+
* commitMessagePrefix
121+
* commitMessageSuffix
122+
* fileMatch,omitempty
123+
* ignoreTests
124+
* platformAutomerge
125+
126+
127+
.There are two possible ways to customize:
128+
. Create namespace wide config in ConfigMap named `namespace-wide-nudging-renovate-config` which will be used for all nudged components in your namespace,
129+
unless component specific config exists.
130+
. Create config for specific nudged component in ConfigMap in your namespace and add annotation `build.appstudio.openshift.io/nudge_renovate_config_map` to the component with value of ConfigMap name and
131+
it will be used for the component in your namespace.
132+
133+
Both ConfigMaps have the same format, where keys are allowed options in the list above, values
134+
are always strings, so in case option is boolean, you will have to specify "true" or "false".
135+
136+
When you have either of ConfigMaps, nudging default renovate config will use additionally options from your ConfigMap.
137+
138+
.ConfigMap Example
139+
140+
[source,yaml]
141+
--
142+
---
143+
apiVersion: appstudio.redhat.com/v1alpha1
144+
kind: ConfigMap
145+
metadata:
146+
name: namespace-wide-nudging-renovate-config
147+
namespace: <namespace>
148+
data:
149+
automerge: "true"
150+
automergeType: "pr"
151+
commitMessagePrefix: "custom namespace prefix message"
152+
commitMessageSuffix: "custom namespace suffix message"
153+
fileMatch: ".*Dockerfile.*, .*.yaml, .*Containerfile.*"
154+
ignoreTests: "true"
155+
platformAutomerge: "true"
156+
--

0 commit comments

Comments
 (0)