Skip to content

Commit

Permalink
Fix discovery of fluentdconfig if migration mode is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Rutishauser <jonas.rutishauser@css.ch>
  • Loading branch information
jonasrutishauser authored and slimm609 committed Mar 16, 2023
1 parent 36d9fb5 commit 6011334
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config-reloader/datasource/kube_informer.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ func NewKubernetesInformerDatasource(ctx context.Context, cfg *config.Config, up
if err != nil {
return nil, err
}
fluentdconfigDSLister =
&kubedatasource.FluentdConfigDS{
Fdlist: kubeds.GetFdlist(),
}
} else {
kubeds, err = kubedatasource.NewConfigMapDS(ctx, cfg, factory, updateChan)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion config-reloader/datasource/kubedatasource/migrationmode.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ func (m *MigrationModeDS) GetFluentdConfig(ctx context.Context, namespace string

// GetFdlist return nil for this mode because it does not use CRDs:
func (m *MigrationModeDS) GetFdlist() kfoListersV1beta1.FluentdConfigLister {
return nil
return m.fdKubeDS.GetFdlist()
}

0 comments on commit 6011334

Please sign in to comment.