Skip to content

Commit 4233bb7

Browse files
authored
Merge pull request #1059 from MisterMX/fix/custom-plugins-hash
fix(fluentd): Use custom plugin content for hash generation
2 parents 1870e8c + 3b07de3 commit 4233bb7

File tree

1 file changed

+7
-0
lines changed
  • apis/fluentd/v1alpha1/plugins/params

1 file changed

+7
-0
lines changed

apis/fluentd/v1alpha1/plugins/params/model.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ func (ps *PluginStore) Hash() string {
7272
c.Store[k] = v
7373
}
7474

75+
// Custom plugins don't have stored properties but only contain the config
76+
// as plain text.
77+
// Set the content here to avoid generating the same hash code for all
78+
// custom plugins resulting in only one custom plugin being ever set for
79+
// one config.
80+
c.Content = ps.Content
81+
7582
c.InsertChilds(ps.Childs...)
7683
return utils.HashCode(c.String())
7784
}

0 commit comments

Comments
 (0)