-
Notifications
You must be signed in to change notification settings - Fork 357
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
chore: change the comment for defaultNamespace in values.yaml #9793
Conversation
✅ Deploy Preview for determined-ui canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9793 +/- ##
==========================================
- Coverage 54.07% 54.05% -0.03%
==========================================
Files 1260 1260
Lines 155574 155565 -9
Branches 3503 3504 +1
==========================================
- Hits 84120 84083 -37
- Misses 71308 71336 +28
Partials 146 146
Flags with carried forward coverage won't be shown. Click here to find out 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.
Minor change to the comment requested, but since this PR is currently a 1 word change for the defaultNamespace
comment, I took a look at how defaultNamespace
gets set in master-config.yaml
, and we should probably add a coalesce as follows.
{{- if $defaultNamespace := coalesce .Values.resourceManager.defaultNamespace .Release.namespace }}
default_namespace: {{ quote $defaultNamespace }}
{{- end }}
This way, the default namespace that users previously had set for their k8s clusters gets preserved. Can we make that change here since it's on the topic of the same field whose comment is being modified?
cc @hkumar92 do we want this change? |
ba776c7
to
bf57e3b
Compare
I think it makes sense for us to default to the releaseNamespace if the user doesn't define anything instead of binding to default |
6a526a7
to
79c8779
Compare
79c8779
to
fa3262d
Compare
@@ -23,7 +23,8 @@ bindings and resource quotas using either the WebUI or the CLI. | |||
specify a namespace in the namespace field, the workspace is bound to that namespace. If the | |||
field is left blank, the workspace is bound to the namespace specified in the | |||
``resource_manager.default_namespace`` section of your master configuration (when set), and is | |||
otherwise bound to the default Kubernetes "default" namespace. | |||
otherwise bound to the release namespace. We fall back to the default Kubernetes namespace, |
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.
otherwise bound to the release namespace. We fall back to the default Kubernetes namespace, | |
otherwise bound to the release namespace. For non-helm Determined deployments, it falls back to the default Kubernetes namespace, ``default``. |
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.
fixed!
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.
suggested edit
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. I know this is "chore" but it's also potentially user facing; do you think we need a release note?
I had added release notes directly to the release notes PR! |
ea3136d
to
ac3b3ba
Compare
(cherry picked from commit 4e47a1e)
Ticket
Description
stop supporting resource_manager.namespace and use release namespace as default instead of "default" in helm deployements.
Test Plan
no testing required
Checklist
docs/release-notes/
See Release Note for details.