-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[HELM]: Added namespace support in K8s deployment. #13380
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #13380 +/- ##
============================================
+ Coverage 61.75% 61.99% +0.24%
+ Complexity 207 198 -9
============================================
Files 2436 2550 +114
Lines 133233 140286 +7053
Branches 20636 21805 +1169
============================================
+ Hits 82274 86968 +4694
- Misses 44911 46717 +1806
- Partials 6048 6601 +553
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
overall lgtm
a few questions regarding the backward compatibility, when user upgrade.
@@ -19,6 +19,9 @@ | |||
|
|||
# Default values for Pinot. | |||
|
|||
namespaceOverride: |
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.
is this supported or we should use
namespaceOverride: ~
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.
Not needed. This is supported.
{{- if .Values.namespaceOverride -}} | ||
{{- .Values.namespaceOverride -}} | ||
{{- else -}} | ||
{{- .Release.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.
Is this k8s system default namespace?
what's the behavior if user set the default namespace to something else?
Shall we only define this if user want to?
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.
Here is the behaviour
- If the
namespaceOverride
value is provided, it will precede the rest. - If the
namespaceOverride
value is not provided, and we use the helm command with-n <value>
, the provided value in the command will get used. - If both the above values are not provided, then the
default
value will be set as a namespace.
* Added namespace support in Helm deployment. * Changes for namespace support in pinot helm chart. * minor changes, as per the PR comment.
Labels:
Kubernetes
Helm
In this PR, we support the
namespace
in the K8s Helm chart. By default, thenamespace
value ispinot
. We can modify the default value based on needs.