-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix: add missing Argo CronWorkflow to transforms #7205
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
fix: add missing Argo CronWorkflow to transforms #7205
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). For more information, open the CLA check for this pull request. |
hi there @kevin-hanselman! Thanks for opening this. Before moving forward, would you be willing to try using our new config that allows you to specify kubernetes resources to be modifiable by skaffold? Our docs for this can be found here. |
@MarlonGamez I am using that now, but I think it's a very awkward and surprising solution given that the rest of the Argo resources are built-in to Skaffold already. What is the concern with adding CronWorkflow to Skaffold? |
@kevin-hanselman I don't think we have any concern about it, just that we'd like to find a comfortable solution for people in the future to avoid them having to go through the friction of creating a PR for skaffold to work with their resources. You're right that we have the other argo resources here so I think it does make sense to add this one for this PR. I'll approve and merge this one. Can I ask what you think would improve the awkwardness/surprise of the solution we have now? |
@MarlonGamez Merging this PR 😄 Really though: The surprise comes from expecting Skaffold to treat CronWorkflow resources the same as other Argo resources. The awkwardness comes from the workaround -- using a custom resource selector for CronWorkflow resources specifically. Another dev looking at my Skaffold config might ask: "Why aren't you adding other Argo resources to the resourceSelector section?" (That is, if I hadn't linked to this PR in the file. 😄) I think the resource selector is a huge win, by the way. Please don't mistake this PR for criticism of that concept. It's the inconsistency of handling Argo resources that's the issue for me. If for some reason this PR wouldn't get merged, the next best solution, IMO, would be to remove all Argo resources from the built-in transforms and lean on the resource selector wholesale. |
Ahh okay, makes sense, thanks for clarifying! Appreciate the response :) |
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.
dummy FB
Codecov Report
@@ Coverage Diff @@
## main #7205 +/- ##
==========================================
- Coverage 70.48% 68.51% -1.97%
==========================================
Files 515 560 +45
Lines 23150 26495 +3345
==========================================
+ Hits 16317 18153 +1836
- Misses 5776 7090 +1314
- Partials 1057 1252 +195
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
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.
lgtm
Description
Other Argo Workflows CRDs with images are already allowed in the source. This PR adds the missing CronWorkflow CRD.
User facing changes
Skaffold will now appropriately transform the images mentioned in CronWorkflow resources.