-
Notifications
You must be signed in to change notification settings - Fork 5
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
codereview #1
base: main
Are you sure you want to change the base?
codereview #1
Conversation
pkg/controllers/argocd.go
Outdated
// Client argocdclient. | ||
} | ||
|
||
func NewArgoCDClient() (ArgoCD, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Catchall function for now, which would be broken up into:
NewArgoCDClient()
which takes the config required as a param and returns the client- Convenience functions for reading whatever data we need from the ArgoCD server
Release `porter-agent` to `v3`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome 💯
Left some minor comments for the moment where I noticed inconsistencies with how we're doing things elsewhere.
We'll definitely need some overall consolidation in the rest of the agent code (more explicitly naming of consumers/producers).
} | ||
|
||
err := h.ArgoCDResourceConsumer.Consume(r.Context(), req) | ||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use the apierrors
package from porter to ensure consistent logging/formatting of internal errors -- see here for reference.
Add `namespace` to query for `pod_values`
Co-authored-by: abelanger5 <[email protected]>
TODO:
|
No description provided.