Skip to content

Commit

Permalink
Merge pull request #116 from kaasops/fix-source-merge
Browse files Browse the repository at this point in the history
don not merge source if custom options exist
  • Loading branch information
dkhachyan committed Jun 15, 2023
2 parents bb0081a + c559273 commit 5aa8871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/factory/config/config_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func (b *Builder) mergeKubernetesSources(config *VectorConfig) error {
routes := make(map[string]string)
for _, source := range config.Sources {
if source.Type == KubernetesSourceType {
if source.ExtraFieldSelector == "" && source.ExtraNamespaceLabelSelector != "" && source.ExtraLabelSelector != "" {
if source.ExtraFieldSelector == "" && source.ExtraNamespaceLabelSelector != "" && source.ExtraLabelSelector != "" && source.Options == nil {
routes[source.Name] = generateVrlFilter(source.ExtraLabelSelector, PodSelectorType) + "&&" + generateVrlFilter(source.ExtraNamespaceLabelSelector, NamespaceSelectorType)
continue
}
Expand Down

0 comments on commit 5aa8871

Please sign in to comment.