-
Notifications
You must be signed in to change notification settings - Fork 146
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
[vmcluster]: About the HasSpecChanges
method and the AnnotationsFiltered
method
#753
Comments
Hello, thanks for the issue!
That's a nosiy message for new resource, but it also print error if LastAppliedSpecAsPatch wasn't ever success or annotation got lost for some reason, so I think it's ok to leave it there.
Yeah, should be fixed in #754, please take a look. |
Thank you.
By the way, because The error log is as follows:
This isn't a panic mistake, but I feel like there should be a better way to avoid this. |
Hmm, that's right. But there is no pods or other resources for vmcluster to wait or show it's ready, I can only come up the idea to have a hardcode timeout or recheck it's spec, both sound not so good. |
Linked commit must remove misleading error message. |
Fix included into the https://github.com/VictoriaMetrics/operator/releases/tag/v0.39.0 release |
Hi, everyone!
When I read the source code, I had some doubts about
vmcluster
, they may be bugs:HasSpecChanges
method does not judge null values, which may cause an error when querying crd for the first time.code:
https://github.com/VictoriaMetrics/operator/blob/master/api/v1beta1/vmcluster_types.go#L947
error:
operator.victoriametrics.com/
, but in the LastAppliedSpecAsPatch function, the key of annotation is set tooperator.victoriametrics/last-applied-spec
. I thinkannotationFilterPrefixes
expects to filter it out.The text was updated successfully, but these errors were encountered: