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

Fix Workspaces in Sidecar to be serialized as workspaces not Workspaces #3966

Merged
merged 3 commits into from
May 23, 2021

Conversation

jeffmaury
Copy link
Contributor

Fixes #3964

Signed-off-by: Jeff MAURY jmaury@redhat.com

Changes

Add JSON annotation in Workspaces field in Sidecar

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Docs included if any changes are user facing
  • Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Release notes block below has been filled in or deleted (only if no user facing changes)

Release Notes

NONE

@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. labels May 21, 2021
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented May 21, 2021

CLA Signed

The committers are authorized under a signed CLA.

@tekton-robot tekton-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 21, 2021
@tekton-robot
Copy link
Collaborator

Hi @jeffmaury. Thanks for your PR.

I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@afrittoli
Copy link
Member

/ok-to-test

@tekton-robot tekton-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 21, 2021
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbwsg

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 May 21, 2021
@ghost
Copy link

ghost commented May 21, 2021

/test tekton-pipeline-unit-tests

@ghost
Copy link

ghost commented May 21, 2021

/test pull-tekton-pipeline-build-tests

/test pull-tekton-pipeline-alpha-integration-tests

@ghost
Copy link

ghost commented May 22, 2021

running ./hack/update-openapigen.sh and pushing the changes should fix the build tests.

/test pull-tekton-pipeline-alpha-integration-tests

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 22, 2021
@ghost
Copy link

ghost commented May 22, 2021

Ah, apologies, a wrinkle in the way the hack scripts work: they need to be run from within a GOPATH otherwise they give relative references:

-	Ref:     ref("github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1.WhenExpression"),
+	Ref:     ref("./pkg/apis/pipeline/v1beta1.WhenExpression"),

The way I do this is to symlink my dev directory to $GOPATH/src/github.com/tektoncd/pipeline:

ln -s <path to pipeline source code> $GOPATH/src/github.com/tektoncd/pipeline
cd $GOPATH/src/github.com/tektoncd/pipeline
./hack/update-openapigen.sh

🤞 hopefully that should net us the updated openapi spec w/ absolute references.

@tekton-robot
Copy link
Collaborator

tekton-robot commented May 22, 2021

@jeffmaury: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-tekton-pipeline-alpha-integration-tests 18bd514 link /test pull-tekton-pipeline-alpha-integration-tests

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.

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
@tekton-robot tekton-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 22, 2021
@chmouel
Copy link
Member

chmouel commented May 23, 2021

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label May 23, 2021
@tekton-robot tekton-robot merged commit a9b729b into tektoncd:main May 23, 2021
@jerop jerop added the needs-cherry-pick Indicates a PR needs to be cherry-pick to a release branch label Jun 7, 2021
@jerop
Copy link
Member

jerop commented Jun 7, 2021

we had the same issue with WhenExpressions fields – we had to support both cases for a while – we can avoid backwards incompatibility by patching 0.24

@ghost ghost removed the needs-cherry-pick Indicates a PR needs to be cherry-pick to a release branch label Jan 26, 2022
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/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sidecar struct field Workspaces has not JSON annotation
5 participants