-
Notifications
You must be signed in to change notification settings - Fork 834
feat: add controller manager configuration helm chart #2895
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
feat: add controller manager configuration helm chart #2895
Conversation
…port Signed-off-by: kapil27 <knema@redhat.com>
Pull Request Test Coverage Report for Build 18674107727Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Thanks for opening this @kapil27! |
{{/* | ||
Create the name of the manager service account. | ||
*/}} | ||
{{- define "trainer.manager.serviceAccount.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 do we need this ?
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.
You're right , we don't!
Removed the duplicate trainer.manager.serviceAccount.name
helper from manager/_helpers.tpl
. The helper already exists in rbac/_helpers.tpl
# Leader election configuration | ||
leaderElection: | ||
leaderElect: {{ gt (.Values.manager.replicas | int) 1 }} |
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.
Yes! Fixed the leader election configuration to default to true
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.
@kapil27 Can you also remove the post-fix generation from the ConfigMap in kustomize manifests:
trainer/manifests/base/manager/kustomization.yaml
Lines 6 to 8 in e6b5e84
- name: kubeflow-trainer-config | |
files: | |
- controller_manager_config.yaml |
of: ConfigMap | ||
- equal: | ||
path: metadata.name | ||
value: kubeflow-trainer-controller-manager-config |
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.
The name of the config map is:
kubeflow-trainer-config
@kapil27 Did you get a chance to address the comments ? |
Signed-off-by: kapil27 <knema@redhat.com>
Signed-off-by: kapil27 <knema@redhat.com>
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 @kapil27!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andreyvelich 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 |
@kapil27 Are there any other changes you would like to make to this PR before we move forward ? |
@andreyvelich I’ve addressed all the comments and completed initial testing. It looks good on my end. ready to go ahead. |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
Fixes #<issue number>, #<issue number>, ...
format, will close the issue(s) when PR gets merged):Fixes #2894
Checklist: