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

chore: Print in-cluster svr addr disabled warning during ArgoDB initialization #14539

Merged
merged 4 commits into from
Jul 17, 2023

Conversation

terrytangyuan
Copy link
Member

util/db/db.go Outdated Show resolved Hide resolved
Signed-off-by: Yuan Tang <[email protected]>
util/db/db.go Outdated Show resolved Hide resolved
Signed-off-by: Yuan Tang <[email protected]>
@codecov
Copy link

codecov bot commented Jul 17, 2023

Codecov Report

Patch coverage: 71.42% and project coverage change: +0.01 🎉

Comparison is base (4bd8b07) 49.79% compared to head (5e16bd9) 49.80%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #14539      +/-   ##
==========================================
+ Coverage   49.79%   49.80%   +0.01%     
==========================================
  Files         261      261              
  Lines       44751    44773      +22     
==========================================
+ Hits        22283    22299      +16     
- Misses      20274    20278       +4     
- Partials     2194     2196       +2     
Impacted Files Coverage Δ
util/db/cluster.go 59.23% <ø> (-0.26%) ⬇️
util/db/db.go 78.94% <71.42%> (-4.84%) ⬇️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@crenshaw-dev crenshaw-dev merged commit 9c0c6bc into argoproj:master Jul 17, 2023
@crenshaw-dev
Copy link
Member

@terrytangyuan is this enough of a problem that it should be cherry-picked?

@terrytangyuan terrytangyuan deleted the update-check branch July 17, 2023 16:55
@terrytangyuan
Copy link
Member Author

I think so but I'll leave that to @alexmt to confirm

@alexmt
Copy link
Collaborator

alexmt commented Jul 17, 2023

Api server liveness probe uses db.NewDB: https://github.com/argoproj/argo-cd/blob/master/server/server.go#L324C9-L324C9

so we still going to see this message a lot .

@terrytangyuan can we make new function public and explicitly call it in main method on server start?

@crenshaw-dev
Copy link
Member

@alexmt any opinion on whether we should cherry-pick this back to patch releases once we've got the final fix?

Jneville0815 pushed a commit to radiusmethod/argo-cd that referenced this pull request Jul 18, 2023
…alization (argoproj#14539)

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization

Signed-off-by: Yuan Tang <[email protected]>

* fix: undo a change

Signed-off-by: Yuan Tang <[email protected]>

* chore: move to a function

Signed-off-by: Yuan Tang <[email protected]>

* chore: rename

Signed-off-by: Yuan Tang <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
Signed-off-by: Jimmy Neville <[email protected]>
@crenshaw-dev
Copy link
Member

/cherry-pick release-2.8

@gcp-cherry-pick-bot
Copy link

Cherry-pick failed with Merge error 9c0c6bcc17a9134397974649f353563c546c730b into temp-cherry-pick-f5b814-release-2.8

terrytangyuan added a commit to terrytangyuan/argo-cd that referenced this pull request Jul 24, 2023
…alization (argoproj#14539)

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization

Signed-off-by: Yuan Tang <[email protected]>

* fix: undo a change

Signed-off-by: Yuan Tang <[email protected]>

* chore: move to a function

Signed-off-by: Yuan Tang <[email protected]>

* chore: rename

Signed-off-by: Yuan Tang <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
terrytangyuan added a commit to terrytangyuan/argo-cd that referenced this pull request Jul 24, 2023
…alization (argoproj#14539)

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization

Signed-off-by: Yuan Tang <[email protected]>

* fix: undo a change

Signed-off-by: Yuan Tang <[email protected]>

* chore: move to a function

Signed-off-by: Yuan Tang <[email protected]>

* chore: rename

Signed-off-by: Yuan Tang <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
terrytangyuan added a commit to terrytangyuan/argo-cd that referenced this pull request Jul 24, 2023
…alization (argoproj#14539)

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization

Signed-off-by: Yuan Tang <[email protected]>

* fix: undo a change

Signed-off-by: Yuan Tang <[email protected]>

* chore: move to a function

Signed-off-by: Yuan Tang <[email protected]>

* chore: rename

Signed-off-by: Yuan Tang <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
terrytangyuan added a commit to terrytangyuan/argo-cd that referenced this pull request Jul 24, 2023
…alization (argoproj#14539)

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization

Signed-off-by: Yuan Tang <[email protected]>

* fix: undo a change

Signed-off-by: Yuan Tang <[email protected]>

* chore: move to a function

Signed-off-by: Yuan Tang <[email protected]>

* chore: rename

Signed-off-by: Yuan Tang <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
crenshaw-dev added a commit that referenced this pull request Jul 24, 2023
…14683)

* chore: Update log level to warn when in-cluster svr addr is disabled but internal addr is used (#14520)

Signed-off-by: Yuan Tang <[email protected]>

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization (#14539)

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization

Signed-off-by: Yuan Tang <[email protected]>

* fix: undo a change

Signed-off-by: Yuan Tang <[email protected]>

* chore: move to a function

Signed-off-by: Yuan Tang <[email protected]>

* chore: rename

Signed-off-by: Yuan Tang <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>

* chore: Print in-cluster svr addr disabled warning when server starts (#14553)

* chore: Print in-cluster svr addr disabled warning when server starts

Signed-off-by: Yuan Tang <[email protected]>

* fix: mock

Signed-off-by: Yuan Tang <[email protected]>

* no interface change

Signed-off-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
crenshaw-dev added a commit that referenced this pull request Jul 24, 2023
…14684)

* chore: Update log level to warn when in-cluster svr addr is disabled but internal addr is used (#14520)

Signed-off-by: Yuan Tang <[email protected]>

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization (#14539)

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization

Signed-off-by: Yuan Tang <[email protected]>

* fix: undo a change

Signed-off-by: Yuan Tang <[email protected]>

* chore: move to a function

Signed-off-by: Yuan Tang <[email protected]>

* chore: rename

Signed-off-by: Yuan Tang <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>

* chore: Print in-cluster svr addr disabled warning when server starts (#14553)

* chore: Print in-cluster svr addr disabled warning when server starts

Signed-off-by: Yuan Tang <[email protected]>

* fix: mock

Signed-off-by: Yuan Tang <[email protected]>

* no interface change

Signed-off-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
crenshaw-dev added a commit that referenced this pull request Jul 24, 2023
…14685)

* chore: Update log level to warn when in-cluster svr addr is disabled but internal addr is used (#14520)

Signed-off-by: Yuan Tang <[email protected]>

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization (#14539)

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization

Signed-off-by: Yuan Tang <[email protected]>

* fix: undo a change

Signed-off-by: Yuan Tang <[email protected]>

* chore: move to a function

Signed-off-by: Yuan Tang <[email protected]>

* chore: rename

Signed-off-by: Yuan Tang <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>

* chore: Print in-cluster svr addr disabled warning when server starts (#14553)

* chore: Print in-cluster svr addr disabled warning when server starts

Signed-off-by: Yuan Tang <[email protected]>

* fix: mock

Signed-off-by: Yuan Tang <[email protected]>

* no interface change

Signed-off-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
crenshaw-dev added a commit that referenced this pull request Jul 24, 2023
…14686)

* chore: Update log level to warn when in-cluster svr addr is disabled but internal addr is used (#14520)

Signed-off-by: Yuan Tang <[email protected]>

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization (#14539)

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization

Signed-off-by: Yuan Tang <[email protected]>

* fix: undo a change

Signed-off-by: Yuan Tang <[email protected]>

* chore: move to a function

Signed-off-by: Yuan Tang <[email protected]>

* chore: rename

Signed-off-by: Yuan Tang <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>

* chore: Print in-cluster svr addr disabled warning when server starts (#14553)

* chore: Print in-cluster svr addr disabled warning when server starts

Signed-off-by: Yuan Tang <[email protected]>

* fix: mock

Signed-off-by: Yuan Tang <[email protected]>

* no interface change

Signed-off-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
yyzxw pushed a commit to yyzxw/argo-cd that referenced this pull request Aug 9, 2023
…alization (argoproj#14539)

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization

Signed-off-by: Yuan Tang <[email protected]>

* fix: undo a change

Signed-off-by: Yuan Tang <[email protected]>

* chore: move to a function

Signed-off-by: Yuan Tang <[email protected]>

* chore: rename

Signed-off-by: Yuan Tang <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
@suzaku suzaku mentioned this pull request Aug 15, 2023
tesla59 pushed a commit to tesla59/argo-cd that referenced this pull request Dec 16, 2023
…alization (argoproj#14539)

* chore: Print in-cluster svr addr disabled warning during ArgoDB initialization

Signed-off-by: Yuan Tang <[email protected]>

* fix: undo a change

Signed-off-by: Yuan Tang <[email protected]>

* chore: move to a function

Signed-off-by: Yuan Tang <[email protected]>

* chore: rename

Signed-off-by: Yuan Tang <[email protected]>

---------

Signed-off-by: Yuan Tang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants