Skip to content

[artifactor-cleanup] new helm chart to cleanup Artifactory#272

Open
DanielRaapDev wants to merge 13 commits intomainfrom
SUDO-582_artifactory_cleanup_cronjob
Open

[artifactor-cleanup] new helm chart to cleanup Artifactory#272
DanielRaapDev wants to merge 13 commits intomainfrom
SUDO-582_artifactory_cleanup_cronjob

Conversation

@DanielRaapDev
Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Helm chart (charts/artifactory-cleanup) intended to run the devopshq/artifactory-cleanup tool as a Kubernetes CronJob for periodic Artifactory cleanup (per SUDO-582).

Changes:

  • Introduces a new Helm chart with templates for CronJob, ConfigMap, and ServiceAccount.
  • Adds default values plus a test-values.yaml example and Helm-unittest test suites for default/custom rendering.
  • Adds chart metadata (Chart.yaml) and .helmignore.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
charts/artifactory-cleanup/Chart.yaml New chart metadata for the artifactory-cleanup CronJob chart.
charts/artifactory-cleanup/.helmignore Standard Helm packaging ignore patterns.
charts/artifactory-cleanup/values.yaml Default values for scheduling, credentials, job settings, and pod config.
charts/artifactory-cleanup/templates/_helpers.tpl Helper templates for naming/labels/service account/configmap naming.
charts/artifactory-cleanup/templates/configmap.yaml ConfigMap template to render the cleanup configuration YAML.
charts/artifactory-cleanup/templates/serviceaccount.yaml Optional ServiceAccount creation for the CronJob.
charts/artifactory-cleanup/templates/cronjob.yaml CronJob template to run the cleanup container on a schedule.
charts/artifactory-cleanup/test-values.yaml Example values used by unit tests.
charts/artifactory-cleanup/tests/default_values_test.yaml Helm-unittest suite asserting default rendering.
charts/artifactory-cleanup/tests/custom_values_test.yaml Helm-unittest suite asserting overrides and custom rendering.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread charts/artifactory-cleanup/tests/custom_values_test.yaml Outdated
Comment thread charts/artifactory-cleanup/templates/cronjob.yaml
Comment thread charts/artifactory-cleanup/templates/cronjob.yaml Outdated
Comment thread charts/artifactory-cleanup/templates/cronjob.yaml
Comment thread charts/artifactory-cleanup/tests/custom_values_test.yaml Outdated
Comment thread charts/artifactory-cleanup/templates/cronjob.yaml
Comment thread charts/artifactory-cleanup/templates/cronjob.yaml Outdated
Comment thread charts/artifactory-cleanup/values.yaml
Comment thread charts/artifactory-cleanup/values.yaml Outdated
Comment thread charts/artifactory-cleanup/tests/default_values_test.yaml Outdated
DanielRaapDev and others added 8 commits April 24, 2026 11:50
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…econds, add tests for optional job values
…r or OnFailure; omitting it defaults to Always and is rejected by the Kubernetes API."
…factory-cleanup.fullname" . }}, [...] his will fail at runtime because the referenced ConfigMap doesn't exist."
@DanielRaapDev DanielRaapDev marked this pull request as ready for review April 24, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants