Skip to content

Commit

Permalink
fix checking for preventDelete in the update step
Browse files Browse the repository at this point in the history
Instead check for preventUpdate. Introduced during refactor.
  • Loading branch information
adriandieter committed Dec 11, 2024
1 parent ffdc4c7 commit 617f3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/stream_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (r *StreamReconciler) deleteStream(ctx context.Context, log logr.Logger, st
func (r *StreamReconciler) createOrUpdate(ctx context.Context, log logr.Logger, stream *api.Stream) error {

// Create or Update the stream based on the spec
if stream.Spec.PreventDelete || r.ReadOnly() {
if stream.Spec.PreventUpdate || r.ReadOnly() {
log.Info("Skipping stream creation or update.",
"streamName", stream.Spec.Name,
"preventDelete", stream.Spec.PreventDelete,
Expand Down

0 comments on commit 617f3c0

Please sign in to comment.