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: add debug logs around CMP manifest generation #11185

Merged
merged 2 commits into from Nov 4, 2022

Conversation

arturhoo
Copy link
Contributor

@arturhoo arturhoo commented Nov 3, 2022

Per my conversation with @crenshaw-dev, adding:

  1. Debug logs around manifest generation/manipulation both on the sidecar container and on the main repo-server container
  2. Clarifying in docs that only one cmp can be configured at a time for a given Application

I haven't found test cases for log statements, but I'd be happy to submit some manually produced evidence.

@arturhoo arturhoo force-pushed the plugin-debug branch 3 times, most recently from 5602ef5 to af29712 Compare November 3, 2022 18:52
@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Base: 45.61% // Head: 45.59% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (0bf11ab) compared to base (3047db9).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11185      +/-   ##
==========================================
- Coverage   45.61%   45.59%   -0.02%     
==========================================
  Files         237      237              
  Lines       28920    28928       +8     
==========================================
  Hits        13191    13191              
- Misses      13913    13921       +8     
  Partials     1816     1816              
Impacted Files Coverage Δ
cmpserver/plugin/plugin.go 47.91% <0.00%> (-1.37%) ⬇️
reposerver/repository/repository.go 60.88% <0.00%> (-0.23%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@crenshaw-dev crenshaw-dev changed the title cmp: add debug logs around manifest generation docs: add debug logs around CMP manifest generation Nov 3, 2022
cmpserver/plugin/plugin.go Outdated Show resolved Hide resolved
reposerver/repository/repository.go Outdated Show resolved Hide resolved
docs/user-guide/config-management-plugins.md Outdated Show resolved Hide resolved
Artur Rodrigues added 2 commits November 3, 2022 21:17
Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>
Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>
@crenshaw-dev crenshaw-dev changed the title docs: add debug logs around CMP manifest generation chore: add debug logs around CMP manifest generation Nov 4, 2022
Copy link
Collaborator

@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.

Thanks @arturhoo!

@crenshaw-dev crenshaw-dev merged commit a773b1e into argoproj:master Nov 4, 2022
ashutosh16 pushed a commit to ashutosh16/argo-cd that referenced this pull request Nov 23, 2022
* docs: note one single CMP per app

Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>

* cmp: debug logs around manifest handling

Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>

Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>
crenshaw-dev pushed a commit that referenced this pull request Dec 3, 2022
* docs: note one single CMP per app

Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>

* cmp: debug logs around manifest handling

Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>

Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>
@crenshaw-dev
Copy link
Collaborator

Cherry-picked onto release-2.5 for 2.5.4.

@arturhoo arturhoo deleted the plugin-debug branch December 15, 2022 15:04
emirot pushed a commit to emirot/argo-cd that referenced this pull request Jan 27, 2023
* docs: note one single CMP per app

Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>

* cmp: debug logs around manifest handling

Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>

Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>
Signed-off-by: emirot <emirot.nolan@gmail.com>
sujeilyfonseca pushed a commit to sujeilyfonseca/argo-cd that referenced this pull request Mar 7, 2023
* docs: note one single CMP per app

Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>

* cmp: debug logs around manifest handling

Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>

Signed-off-by: Artur Rodrigues <artur.rodrigues@lacework.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants