-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: Fix inconsistent result after apply error for cluster tags #38
fix: Fix inconsistent result after apply error for cluster tags #38
Conversation
…ing-terraform-provider-bug-when-creating-cluster-wo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this solves it, but we should also be able to gracefully handle tags being managed by something else (eg Cluster CRDs). I think currently it might remove tags if an empty map is specified in TF but the CRD adds a few additional.
My expectation would be a null value means terraform ignores that field.
@@ -56,6 +56,10 @@ type cluster struct { | |||
// } | |||
|
|||
func (c *cluster) TagsAttribute(ctx context.Context, d diag.Diagnostics) []*console.TagAttributes { | |||
if c.Tags.IsNull() { | |||
return nil | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michaeljguarino I think this should solve the issue you mentioned in the comment above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok awesome
No description provided.