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

reuse values when upgrading argo-cd #1961

Merged
merged 1 commit into from
May 5, 2022
Merged

Conversation

daixijun
Copy link
Contributor

No description provided.

@ks-ci-bot ks-ci-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 26, 2022
@pixiake
Copy link
Collaborator

pixiake commented Apr 27, 2022

/cc @kubesphere/sig-devops

@ks-ci-bot ks-ci-bot requested a review from a team April 27, 2022 02:03
Copy link
Member

@LinuxSuRen LinuxSuRen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @daixijun , thanks for your time. Please see the comment and help us to understand the changes.

/area devops

@@ -177,7 +177,7 @@
executable: /bin/bash
shell: |
{{ bin_dir }}/helm upgrade --install devops {{ kubesphere_dir }}/ks-devops/charts/argo-cd-4.4.0.tgz \
-n argocd --create-namespace
-n argocd --create-namespace --reuse-values
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if you mind providing some background about why we should use the flag --reuse-values.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example, add the private GitLab server key to ssh_known_hosts, These configurations are reset when the ks-installer restarts or is upgraded

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I still feel confused, why cannot use the value from the newer version?

Copy link
Contributor Author

@daixijun daixijun Apr 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I still feel confused, why cannot use the value from the newer version?

英语不太好,我就用中文说吧

也不是说不可能使用新版本的值, 而是默认的 values.yaml 里面的值会覆盖掉自定的值。

就以我上面举例来说, 添加私有GIT仓库的时候是需要录入服务器的 ssh keys, 实际他是存储在 argocd/argocd-ssh-known-hosts-cm 这个 configmap中, 如果不复用参数在升级的时候就会被覆写为默认值 , 这时候 argocd 里面的仓库就会失联

Copy link
Member

@LinuxSuRen LinuxSuRen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/area devops
/lgtm
/approve

@ks-ci-bot ks-ci-bot added the lgtm Indicates that a PR is ready to be merged. label May 5, 2022
@ks-ci-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: b66e0615c0e7cd6f36bc49135521c4a6ca768171

@ks-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: daixijun, LinuxSuRen

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ks-ci-bot ks-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 5, 2022
@LinuxSuRen
Copy link
Member

/cherrypick release-3.3

@ks-ci-bot
Copy link
Collaborator

@LinuxSuRen: once the present PR merges, I will cherry-pick it on top of release-3.3 in a new PR and assign it to you.

In response to this:

/cherrypick release-3.3

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ks-ci-bot ks-ci-bot merged commit 9555720 into kubesphere:master May 5, 2022
@ks-ci-bot
Copy link
Collaborator

@LinuxSuRen: new pull request created: #1972

In response to this:

/cherrypick release-3.3

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@daixijun daixijun deleted the patch-1 branch May 5, 2022 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/devops lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants