Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace Resource: Improve diagnostics handling #179

Merged
merged 4 commits into from
Nov 15, 2024

Conversation

briankassouf
Copy link
Contributor

What was changed

This PR improves the handling of the diag.Diagnostics in the namespace resource. Prior to this change errors added in a helper function were not being correctly bubbled up to terraform.

@briankassouf briankassouf requested a review from a team as a code owner November 15, 2024 19:03
@briankassouf briankassouf requested review from anekkanti and removed request for a team November 15, 2024 19:04
return

var codecServer *namespacev1.CodecServerSpec
if !plan.CodecServer.IsNull() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This bug was uncovered by the acceptance tests after fixing the diagnostic errors

Copy link
Collaborator

@jlacefie jlacefie left a comment

Choose a reason for hiding this comment

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

TY for this. The explicit management of diagnostics looks good.

@briankassouf briankassouf merged commit f899716 into main Nov 15, 2024
5 checks passed
@briankassouf briankassouf deleted the bk/namespace-diagnostics-fix branch November 15, 2024 22:23
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.

2 participants