Make the admin namespace configurable #118
Merged
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.
The config-reloader assumes that the admin namespace in which fluentd configs get defined without validation and/or processing and in which virtual plugins are defined is the
kube-system
namespace. While this assumption is reasonable in general, there might be instances in which the logging infrastructure is installed in a dedicated namespace and it would be cleaner and more manageable to be able to install virtual plugins and global fluentd configs in that same namespace. Furthermore, it might be the case that the kube-system namespace already contains a number of infrastructural components that would benefit from having fluentd configurations defined using the config-reloader and that would also benefit from all the processing that the config-reloader can offer on those configs, such as the "$labels" macro and so on.This PR adds the possibility of configuring which is the namespace that is used as an admin namespace through a flag of config-reloader which defaults to
kube-system
for backwards compatibility. This way, cluster admins which would benefit from defining global fluentd configs and virtual plugins in a specific dedicated namespace can choose to do so.