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

Replace unstructured query with structured query #154

Merged

Conversation

erikgb
Copy link
Contributor

@erikgb erikgb commented Mar 16, 2022

Converted query for list of SubnamespaceAnchors to a structured query (no need to use UnstructuredList, and also had the list-kind bug described in the following).

Also fixing a bug in query for generic objects using UnstructuredList; when querying a List, one should use the object list kind (and not the object kind).

Tested: Ran unit-tests ('make test') and e2e-test ('make test-e2e') successfully. After the controller probes PR got merged, I am sadly no longer able to run integration test ('make test-e2e'). The pod is just crash looping. :-(

Extracted from #153.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 16, 2022
@erikgb
Copy link
Contributor Author

erikgb commented Mar 16, 2022

/cc @adrianludwin

@erikgb
Copy link
Contributor Author

erikgb commented Mar 16, 2022

/retest

@rjbez17
Copy link
Contributor

rjbez17 commented Mar 23, 2022

Since we are delaying #153 to 1.1, should this wait as well?

@erikgb
Copy link
Contributor Author

erikgb commented Mar 23, 2022

Since we are delaying #153 to 1.1, should this wait as well?

No, this is an improvement/bugfix, and should go in. I have no idea why Unstructured was used for a CR defined in HNC.

@adrianludwin
Copy link
Contributor

adrianludwin commented Mar 24, 2022 via email

@adrianludwin
Copy link
Contributor

Let's hold this until #160 goes in and we get a clean postsubmit run.

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 24, 2022
Converted query for list of SubnamespaceAnchors to a structured query (no need to use UnstructuredList, and also had the list-kind bug described in the following).

Also fixing a bug in query for generic objects using UnstructuredList; when querying a List, one should use the object list kind (and not the object kind).

Tested: Ran unit-tests ('make test') and e2e-test ('make test-e2e') successfully.
@erikgb
Copy link
Contributor Author

erikgb commented Mar 24, 2022

Rebased and tested on my workstation now. Should be GTM.

@adrianludwin adrianludwin added this to the release-v1.0 milestone Mar 24, 2022
@adrianludwin
Copy link
Contributor

Postsubmits are clean again.
/hold cancel
/approve
/lgtm

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 24, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adrianludwin, erikgb

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

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 24, 2022
@k8s-ci-robot k8s-ci-robot merged commit a76c1c7 into kubernetes-sigs:master Mar 24, 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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

None yet

4 participants