-
Notifications
You must be signed in to change notification settings - Fork 354
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 volumeMounts when webhook is disabled #679
Conversation
Codecov Report
@@ Coverage Diff @@
## master #679 +/- ##
=======================================
Coverage 35.04% 35.04%
=======================================
Files 60 60
Lines 5967 5967
=======================================
Hits 2091 2091
Misses 3625 3625
Partials 251 251
Continue to review full report at Codecov.
|
@@ -63,7 +63,7 @@ func (sc schemaClient) getSchema(ctx context.Context, name string) (*v1.Schema, | |||
) | |||
} | |||
|
|||
url := sc.url + "/" + name | |||
url := sc.url + name |
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.
Why change this? Maybe path.Join is more appropriate.
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.
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.
OK, use path.Join
is better.
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.
OK
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.
@@ -63,7 +63,7 @@ func (sc schemaClient) getSchema(ctx context.Context, name string) (*v1.Schema, | |||
) | |||
} | |||
|
|||
url := sc.url + "/" + name | |||
url := sc.url + name |
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.
OK, use path.Join
is better.
* Remove volumeMounts when webhook is disabled
Please answer these questions before submitting a pull request
Why submit this pull request?
Bugfix
New feature provided
Improve performance
Backport patches
Related issues
Bugfix
Description
It will occur errors when webhook is disabled but the controller pod tried to mount the volume.
How to fix?
Add a placeholder in deployment template, decide whether to populate the
volumeMount
or not according to whether the webhook is enabled.