Skip to content

Commit

Permalink
Add plural exception for NodeLatencyStats in stats API (#6490)
Browse files Browse the repository at this point in the history
Signed-off-by: Antonin Bas <[email protected]>
  • Loading branch information
antoninbas committed Jun 27, 2024
1 parent 6004f42 commit bd45b32
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 32 deletions.
1 change: 1 addition & 0 deletions hack/update-codegen-dockerized.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ function generate_antrea_client_code {
--plural-exceptions "AntreaClusterNetworkPolicyStats:AntreaClusterNetworkPolicyStats" \
--plural-exceptions "ClusterGroupMembers:ClusterGroupMembers" \
--plural-exceptions "GroupMembers:GroupMembers" \
--plural-exceptions "NodeLatencyStats:NodeLatencyStats" \
--go-header-file hack/boilerplate/license_header.go.txt

# Generate listers with K8s codegen tools.
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/monitortool/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ func (m *NodeLatencyMonitor) report() {
klog.ErrorS(err, "Failed to get Antrea client")
return
}
if _, err := antreaClient.StatsV1alpha1().NodeLatencyStatses().Create(context.TODO(), summary, metav1.CreateOptions{}); err != nil {
if _, err := antreaClient.StatsV1alpha1().NodeLatencyStats().Create(context.TODO(), summary, metav1.CreateOptions{}); err != nil {
klog.ErrorS(err, "Failed to create NodeIPLatencyStats")
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bd45b32

Please sign in to comment.