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

allow custom user renovate configs, in config maps, #372

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

rcerven
Copy link
Contributor

@rcerven rcerven commented Nov 13, 2024

there can be one global one for all components, and also custom config for specific components

we are also now creating renovate config in json format

STONEBLD-2916

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 changed the title allow custom user renovate configs, in config maps, [WIP] allow custom user renovate configs, in config maps, Nov 13, 2024
@rcerven rcerven force-pushed the renovatecustomconfig branch 2 times, most recently from 1e6cad7 to 160da4d Compare November 14, 2024 20:31
@rcerven rcerven changed the title [WIP] allow custom user renovate configs, in config maps, allow custom user renovate configs, in config maps, Nov 14, 2024
controllers/renovate_util.go Show resolved Hide resolved
controllers/renovate_util.go Outdated Show resolved Hide resolved
controllers/renovate_util.go Outdated Show resolved Hide resolved
controllers/component_dependency_update_controller_test.go Outdated Show resolved Hide resolved
@rcerven rcerven force-pushed the renovatecustomconfig branch from 160da4d to 11f36c0 Compare November 15, 2024 14:11
@rcerven
Copy link
Contributor Author

rcerven commented Nov 15, 2024

related docs PR: konflux-ci/docs#171

@rcerven rcerven force-pushed the renovatecustomconfig branch from 11f36c0 to 522bc15 Compare November 15, 2024 15:19
@@ -635,3 +646,19 @@ func deletePipelineServiceAccount(namespace string) {
pipelineServiceAccountkey := types.NamespacedName{Name: buildPipelineServiceAccountName, Namespace: namespace}
deleteServiceAccount((pipelineServiceAccountkey))
}

func deleteConfigMap(configMapKey types.NamespacedName) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nitpick: better move to ConfigMap functions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved

globalConfigType := ""

allUserConfigMaps := &corev1.ConfigMapList{}
if err := u.Client.List(ctx, allUserConfigMaps, client.InNamespace(namespace)); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we have a common label on all nudge-renovate ConfigMaps?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wouldn't complicate it more for users tbh

sure finding could be filtered, but on other hand with missing label users would complain that it doesn't work
so better less things for them to set

there can be one global one for all components, and also
custom config for specific components

we are also now creating renovate config in json format

STONEBLD-2916
KONFLUX-4372
KFLUXBUGS-1777

Signed-off-by: Robert Cerven <[email protected]>
@rcerven rcerven force-pushed the renovatecustomconfig branch from 522bc15 to 809e7fc Compare November 15, 2024 15:57
@rcerven rcerven merged commit 20bdd94 into konflux-ci:main Nov 15, 2024
8 checks passed
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