-
Notifications
You must be signed in to change notification settings - Fork 113
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
Add EP on Build Strategies Parametrization #697
Add EP on Build Strategies Parametrization #697
Conversation
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.
Nice. Bringing some suggestions and aspects for discussion.
45a2ef6
to
88d89ff
Compare
Quick FYI, I've been asked to take a look at #224 and compose an EP for that. Now, while #224 gets into treating env vars as a "first class citizen" in the api, vs. just a subset of parameters, my thought is that this EP can still be a building block or prereq for an EP written for env vars in that we would want to look at supporting parameterization/perform variable substitution/provide defaults for env vars like what is available for Tekton. In my initial planning for the EP, I'm thinking I'm going to call this one out as a "dependency" in some fashion, even though separate APIs will arise to satisfy the "first class treatment" @sbose78 called for. Anyway, I'm not saying this EP should reference "env var scenarios" specifically. Just wanted to mention here what has been alluded to in other issues, etc. as well as I think the community call, in that there is "a connection". Certainly the motivations @qu1queee mentioned up top in this EP lend themselves minimally to what Tekton does with env vars today, at least IMO. And of course opinions on this dependency notion, connection, etc. are welcome. That said, if you want @qu1queee to call out the "env var scenario" in some fashion here I certainly won't object. Some quick references I'm sure the folks already commenting here are aware of: Just refreshed my memory with the tekton code: the tekton pipline taskrun reconciler performs variable substitution on the taskrun.taskspec.step/container.envvar fields; As shipwright generates a task run with a task spec, would can leverage tekton's support here. Will include this in my upcoming ep. Just refreshed my memory with the tekton code: step templates are part of the task spec which is what shipwright manipulates when building a task run. So, the defaulting notion provided by step templates also seems to be something we can exploit. Shipwright's task spec generation is not generating a spec template yet, but I see no reason in the current code why it could not. (you see a direct use of params to seed the k8s |
c456624
to
670e628
Compare
@adambkaplan this EP assumes the decision is to expose the Tekton nomenclature. |
@gabemontero thanks, nice summary. I think we can keep this EP without a notion of env vars, but I definitely see this the other way around, where env vars EP should reference this one, mainly because of the variable substitution, where a var comes for a parameter definition. |
670e628
to
a92490f
Compare
a92490f
to
3f917b3
Compare
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SaschaSchwarze0 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This covers the use case introduced in issue shipwright-io#184 This also will provide an enhancement in the current Build API, by migrating existing fields into a more readable/understandable path.
3f917b3
to
00590b2
Compare
/lgtm |
sounds good @qu1queee and my EP draft #726 in fact does reference this one thanks |
Changes
Provides an EP on how to manage parameters in Strategies, by providing more flexibility to Shipwright users and strategy administrators.
Submitter Checklist
Release Notes