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

feat: dex subcommand logformat/loglevel flags (#8524) #8542

Merged
merged 3 commits into from
Apr 22, 2022

Conversation

krrrr38
Copy link
Contributor

@krrrr38 krrrr38 commented Feb 16, 2022

Signed-off-by: krrrr38 k.kaizu38@gmail.com

Closes #8524

Motivation

argocd-dex rundex output both text and json logs. And it cannot change log format in rundex subcommand.

Changes

logformat/loglevel options are available on argocd-dex subcommands.

$ go run main.go rundex --logformat json
{"level":"fatal","msg":"exec: \"dex\": executable file not found in $PATH","time":"2022-02-17T08:26:13+09:00"}
exit status 20
$ go run main.go rundex --logformat text
FATA[0000] exec: "dex": executable file not found in $PATH
exit status 20

Checklist:

  • (b) this is a bug fix dex rundex cannot change logformat and loglevel #8524
  • The title of the PR states what changed and the related issues number (used for the release note).
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates? -> yes
  • I've updated documentation as required by this PR. -> yes
  • Optional. My organization is added to USERS.md.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
    • put --logformat json example above
  • My build is green (troubleshooting builds).

@krrrr38 krrrr38 changed the title feat: dex subcommand logformat/loglevel flags ](#8524) feat: dex subcommand logformat/loglevel flags (#8524) Feb 16, 2022
@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

Merging #8542 (bb5af31) into master (5b29320) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #8542      +/-   ##
==========================================
- Coverage   45.53%   45.51%   -0.02%     
==========================================
  Files         219      219              
  Lines       25897    25897              
==========================================
- Hits        11792    11787       -5     
- Misses      12463    12467       +4     
- Partials     1642     1643       +1     
Impacted Files Coverage Δ
applicationset/services/scm_provider/github.go 75.29% <0.00%> (-5.89%) ⬇️
util/settings/settings.go 48.10% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b29320...bb5af31. Read the comment docs.

Signed-off-by: krrrr38 <k.kaizu38@gmail.com>
Copy link
Member

@chetan-rns chetan-rns left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@crenshaw-dev crenshaw-dev left a comment

Choose a reason for hiding this comment

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

lgtm!

@crenshaw-dev crenshaw-dev enabled auto-merge (squash) April 11, 2022 15:00
@crenshaw-dev
Copy link
Member

Looks like I need to investigate a flaky e2e test.

@crenshaw-dev crenshaw-dev merged commit acfc396 into argoproj:master Apr 22, 2022
@krrrr38 krrrr38 deleted the dex-log-flags branch April 22, 2022 05:38
wojtekidd pushed a commit to wojtekidd/argo-cd that referenced this pull request Apr 25, 2022
Signed-off-by: krrrr38 <k.kaizu38@gmail.com>

Co-authored-by: Michael Crenshaw <michael@crenshaw.dev>
Signed-off-by: wojtekidd <wojtek.cichon@protonmail.com>
@rgarrigue
Copy link

Hi @crenshaw-dev @chetan-rns

Can't see this one in the changelog. Will it make it in 2.4 ? Do you have any ETA for general availability ?

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.

dex rundex cannot change logformat and loglevel
4 participants