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(infoblox): set view and zone query parameters #3560

Conversation

cronik
Copy link
Contributor

@cronik cronik commented Apr 23, 2023

Description

The zone and view search query parameters are not included in record search requests. This can result in more records returned in the query than necessary.

For example if more than one zone is returned, rather than issuing a query on each respective zone it is searching all zones on each iteration.

In our environment we noticed a reduction in response body size from around 14MB down to 1MB.

Checklist

  • Unit tests updated
  • End user documentation updated

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 23, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @cronik!

It looks like this is your first PR to kubernetes-sigs/external-dns 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/external-dns has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 23, 2023
@cronik cronik force-pushed the feature/infoblox-zone-view-query-parameters branch 2 times, most recently from f682a3b to 5519b79 Compare April 24, 2023 18:32
@cronik
Copy link
Contributor Author

cronik commented May 3, 2023

I believe this PR partially or completely fixes #3207

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 4, 2023
@cronik cronik force-pushed the feature/infoblox-zone-view-query-parameters branch from 5519b79 to 9474025 Compare May 4, 2023 14:12
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 4, 2023
@cronik
Copy link
Contributor Author

cronik commented May 4, 2023

The recently merged #3301 introduced a regression by defaulting the view query parameter to "default". I tested a query in my environment which does not have a "default" view and it fails with

{
	"Error": "AdmConDataNotFoundError: View default not found",
	"code": "Client.Ibap.Data.NotFound",
	"text": "View default not found"
}

#3301 also added searchParameters to the PTR record query. But according to the comment in that block the arpa zone must be used for that query, not fqdn.

This PR includes the view parameter to the zones query if present.

/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label May 4, 2023
The `zone` and `view` search query parameters are not included in record search requests. This can result in more records returned in the query than necessary.

For example if more than one zone is returned, rather
than issuing a query on each respective zone it is
searching all zones on each iteration.
@cronik cronik force-pushed the feature/infoblox-zone-view-query-parameters branch from 9474025 to 0f2d419 Compare May 4, 2023 14:35
@szuecs
Copy link
Contributor

szuecs commented May 4, 2023

/ok-to-test
/approve

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label May 4, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cronik, szuecs

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 4, 2023
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 24, 2023
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 28, 2023
@johngmyers
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 12, 2023
@johngmyers
Copy link
Contributor

/test pull-external-dns-lint
/test pull-external-dns-unit-test

@k8s-ci-robot k8s-ci-robot merged commit 33bab08 into kubernetes-sigs:master Aug 12, 2023
11 checks passed
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. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", 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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants