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

Clean up interface for building + releasing #631

Closed
bobcatfish opened this issue Mar 18, 2019 · 7 comments
Closed

Clean up interface for building + releasing #631

bobcatfish opened this issue Mar 18, 2019 · 7 comments
Labels
design This task is about creating and discussing a design help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@bobcatfish
Copy link
Collaborator

Expected Behavior

If automation (or a user) wants to create a TaskRun or PipelineRun to release the tekton pipelines project:

  1. The Task should be able to use images for each step that have all the dependencies they need
  2. It should be possible to auth for pushing images to registries to fall back in the following order:
    a. If the user provided a service account to the run, use that
    b. Otherwise use the default account in the namespace (creds automatically provided to the executing container)

Actual Behavior

In #528 and #529 we had to add some significant hacks to make ko work in a Task:

  1. We had to have a step to install ko and copy the binary around so we could use it in later steps
  2. We had to have a step to copy the go binary + supporting libs out of a golang image so we could use go in the gcloud image
  3. We call gcloud auth configure-docker to setup docker auth which 1) only works in GCP based projects and 2) only works with default service credentials (not user supplied service accounts)

Additional Info

@bobcatfish bobcatfish added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. design This task is about creating and discussing a design labels Mar 18, 2019
bobcatfish added a commit to bobcatfish/pipeline that referenced this issue Mar 20, 2019
Instead of doing a lot of hacks to make sure we have all the tools we
need to auth + invoke ko, let's build an image that has what we need in
advance.

Eventually we should be able to build this image and refer to the built
image in our steps (tektoncd#639) but for now we'll have to hardcode it.

We may also improve this image in tektoncd#631, or decide to move away from `ko`
entirely.
bobcatfish added a commit to bobcatfish/pipeline that referenced this issue Mar 20, 2019
Instead of doing a lot of hacks to make sure we have all the tools we
need to auth + invoke ko, let's build an image that has what we need in
advance.

Eventually we should be able to build this image and refer to the built
image in our steps (tektoncd#639) but for now we'll have to hardcode it.

We may also improve this image in tektoncd#631, or decide to move away from `ko`
entirely.
bobcatfish added a commit to bobcatfish/pipeline that referenced this issue Mar 20, 2019
Instead of doing a lot of hacks to make sure we have all the tools we
need to auth + invoke ko, let's build an image that has what we need in
advance.

Eventually we should be able to build this image and refer to the built
image in our steps (tektoncd#639) but for now we'll have to hardcode it.

We may also improve this image in tektoncd#631, or decide to move away from `ko`
entirely.
bobcatfish added a commit to bobcatfish/pipeline that referenced this issue Mar 20, 2019
Instead of doing a lot of hacks to make sure we have all the tools we
need to auth + invoke ko, let's build an image that has what we need in
advance.

Eventually we should be able to build this image and refer to the built
image in our steps (tektoncd#639) but for now we'll have to hardcode it.

We may also improve this image in tektoncd#631, or decide to move away from `ko`
entirely.
bobcatfish added a commit to bobcatfish/pipeline that referenced this issue Mar 20, 2019
Instead of doing a lot of hacks to make sure we have all the tools we
need to auth + invoke ko, let's build an image that has what we need in
advance.

Eventually we should be able to build this image and refer to the built
image in our steps (tektoncd#639) but for now we'll have to hardcode it.

We may also improve this image in tektoncd#631, or decide to move away from `ko`
entirely.
tekton-robot pushed a commit that referenced this issue Mar 22, 2019
Instead of doing a lot of hacks to make sure we have all the tools we
need to auth + invoke ko, let's build an image that has what we need in
advance.

Eventually we should be able to build this image and refer to the built
image in our steps (#639) but for now we'll have to hardcode it.

We may also improve this image in #631, or decide to move away from `ko`
entirely.
bobcatfish added a commit to bobcatfish/pipeline that referenced this issue Mar 25, 2019
Looking again at the knative/test-infra release scripts, it looks like
they now tag `latest` on the most recently released images, which makes
sense for us as well (otherwise you can't pull without an explicit tag).

It also looks like the knative release process has changed such that the
process is to copy the most recent nightly-build, but we can decide if
that's the route we want to go down later.

Remove a comment about parsing and `ko`'s declarative model - in tektoncd#631 we
can decide what we want to do about using `ko` for releasing in the
future.
tekton-robot pushed a commit that referenced this issue Mar 26, 2019
Looking again at the knative/test-infra release scripts, it looks like
they now tag `latest` on the most recently released images, which makes
sense for us as well (otherwise you can't pull without an explicit tag).

It also looks like the knative release process has changed such that the
process is to copy the most recent nightly-build, but we can decide if
that's the route we want to go down later.

Remove a comment about parsing and `ko`'s declarative model - in #631 we
can decide what we want to do about using `ko` for releasing in the
future.
@vdemeester
Copy link
Member

@bobcatfish what is the status of this issue ? 👼

@vdemeester
Copy link
Member

@afrittoli @bobcatfish are you ok closing this issue ? (and if there is anything that is still needed from it, creating issues on tektoncd/plumbing instead ?

@tekton-robot
Copy link
Collaborator

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

/close

Send feedback to tektoncd/plumbing.

@tekton-robot
Copy link
Collaborator

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.

/lifecycle rotten

Send feedback to tektoncd/plumbing.

@tekton-robot
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.

/lifecycle stale

Send feedback to tektoncd/plumbing.

@tekton-robot
Copy link
Collaborator

@tekton-robot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

/close

Send feedback to tektoncd/plumbing.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@tekton-robot tekton-robot added the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Aug 13, 2020
@tekton-robot tekton-robot added lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Aug 13, 2020
@bobcatfish
Copy link
Collaborator Author

@bobcatfish what is the status of this issue ? 👼

i think we're still in the same state but it also seems like it hasnt been important enough for anyone to get to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design This task is about creating and discussing a design help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

3 participants