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

Cronjob to prune unused rendered MachineConfigs #94

Merged
merged 1 commit into from
Feb 3, 2025
Merged

Conversation

haasad
Copy link
Member

@haasad haasad commented Feb 3, 2025

Adds a cronjob to regularly (once a week) prune unused rendered machineconfigs. Uses oc adm prune renderedmachinconfigs as described in https://docs.openshift.com/container-platform/4.16/machine_configuration/machine-configs-garbage-collection.html#machine-configs-garbage-collection

Instead of pruning all unused rendered machineconfigs we keep the 5 most recent rendered machineconfigs for each machineconfigpool. This is useful for debugging issues and tasks like https://kb.vshn.ch/oc4/how-tos/force-reboot.html

Checklist

  • The PR has a meaningful title. It will be used to auto-generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.

@haasad haasad force-pushed the feat/mc-pruner branch 3 times, most recently from 92fc2c9 to 9d8e954 Compare February 3, 2025 15:55
@haasad haasad added enhancement New feature or request bump:minor labels Feb 3, 2025
@haasad haasad marked this pull request as ready for review February 3, 2025 16:35
@haasad haasad requested a review from a team as a code owner February 3, 2025 16:35
Copy link

github-actions bot commented Feb 3, 2025

🚀 This PR has been released as v4.4.0

Triggering workflows Release

🛠️ Auto tagging enabled with label bump:minor

@haasad haasad merged commit 0f32ba8 into master Feb 3, 2025
21 checks passed
@haasad haasad deleted the feat/mc-pruner branch February 3, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump:minor enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants