fix: Controller not respecting ignore* flags #966#997
Merged
Felix-Stakater merged 1 commit intostakater:masterfrom Aug 29, 2025
Merged
fix: Controller not respecting ignore* flags #966#997Felix-Stakater merged 1 commit intostakater:masterfrom
Felix-Stakater merged 1 commit intostakater:masterfrom
Conversation
70f3783 to
92590e9
Compare
Contributor
|
Hi! I think this functionality is better suited inside the ShouldReload. From what i can tell we have all the context from the cli args + the resource being referenced so it should be possible to do the check from there. |
Felix-Stakater
requested changes
Aug 22, 2025
3d013e6 to
8508481
Compare
Felix-Stakater
approved these changes
Aug 29, 2025
Contributor
Felix-Stakater
left a comment
There was a problem hiding this comment.
LGTM, thank you for your contribution!
|
@praddy26 just an FYI - we are running with chart |
|
Can confirm with 2.2.3 we are also seeing this behavior |
Contributor
Author
|
@ryndaniels @r4j4h Thanks for flagging this. I will work on it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Fixes #996: Setting
ignoreJobsorignoreCronJobsin Helm values removes RBAC permissions but Reloader still attempts to access Jobs/CronJobs, causing permission errors.Solution
Implemented a unified
--ignored-workload-typesflag that accepts bothjobsandcronjobsvalues (individually or together), replacing the need for separate boolean flags while maintaining backward compatibility.Key Changes
Core Implementation
--ignored-workload-types(StringSliceVar) acceptingjobs,cronjobs, or bothGetIgnoredWorkloadTypesList()function with clear error messagesReloaderOptionsstruct withWorkloadTypesToIgnorefieldHandler Logic
Helm Integration
--ignored-workload-typesarguments based on existingignoreJobs/ignoreCronJobsvaluesvalues.yamlsettings continue to work seamlesslyTesting
Usage Examples
Command Line