Skip to content

Commit

Permalink
Fix setting placement on stream update (#171)
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Piotrowski <[email protected]>
  • Loading branch information
piotrpio authored Mar 20, 2024
1 parent f0ed8b1 commit 8244807
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions controllers/jetstream/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,13 @@ func updateStream(ctx context.Context, c jsmClient, spec apis.StreamSpec) (err e
config.Sources[i] = jss
}

if spec.Placement != nil {
config.Placement = &jsmapi.Placement{
Cluster: spec.Placement.Cluster,
Tags: spec.Placement.Tags,
}
}

if spec.Metadata != nil {
config.Metadata = spec.Metadata
}
Expand Down

0 comments on commit 8244807

Please sign in to comment.