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
pkg/pod: extracting function from the package… #4261
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The following is the coverage report on the affected files.
|
84fbb68
to
b54f113
Compare
The following is the coverage report on the affected files.
|
b54f113
to
c3b92ae
Compare
The following is the coverage report on the affected files.
|
c3b92ae
to
4506b13
Compare
The following is the coverage report on the affected files.
|
4506b13
to
1a3c2be
Compare
The following is the coverage report on the affected files.
|
/cc @abayer @afrittoli |
/test check-pr-has-kind-label |
1a3c2be
to
9d738c0
Compare
The following is the coverage report on the affected files.
|
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.
Looks reasonable - I had a few questions on FIXME
s. =)
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
"k8s.io/apimachinery/pkg/types" | ||
"k8s.io/client-go/kubernetes" | ||
) | ||
|
||
const ( | ||
binVolumeName = "tekton-internal-bin" | ||
binDir = "/tekton/bin" | ||
binVolumeName = "tekton-internal-bin" // FIXME(vdemeester) remove duplication with script package |
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.
There comes a time in every project when a pkg/util/const.go
ends up being handy. =)
@@ -159,7 +163,7 @@ func (b *Builder) Build(ctx context.Context, taskRun *v1beta1.TaskRun, taskSpec | |||
return nil, err | |||
} | |||
|
|||
// Rewrite steps with entrypoint binary. Append the entrypoint init | |||
// Rewrite steps with entrypoint binàary. Append the entrypoint init |
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.
Surprise accent! =)
@@ -134,18 +135,21 @@ func (b *Builder) Build(ctx context.Context, taskRun *v1beta1.TaskRun, taskSpec | |||
|
|||
// Convert any steps with Script to command+args. | |||
// If any are found, append an init container to initialize scripts. | |||
// TODO(vdemeester) get one list of steps, return 1 list of containers |
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.
Do you mean passing in one list of both steps and sidecars, and getting back one list of both step containers and sidecar containers?
@@ -134,18 +135,21 @@ func (b *Builder) Build(ctx context.Context, taskRun *v1beta1.TaskRun, taskSpec | |||
|
|||
// Convert any steps with Script to command+args. | |||
// If any are found, append an init container to initialize scripts. | |||
// TODO(vdemeester) get one list of steps, return 1 list of containers | |||
// TODO(vdemeester) extract breakpoint from scripts |
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.
What's the reason to do this? (just trying to understand, since, honestly, last time I was in this code, breakpoints weren't a thing yet!)
9d738c0
to
d2e9d01
Compare
The following is the coverage report on the affected files.
|
… to smaller packages. Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
d2e9d01
to
1d29739
Compare
The following is the coverage report on the affected files.
|
@vdemeester: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
1 similar comment
@vdemeester: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
@vdemeester: PR needs rebase. 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. |
Rebases are getting out of hand, I'll close this one for now. |
@vdemeester: Closed this PR. In response to this:
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. |
Changes
… to smaller packages.
Signed-off-by: Vincent Demeester vdemeest@redhat.com
/kind cleanup
Opening this for early feedback if those make sense. I am trying to refactor the script and breakpoint part now (both signatures and the way they are tied together and shouldn't probably).
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes