-
Notifications
You must be signed in to change notification settings - Fork 929
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
Proposal: Support to Specify Extra Volumes and Volume Mounts for Karmada Control Plane Components #5276
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #5276 +/- ##
==========================================
+ Coverage 28.24% 33.86% +5.62%
==========================================
Files 632 643 +11
Lines 43753 44500 +747
==========================================
+ Hits 12360 15072 +2712
+ Misses 30492 28280 -2212
- Partials 901 1148 +247
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
02c0b27
to
d11f59b
Compare
@RainbowMango , thanks for the constructive feedback. I just pushed some changes to address your comments, so I think this should be ready to go. Currently working on the implementation PR and will push that soon. |
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.
/assign
// ExtraVolumes specifies a list of extra volumes for the API server's pod | ||
// +optional | ||
ExtraVolumes []corev1.Volume `json:"extraVolumes,omitempty"` | ||
|
||
// ExtraVolumeMounts specifies a list of extra volume mounts to be mounted into the API server's container | ||
// +optional | ||
ExtraVolumeMounts []corev1.VolumeMount `json:"extraVolumeMounts,omitempty"` |
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.
Hi @jabellard I'm looking at the field names, both fields are prefixed with Extra
.
I can understand why you named it with extra
, that is we already have some hardcoded volumes and mounts, like:
volumes:
- name: apiserver-cert
secret:
defaultMode: 420
secretName: karmada-demo-cert
- name: etcd-cert
secret:
defaultMode: 420
secretName: karmada-demo-etcd-cert
and
volumeMounts:
- mountPath: /etc/karmada/pki
name: apiserver-cert
readOnly: true
- mountPath: /etc/etcd/pki
name: etcd-cert
readOnly: true
I have a feeling that a little bit of context is missing here.
Maybe we should go without extra
or add more comments on that. What do you think?
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.
By the way, we have the same feeling on ExtraArgs just on above of the proposed fields. From the users's perspective, they might not know what kind of args are already set.
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.
Thanks for sharing that perspective. I do agree with you that a user creating the CR will lack context into what will be set by default if it's not documented. For volumes and volumes mounts, by default, the code will add volumes and volume mounts for certs as that's a base requirement for a functioning control plane. As you mentioned above, we can remediate the lack of context from a user's perspective by adding more documentation to clearly communicate what is automatically handled by the operator for a base setup, and how those new fields can be used the further customize that setup. Do you see that as sensible way forward?
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.
Yes, I agree, I guess you mean adding more documentation is more comments on that.
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.
Yes. Just pushed some changes for that.
Signed-off-by: Joe Nathan Abellard <[email protected]> Address comments Signed-off-by: Joe Nathan Abellard <[email protected]> Address comments Signed-off-by: Joe Nathan Abellard <[email protected]> Update api Signed-off-by: Joe Nathan Abellard <[email protected]>
d11f59b
to
2dfd11d
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.
/lgtm
/approve
Thanks.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind design
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: