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

remove unused subnet status fields #2178

Merged
merged 2 commits into from
Dec 21, 2022

Conversation

zhangzujian
Copy link
Member

@zhangzujian zhangzujian commented Dec 20, 2022

What type of this PR

  • Bug fixes

Which issue(s) this PR fixes:

Fixes the following warning:

W1220 02:45:04.223938      13 warnings.go:70] unknown field "status.availableIPs"
W1220 02:45:04.223973      13 warnings.go:70] unknown field "status.usingIPs"

This patch also:

  1. Fix go.mod;
  2. Format go imports;
  3. Check whether the go mod is tidy.

@zhangzujian zhangzujian marked this pull request as ready for review December 21, 2022 01:52
@@ -179,8 +179,6 @@ type SubnetStatus struct {
// +patchStrategy=merge
Conditions []SubnetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

AvailableIPs float64 `json:"availableIPs"`
UsingIPs float64 `json:"usingIPs"`
V4AvailableIPs float64 `json:"v4availableIPs"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

1、删除字段的话,是不是还需要code-generator重新生成文件?
2、我没找到具体warning打印的地方

Copy link
Member Author

Choose a reason for hiding this comment

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

1、删除字段的话,是不是还需要code-generator重新生成文件? 2、我没找到具体warning打印的地方

https://github.com/kubernetes/client-go/blob/v0.26.0/rest/warnings.go#L70

@zhangzujian zhangzujian merged commit 4d6ad64 into kubeovn:master Dec 21, 2022
@zhangzujian zhangzujian deleted the fix-subnet-status branch December 21, 2022 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants