Skip to content
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

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

abhioncbr
Copy link
Contributor

Labels:

  • Kubernetes
  • Helm

In this PR, we support the namespace in the K8s Helm chart. By default, the namespace value is pinot. We can modify the default value based on needs.

@codecov-commenter
Copy link

codecov-commenter commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.99%. Comparing base (59551e4) to head (7290f09).
Report is 632 commits behind head on master.

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     
Flag Coverage Δ
custom-integration1 <0.01% <ø> (-0.01%) ⬇️
integration <0.01% <ø> (-0.01%) ⬇️
integration1 <0.01% <ø> (-0.01%) ⬇️
integration2 0.00% <ø> (ø)
java-11 61.93% <ø> (+0.22%) ⬆️
java-21 61.88% <ø> (+0.25%) ⬆️
skip-bytebuffers-false 61.96% <ø> (+0.21%) ⬆️
skip-bytebuffers-true 61.85% <ø> (+34.12%) ⬆️
temurin 61.99% <ø> (+0.24%) ⬆️
unittests 61.98% <ø> (+0.24%) ⬆️
unittests1 46.56% <ø> (-0.33%) ⬇️
unittests2 27.66% <ø> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@xiangfu0 xiangfu0 left a 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.

helm/pinot/templates/_helpers.tpl Outdated Show resolved Hide resolved
helm/pinot/templates/namespace.yaml Outdated Show resolved Hide resolved
helm/pinot/templates/namespace.yaml Outdated Show resolved Hide resolved
@@ -19,6 +19,9 @@

# Default values for Pinot.

namespaceOverride:
Copy link
Contributor

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: ~ 

Copy link
Contributor Author

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 -}}
Copy link
Contributor

@xiangfu0 xiangfu0 Jun 15, 2024

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?

Copy link
Contributor Author

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.

@xiangfu0 xiangfu0 merged commit 74e1a14 into apache:master Jun 20, 2024
20 checks passed
suyashpatel98 pushed a commit to suyashpatel98/pinot that referenced this pull request Jul 6, 2024
* Added namespace support in Helm deployment.

* Changes for namespace support in pinot helm chart.

* minor changes, as per the PR comment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants