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

[WIP] Don't call CreateOrUpdateZone if the zone already exists #2057

Closed

Conversation

mboersma
Copy link
Contributor

@mboersma mboersma commented Feb 8, 2022

What type of PR is this?

/kind bug

What this PR does / why we need it:

Since we don't allow changes to a private dns zone, we shouldn't be calling CreateOrUpdateZone on a zone that already exists. See #1791 (comment).

Which issue(s) this PR fixes:

Fixes #1872

Special notes for your reviewer:

cc: @sonasingh46, let me know if this is what you had in mind.

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. 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 Feb 8, 2022
@k8s-ci-robot k8s-ci-robot added area/provider/azure Issues or PRs related to azure provider sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. labels Feb 8, 2022
@mboersma
Copy link
Contributor Author

mboersma commented Feb 8, 2022

/assign @shysank

@mboersma mboersma force-pushed the create-or-update-priv-dns branch from 9f7474d to 91ec3ae Compare February 8, 2022 21:27
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please ask for approval from shysank after the PR has been reviewed.

The full list of commands accepted by this bot can be found 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
Copy link
Contributor

@mboersma: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-azure-coverage 91ec3ae link false /test pull-cluster-api-provider-azure-coverage
pull-cluster-api-provider-azure-test 91ec3ae link true /test pull-cluster-api-provider-azure-test

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@mboersma mboersma changed the title Don't call CreateOrUpdateZone if the zone already exists [WIP] Don't call CreateOrUpdateZone if the zone already exists Feb 8, 2022
@k8s-ci-robot k8s-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 Feb 8, 2022
@sonasingh46
Copy link
Contributor

@mboersma -- Yes. At that time, I was not aware about async framework. AFAIK, the async framework inherently fixes this. But for that we have to move to async framework for this one.
@shysank opened up a PR for to make the privatedns async changes.
Ref: #2007

@mboersma
Copy link
Contributor Author

mboersma commented Feb 9, 2022

/close

Awesome, thanks for the clues. 😄

Closing in favor of #2007, which should also fix #1872.

@k8s-ci-robot
Copy link
Contributor

@mboersma: Closed this PR.

In response to this:

/close

Awesome, thanks for the clues. 😄

Closing in favor of #2007, which should also fix #1872.

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.

@mboersma mboersma deleted the create-or-update-priv-dns branch February 9, 2022 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/provider/azure Issues or PRs related to azure provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/bug Categorizes issue or PR as related to a bug. release-note-none Denotes a PR that doesn't merit a release note. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. 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.

CreateOrUpdate should not be called for existing zone
4 participants