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

Add DNS Service Zone MR #305

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

sergenyalcin
Copy link
Contributor

Description of your changes

Fixes #266

Implementation of DNS Zone MR. The implementation of the resource is done on the Network API Group. Because when you want to create a DNS Zone via az cli, you need to run az network dns zone create command. This may indicate that it would be correct for the DNS Zone resource to be in this API Group.

Every field in the Resource's Spec was not used in the update check. Since some fields are immutable, the fields that are likely to be updated have been selected and checked (pkg/clients/network/network.go:162)

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

  • Adding a DNS Zone via MR
  • Updating the Tags of the DNS Zone resource
  • Deleting existing DNS Zone

@sergenyalcin sergenyalcin changed the title Dns service Add DNS Service Zone MR Nov 17, 2021
@sergenyalcin sergenyalcin removed the request for review from ulucinar November 17, 2021 14:48
@sergenyalcin sergenyalcin marked this pull request as draft November 17, 2021 14:48
@sergenyalcin sergenyalcin force-pushed the dns-service branch 3 times, most recently from 82aee17 to a9e502a Compare November 21, 2021 20:12
@sergenyalcin sergenyalcin marked this pull request as ready for review November 21, 2021 20:13
pkg/clients/dns/dns.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
@sergenyalcin sergenyalcin force-pushed the dns-service branch 2 times, most recently from fde0e73 to e44687d Compare January 20, 2022 07:58
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
@ulucinar
Copy link
Collaborator

ulucinar commented Jan 20, 2022

The reasoning behind my suggestion of capitalizing DNS record type names comes from the DNS RFC:
image

@ulucinar ulucinar closed this Jan 20, 2022
@ulucinar ulucinar reopened this Jan 20, 2022
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
apis/dns/v1alpha1/dns_types.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@ulucinar ulucinar left a comment

Choose a reason for hiding this comment

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

I've left some nitpicks for you to consider. As long as we behave correctly, the decision is yours. Thank you very much @sergenyalcin.

examples/dns/recordset.yaml Outdated Show resolved Hide resolved
pkg/clients/dns/dns.go Show resolved Hide resolved
pkg/clients/dns/dns.go Outdated Show resolved Hide resolved
pkg/clients/dns/dns.go Outdated Show resolved Hide resolved
pkg/clients/dns/dns.go Show resolved Hide resolved
pkg/controller/dns/recordset/managed.go Outdated Show resolved Hide resolved
pkg/controller/dns/recordset/managed.go Outdated Show resolved Hide resolved
pkg/controller/dns/recordset/managed.go Outdated Show resolved Hide resolved
pkg/controller/dns/recordset/managed.go Outdated Show resolved Hide resolved
pkg/controller/dns/zone/managed.go Show resolved Hide resolved
@sergenyalcin sergenyalcin force-pushed the dns-service branch 2 times, most recently from 289ba35 to c84be0c Compare January 24, 2022 21:26
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
Copy link
Collaborator

@ulucinar ulucinar left a comment

Choose a reason for hiding this comment

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

Thank you @sergenyalcin for working on this PR, very much appreciated!

@ulucinar ulucinar merged commit cdb1a83 into crossplane-contrib:master Jan 25, 2022
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.

Support Azure DNS service
2 participants