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

operator-sdk/internal/generate: fix CSV path segments for multi-field structs #4166

Conversation

joelanford
Copy link
Member

@joelanford joelanford commented Nov 2, 2020

Description of the change:

Fixes a bug that causes path segments to inadvertently re-use memory from other path segments, causing specDescriptors and statusDescriptors fields to end up with incorrect paths.

Motivation for the change:

Fix bug = good :)

Checklist

If the pull request includes user-facing changes, extra documentation is required:

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 2, 2020
@joelanford joelanford force-pushed the fix/csv-generate-path-segments branch from 41b3f49 to 04c0136 Compare November 2, 2020 19:48
@joelanford joelanford changed the title WIP: operator-sdk/internal/generate: fix CSV path segments for multi-field structs operator-sdk/internal/generate: fix CSV path segments for multi-field structs Nov 2, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 2, 2020
Copy link
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

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

LGTM after addressing nit

Co-authored-by: Eric Stroczynski <estroczy@redhat.com>
Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

/approve

Could we not add these markers in the samples?

@joelanford joelanford merged commit 440b029 into operator-framework:master Nov 2, 2020
@joelanford joelanford deleted the fix/csv-generate-path-segments branch November 2, 2020 22:06
@joelanford
Copy link
Member Author

@camilamacedo86 👍 to adding some spec and/or status descriptor markers to our samples, especially if we don't have to make any other major changes in the samples to support adding them. Can you make another issue to track this?

@joelanford
Copy link
Member Author

/cherry-pick v1.1.x

@openshift-cherrypick-robot

@joelanford: new pull request created: #4168

In response to this:

/cherry-pick v1.1.x

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.

reinvantveer pushed a commit to reinvantveer/operator-sdk that referenced this pull request Feb 5, 2021
… structs (operator-framework#4166)

Co-authored-by: Eric Stroczynski <estroczy@redhat.com>
Signed-off-by: reinvantveer <rein.van.t.veer@geodan.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants