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!(logging): Always archive logs if in config. Closes #1790 #1860

Merged
merged 1 commit into from
Dec 18, 2019

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Dec 16, 2019

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234". Why? for the release notes.
  • Optional. I've added My organization is added to the README.
  • I've signed the CLA and required builds are green.

Closes #1790

Copy link
Member

@simster7 simster7 left a comment

Choose a reason for hiding this comment

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

Implementation LGTM, although I think that my and @irlevesque's comments from #1791 should be considered: #1791 (comment) and #1791 (comment).

If you think it's fine regardless, then this should be good to merge.

@alexec
Copy link
Contributor Author

alexec commented Dec 18, 2019

@sarabala1979 @jessesuen myself and @irlevesque have implemented this feature separately, but slightly differently. The key difference is that he has introduced a new flag, whereas I have re-used an existing flag.

Pros/con of reuse are:

  • Workflows with artifacts will already use this flag (side-effect).
  • Anyone who has this flag will automatically start collecting logs for workflows that do not have artifacts.

My take is, that though people might not expect this change in behavior, that is to me what the intent of the configuration item is.

Thoughts.

@alexec alexec changed the title feat: Always archive logs if in config. Closes #1790 feat!(logging): Always archive logs if in config. Closes #1790 Dec 18, 2019
@jessesuen
Copy link
Member

Are you saying that if in the workflow-controller-configmap, archiveLogs: true is set, that we currently do not archive logs, but with this change it will? If so, I'm supportive of this change in behavior since that was the intent.

@alexec alexec merged commit 54f4490 into argoproj:master Dec 18, 2019
@alexec alexec deleted the archive-logs branch December 18, 2019 18:34
@Ark-kun
Copy link
Member

Ark-kun commented Apr 26, 2020

Are you saying that if in the workflow-controller-configmap, archiveLogs: true is set, that we currently do not archive logs, but with this change it will? If so, I'm supportive of this change in behavior since that was the intent.

Yes, this is the case. I've just discovered this bug (in older Argo version) and I'm glad that it's already fixed. Thanks @alexec

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.

[Feature Request] Globally-defined logging to artifact repository
4 participants