Skip to content

Conversation

@yhrn
Copy link

@yhrn yhrn commented Dec 10, 2025

This change makes the corresponding struct field a pointer with "omitempty" so that it is not written back to the API server when updating metadata with finalizer and annotations.

This is a followup to #263, which was not fully fixed by #297

This change makes the corresponding struct field a pointer with "omitempty" so that
it is not written back to the API server when updating metadata with finalizer and annotations.
Comment on lines +115 to +118
// After we have added the finalizer, we need to requeue to make sure we reconcile the
// rest of the object. Just updating metadata won't make the API server update generation
// so the update above shouldn't trigger a new reconciliation.
return ctrl.Result{Requeue: true}, nil
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem that this PR is supposed to fix was the reason this ever worked

@yhrn
Copy link
Author

yhrn commented Dec 10, 2025

I also wonder if there are more struct fields in pkg/jetstream/apis/jetstream/v1beta2/types.go that might be missing "omitempty" and/or should be pointers instead. For example, ClientCert and ClientKey in the TLS struct.

But on the other hand, I don't even understand why you can configure TLS on a Stream so I need some help deciding what is right and wrong here. If I do get that help I'm happy ta add such fixes to this PR though.

@yhrn
Copy link
Author

yhrn commented Dec 19, 2025

Is there any chance I could get some feedback on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant