-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Check cloud feature before setting billing access for web #6537
Conversation
ccea797
to
1993c8c
Compare
0c31d2c
to
19b4199
Compare
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.
Looks good to me, just do not forget to remove Print statements.
147f910
to
c341b6b
Compare
c4f6194
to
7cc9a96
Compare
7cc9a96
to
61ed3a9
Compare
if err == nil { | ||
process.setClusterFeatures(pingResponse.GetServerFeatures()) |
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.
Could you please log server features loaded from auth server here? In Info mode. It would be helpful for troubleshooting, right now there's no visibility.
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.
logged
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.
Bot.
- Use Ping (that responds with server features) instead of GetNamespace to test c/n - Set server features for web handler (to set it once on register.proxy)
- Add lock before setting - Remove print statements
- rename authServerFeatures to clusterFeatures - defined a locked getter to retrieve cluster features - check for nil before setting
61ed3a9
to
14fecbd
Compare
* Init web handler with auth server feature flags on proxy init * Retrieve auth server features by calling Ping when connecting to auth svc which contains the server feature flags in the response
* Init web handler with auth server feature flags on proxy init * Retrieve auth server features by calling Ping when connecting to auth svc which contains the server feature flags in the response
* Init web handler with auth server feature flags on proxy init * Retrieve auth server features by calling Ping when connecting to auth svc which contains the server feature flags in the response
…#6754) * Create GET db and kube list web handlers (#6672) * Check cloud feature before setting billing access for web (#6537) - Init web handler with auth server feature flags on proxy init - Retrieve auth server features by calling Ping when connecting to auth svc which contains the server feature flags in the response
fixes #6447
Description
Init web handler with feature flags on proxy init
Ping
, which contains the server feature flags in the response