Closed chanwit closed 3 years ago
@chanwit Thanks for the contribution, I'll take a look, and I'd like to get this landed.
I'll get a new release with this change out.
I am working to replace the current PipelineRef mechanism with a TriggerTemplates and TriggerBindings implementation, and it's meant replacing the pipeline creation mechanism, but it's not yet complete.
This would change the requirements around service accounts for pipelines.
Thank you very much Kevin.
I'm also working on a patch to scan tags and match them with the latest commit. Wdyt about this feature?
@chanwit It sounds interesting, can you explain a bit more?
Would this find the tag for a commit somehow, something similar to https://github.com/bigkevmcd/gitimages/blob/master/cmd/gitimages/labels.go and https://github.com/bigkevmcd/gitimages/blob/master/cmd/gitimages/tags.go ?
Same idea, but it's a slightly different implementation. My code is working only for GitHub via its API:
Hi @chanwit sorry for taking so long to get back to this, I've been relaxing over the mid-winter break :-)
If I'm understanding the code correctly, the basic idea is that you want to track a tag, and trigger a pipelinerun when the ref for the tag changes?
This sounds like a pretty good addition, if you want some review advice on the current implementation, I'm happy to give you some pointers.
that's correct. I've been testing it during holidays and it seems to work great for my use cases.
will make a PR for you to review :-)
Problem: A pipeline run requires a specific service account to access some services, like Quay.io. The current Repository CRD does not allow to do so.
This PR implements a way to specify a service account's name for the
pipelineRef
inRepository
.Here's an example of using serviceAccountName in a Repository: