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

Use PATCH to update ready annotation #3494

Merged
merged 1 commit into from
Nov 6, 2020

Conversation

imjasonh
Copy link
Member

@imjasonh imjasonh commented Nov 4, 2020

This should be faster and more reliable than the get-modify-write we use
today.

Closes #3310

/kind cleanup

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • [y] Includes tests (if functionality changed/added)
  • [n] Includes docs (if user facing)
  • [y] Commit messages follow commit message best practices
  • [y] Release notes block has been filled in or deleted (only if no user facing changes)

See the contribution guide for more details.

Double check this list of stuff that's easy to miss:

Reviewer Notes

If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.

Release Notes

Use a PATCH to update pods to start running.

@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 4, 2020
@tekton-robot tekton-robot requested review from bobcatfish and a user November 4, 2020 16:12
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/pod/entrypoint.go 85.1% 85.9% 0.9

@vdemeester
Copy link
Member

@imjasonh doesn't this fixe #3310 ?

@imjasonh
Copy link
Member Author

imjasonh commented Nov 4, 2020

@imjasonh doesn't this fixe #3310 ?

Oh yeah it should, as I understand the issue.

@imjasonh
Copy link
Member Author

imjasonh commented Nov 4, 2020

/retest

@vdemeester
Copy link
Member

Alright, let me add a close then 😉

@imjasonh
Copy link
Member Author

imjasonh commented Nov 4, 2020

/retest

1 similar comment
@imjasonh
Copy link
Member Author

imjasonh commented Nov 4, 2020

/retest


func init() {
// https://stackoverflow.com/questions/55573724/create-a-patch-to-add-a-kubernetes-annotation
readyAnnotationPath := "/metadata/annotations/" + strings.Replace(readyAnnotation, "/", "~1", 1)
Copy link
Member

@pritidesai pritidesai Nov 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replacing forward slash in "tekton.dev/ready" with ~1: "tekton.dev~1ready" 😱 yup saw the linked RFC

@pritidesai
Copy link
Member

thank you @imjasonh
/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 5, 2020
@vdemeester vdemeester added this to the Pipelines v0.18 milestone Nov 5, 2020
This should be faster and more reliable than the get-modify-write we use
today.
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Nov 5, 2020
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/pod/entrypoint.go 84.1% 84.8% 0.8

@pritidesai
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 5, 2020
@pritidesai
Copy link
Member

@tektoncd/core-maintainers please if you have bandwidth to review this, we need this for 0.18 🙏

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 6, 2020
@imjasonh
Copy link
Member Author

imjasonh commented Nov 6, 2020

/retest

2 similar comments
@imjasonh
Copy link
Member Author

imjasonh commented Nov 6, 2020

/retest

@imjasonh
Copy link
Member Author

imjasonh commented Nov 6, 2020

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TaskRun is failing to run/complete in some cases (on different namespace, …)
4 participants