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

Change the statistics type from float64 to uint64 #955

Merged
merged 4 commits into from
Nov 19, 2020

Conversation

aswinsuryan
Copy link
Contributor

@aswinsuryan aswinsuryan commented Nov 19, 2020

The code generator does not support float64 and hence updating
the API to use uint64

Signed-off-by: Aswin Surayanarayanan [email protected]

@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr955/aswinsuryan/update-health-check-api

@tpantelis
Copy link
Contributor

Can you provide more detail? What code generator and how did it fail?

@aswinsuryan
Copy link
Contributor Author

Can you provide more detail? What code generator and how did it fail?

cd vendor/github.com/submariner-io/submariner && controller-gen "crd:crdVersions=v1,trivialVersions=false" paths="./..." output:crd:artifacts:config=../../../../deploy/submariner/crds
/go/src/github.com/submariner-io/submariner-operator/vendor/github.com/submariner-io/submariner/pkg/apis/submariner.io/v1/types.go:89:13: unsupported type "float64"

This is the error it shows.

The code generator supports only *float64 and hence updating
the api

Signed-off-by: Aswin Surayanarayanan <[email protected]>
@aswinsuryan aswinsuryan force-pushed the update-health-check-api branch from c50e70f to cc5dfd3 Compare November 19, 2020 14:13
@submariner-bot
Copy link
Contributor

🤖 Updated branch: z_pr955/aswinsuryan/update-health-check-api

1 similar comment
@submariner-bot
Copy link
Contributor

🤖 Updated branch: z_pr955/aswinsuryan/update-health-check-api

@tpantelis
Copy link
Contributor

Discussed on chat - we should just change them to uint64.

Signed-off-by: Aswin Surayanarayanan <[email protected]>
@aswinsuryan aswinsuryan force-pushed the update-health-check-api branch from 0ce3a42 to 84508d0 Compare November 19, 2020 14:21
@submariner-bot
Copy link
Contributor

🤖 Updated branch: z_pr955/aswinsuryan/update-health-check-api

@aswinsuryan aswinsuryan changed the title Change the statistics type from float64 to *float64 Change the statistics type from float64 to uint64 Nov 19, 2020
@submariner-bot
Copy link
Contributor

🤖 Updated branch: z_pr955/aswinsuryan/update-health-check-api

@aswinsuryan
Copy link
Contributor Author

Discussed on chat - we should just change them to uint64.
done.

@SteveMattar SteveMattar self-requested a review November 19, 2020 14:24
@@ -86,11 +86,11 @@ type GatewayStatus struct {
// LatencySpec describes the round trip time information in miliseconds for a packet
Copy link
Member

Choose a reason for hiding this comment

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

To preserve the granularity, shouldn’t the values use a finer unit, say microseconds or nanoseconds?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok the time period gives it in nano seconds, I will change it to nano seconds.

Signed-off-by: Aswin Surayanarayanan <[email protected]>
@aswinsuryan aswinsuryan force-pushed the update-health-check-api branch from d1f3b90 to d022da6 Compare November 19, 2020 14:55
@submariner-bot
Copy link
Contributor

🤖 Updated branch: z_pr955/aswinsuryan/update-health-check-api

@submariner-bot
Copy link
Contributor

🤖 Updated branch: z_pr955/aswinsuryan/update-health-check-api

@tpantelis tpantelis merged commit 9b682d6 into submariner-io:master Nov 19, 2020
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr955/aswinsuryan/update-health-check-api]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants