You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/07/03 11:20:25 UTC
[GitHub] [pulsar] ericsyh opened a new pull request #11213: fix: incorrect command in helm-deploy docs
ericsyh opened a new pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213
Signed-off-by: Eric Shen <er...@outlook.com>
<!--
### Contribution Checklist
- Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number.
Skip *Issue XYZ* if there is no associated github issue for this pull request.
Skip *component* if you are unsure about which is the best component. E.g. `[docs] Fix typo in produce method`.
- Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
- Each pull request should address only one issue, not mix up code from multiple issues.
- Each commit in the pull request has a meaningful commit message
- Once all items of the checklist are addressed, remove the above text and this checklist, leaving only the filled out template below.
**(The sections below can be removed for hotfixes of typos)**
-->
### Motivation
In the [helm-deploy](https://pulsar.apache.org/docs/en/helm-deploy/#deploy-pulsar-cluster-using-helm), the sample uses `helm upgrade --install pulsar apache/pulsar` command which is incorrect. It should be `helm install` rather than `helm upgrade`.
### Modifications
Update the sample command.
### Impact
No code change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] freeznet commented on a change in pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
freeznet commented on a change in pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#discussion_r664204818
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
```suggestion
helm install pulsar apache/pulsar \
--timeout 10m \
--set initialize=true \
--set [your configuration options]
```
since the `install` command is for the first time deployment, so I suggest adding `--set initialize=true` by default.
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
yes, but I think the initial idea of the note is, `helm upgrade --install` is suitable for both first time deployment and upgrade deployment, so according to the note, the user needs to set `--set initialize=true` to init the metadata if it is the first time deployment.
With your change, `helm install` is always for the first time deployment, so I suggest adding `--set initialize=true` since it is not an optional config but a must-have one.
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
@Anonymitaet please refer to my previous comment. `helm upgrade --install` can be used at the first time deployment and future upgrade, so we can have a note tells the user if you are on the first time deployment, please remember to add `--set initialize=true` because it is required for the first time deployment; if you already have pulsar charts installed, then `--set initialize=true` is not required.
But `helm install` is only for the first time deployment, and it is required to have `--set initialize=true`. So IMO, if changed from `helm upgrade --install` to `helm install`, then you have to include `--set initialize=true` in the code block.
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
Also, please check PR #9070
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Anonymitaet merged pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
Anonymitaet merged pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] freeznet commented on pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
freeznet commented on pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#issuecomment-876854749
I think we'd better make the unifying of helm install command across the whole docs. This means, for the sections `Get started in Kubernetes` and `Install Apache Pulsar using Helm` should using the same install command.
So if we decide to use `helm install`, this PR is LGTM. otherwise, a new PR should be created to change `helm install` to `helm upgrade --install` in `Get started in Kubernetes`.
Also, from my experience, a ready to used command for the first-time deployment is better for the user, so I suggest putting `--set initialize=true` in the code snippet by default. heard some of the users failed with the first-time deployment because they forget to set `--set initialize=true`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Anonymitaet commented on pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#issuecomment-877095555
@ericsyh fine, then we keep consistent for all docs (use `helm install`), your PR looks good.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Anonymitaet commented on a change in pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on a change in pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#discussion_r664213030
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
@freeznet we have documented this note, so we can not include `--set initialize=true` in the code snippet, thought?
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
Sorry I missed your previous comment. Many thanks for your explanations!
Agree with @freeznet, if we use `helm install`, then we need to add the required argument `--set initialize=true`, or else users might get an error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] ericsyh commented on a change in pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
ericsyh commented on a change in pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#discussion_r664206938
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
Emmmm, actually there is a note following on the doc to reminder the config of `initialize=true` for the first time.

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] ericsyh commented on pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
ericsyh commented on pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#issuecomment-873392302
@Anonymitaet PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] ericsyh commented on pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
ericsyh commented on pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#issuecomment-874464870
@freeznet @Anonymitaet Ok , i will put another commit to change on previous versions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] freeznet commented on a change in pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
freeznet commented on a change in pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#discussion_r664216197
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
Also, please check PR #9070
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] ericsyh commented on a change in pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
ericsyh commented on a change in pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#discussion_r664206938
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
Emmmm, actually there is a note following on the doc to reminder the config of `initialize=true` for the first time.

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] freeznet commented on a change in pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
freeznet commented on a change in pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#discussion_r664204818
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
```suggestion
helm install pulsar apache/pulsar \
--timeout 10m \
--set initialize=true \
--set [your configuration options]
```
since the `install` command is for the first time deployment, so I suggest adding `--set initialize=true` by default.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] freeznet commented on a change in pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
freeznet commented on a change in pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#discussion_r664212651
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
yes, but I think the initial idea of the note is, `helm upgrade --install` is suitable for both first time deployment and upgrade deployment, so according to the note, the user needs to set `--set initialize=true` to init the metadata if it is the first time deployment.
With your change, `helm install` is always for the first time deployment, so I suggest adding `--set initialize=true` since it is not an optional config but a must-have one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] ericsyh commented on pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
ericsyh commented on pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#issuecomment-874464870
@freeznet @Anonymitaet Ok , i will put another commit to change on previous versions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] ericsyh commented on pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
ericsyh commented on pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#issuecomment-876844273
> `helm upgrade --install` will install the chart if the chart doesn't exist. why is that a problem?
Well, It's my fault. I didn't realize that there is a `--install` flag for `helm upgrade` command before @freeznet 's comment. So, shall we keep the deploy command with `helm upgrade --install` or change to use `helm install`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Anonymitaet commented on pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#issuecomment-873732190
@freeznet could you please help review this PR from the technical perspective? Thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] sijie commented on pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
sijie commented on pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#issuecomment-876790528
`helm upgrade --install` will install the chart if the chart doesn't exist. why is that a problem?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] sijie commented on pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
sijie commented on pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#issuecomment-876912256
@freeznet agreed with that. If we make it consistent across the places, I am fine with whatever change we use.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] freeznet commented on a change in pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
freeznet commented on a change in pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#discussion_r664214918
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
@Anonymitaet please refer to my previous comment. `helm upgrade --install` can be used at the first time deployment and future upgrade, so we can have a note tells the user if you are on the first time deployment, please remember to add `--set initialize=true` because it is required for the first time deployment; if you already have pulsar charts installed, then `--set initialize=true` is not required.
But `helm install` is only for the first time deployment, and it is required to have `--set initialize=true`. So IMO, if changed from `helm upgrade --install` to `helm install`, then you have to include `--set initialize=true` in the code block.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Anonymitaet commented on a change in pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on a change in pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#discussion_r664222304
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
Sorry I missed your previous comment. Many thanks for your explanations!
Agree with @freeznet, if we use `helm install`, then we need to add the required argument `--set initialize=true`, or else users might get an error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Anonymitaet commented on a change in pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on a change in pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#discussion_r664213030
##########
File path: site2/docs/helm-deploy.md
##########
@@ -346,7 +346,7 @@ In this example, we name our Helm release `pulsar`.
```bash
helm repo add apache https://pulsar.apache.org/charts
helm repo update
-helm upgrade --install pulsar apache/pulsar \
+helm install pulsar apache/pulsar \
--timeout 10m \
--set [your configuration options]
Review comment:
@freeznet we have documented this note, so we can not include `--set initialize=true` in the code snippet, thought?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] ericsyh commented on pull request #11213: fix: incorrect command in helm-deploy docs
Posted by GitBox <gi...@apache.org>.
ericsyh commented on pull request #11213:
URL: https://github.com/apache/pulsar/pull/11213#issuecomment-876925553
@freeznet I just checked the command in [Get started in Kubernetes](https://pulsar.apache.org/docs/en/kubernetes-helm/#step-1-install-pulsar-helm-chart) and it uses `helm install`....

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org