Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use custom renovate config maps for additional renovate options #391

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rcerven
Copy link
Contributor

@rcerven rcerven commented Jan 21, 2025

namespace one will be used if there isn't component's annotation with specific config map

KONFLUX-4372

Checklist:

  • PR has reference to the issue(s) it resolves
  • Write / update unit tests
  • Write / update integration (envtest) tests
  • Ensure there is an issue for e2e tests if needed
  • Ensure make test passes
  • Ensure test coverage hasn't decreased
  • Test code changes manually
  • Update readme and documentation
  • Write PR description that highlights overall changes and add usage examples if applicable

@rcerven rcerven requested a review from a team as a code owner January 21, 2025 20:20
controllers/renovate_util.go Fixed Show fixed Hide fixed
controllers/renovate_util.go Fixed Show fixed Hide fixed
@rcerven rcerven force-pushed the renovateoptions branch 2 times, most recently from 34ef12b to db862a2 Compare January 21, 2025 22:00
@tkdchen
Copy link
Contributor

tkdchen commented Jan 22, 2025

What is the "namespace one"?

@rcerven
Copy link
Contributor Author

rcerven commented Jan 22, 2025

What is the "namespace one"?

NamespaceWideRenovateConfigName = "namespace-wide-nudging-renovate-config"

namespace one will be used if there isn't component's annotation with
specific config map

KONFLUX-4372
KONFLUX-4980

Signed-off-by: Robert Cerven <[email protected]>
Enabled: true,
FollowTag: buildResult.BuiltImageTag,
CommitMessagePrefix: target.ComponentCustomRenovateOptions.CommitMessagePrefix,
CommitMessageSuffix: fmt.Sprintf(", image created from '%s' \n %s", gitRepoAtShaAnnotation, target.ComponentCustomRenovateOptions.CommitMessageSuffix),
Copy link
Contributor

@chmeliik chmeliik Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cross-posting from Slack - can we break up the commit message to multiple lines to avoid breaking gitlint users? Something like this?

<Normal commit message>

Image created from:
<git repo @ commit sha>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well renovate is ignoring even new line which I have there, I think it basically works just with single line commit

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we want CommitBody rather than CommitMessageSuffix? https://docs.renovatebot.com/configuration-templates/#commit-message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants