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

PublicIPAddress support #264

Conversation

vaspahomov
Copy link

@vaspahomov vaspahomov commented Jun 21, 2021

Hello!

I want to add VM instances support in crossplane/provider-azure.

This is first part of big patch with Public IP addresses support

Description of your changes

Add support of Public IP Address.
Fixes #208

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

Same like in other resources like Subnet and VisrtualNetwork. And also manually tested

@vaspahomov vaspahomov mentioned this pull request Jun 22, 2021
2 tasks
@negz negz closed this Aug 7, 2021
@negz negz reopened this Aug 7, 2021
apis/network/v1alpha3/types.go Show resolved Hide resolved
apis/network/v1alpha3/types.go Show resolved Hide resolved
apis/network/v1alpha3/types.go Show resolved Hide resolved
apis/network/v1alpha3/types.go Outdated Show resolved Hide resolved
apis/network/v1alpha3/types.go Outdated Show resolved Hide resolved
pkg/controller/network/publicipaddress/managed.go Outdated Show resolved Hide resolved
pkg/controller/network/publicipaddress/managed.go Outdated Show resolved Hide resolved
Comment on lines 105 to 110
o := managed.ExternalObservation{
ResourceExists: true,
ConnectionDetails: managed.ConnectionDetails{},
}

return o, nil
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
o := managed.ExternalObservation{
ResourceExists: true,
ConnectionDetails: managed.ConnectionDetails{},
}
return o, nil
return managed.ExternalObservation{
ResourceExists: true,
ResourceUpToDate: true,
}, nil

We return ResourceUpToDate: true because I see that nothing can be updated in publicipaddress.external.Update. Is this really the case, can no fields be updated? What about tags?

Copy link
Author

Choose a reason for hiding this comment

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

I've add todo about update support. It's not very often case for now

pkg/controller/network/publicipaddress/managed.go Outdated Show resolved Hide resolved
pkg/controller/network/publicipaddress/managed.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.

Thank you @vaspahomov for your work on this PR! Could you please rebase this PR and make sure all your commits are signed following the guide here. We also require them to be signed-off using something similar to git commit -s. git log --show-signature should display commit signatures.

@ulucinar ulucinar mentioned this pull request Sep 22, 2021
2 tasks
@ulucinar ulucinar mentioned this pull request Sep 23, 2021
2 tasks
@vaspahomov vaspahomov force-pushed the feature/public-ip-address-support branch from 1baed27 to aaaf3e9 Compare September 27, 2021 10:44
@vaspahomov
Copy link
Author

Hi @ulucinar thank you! I've commit fixes

@ulucinar
Copy link
Collaborator

Hi @vaspahomov,
Could you please sign your commit? git log --show-signature should show a signature. For example:

> git log --show-signature

commit aaaf3e9b1aa6b2aebe1a8a0ae52ea335353fe368 (HEAD -> feature/public-ip-address-support, vaspahomov/feature/public-ip-address-support)
Author: vaspahomov <vaspahomov@yandex-team.ru>
Date:   Fri Jun 18 15:21:30 2021 +0500

    PublicIPAddress support
    
    Signed-off-by: vaspahomov <vaspahomov@yandex-team.ru>
    Signed-off-by: vaspahomov <vas2142553@gmail.com>

commit 1c0702110ed45feabe2af15a0478e753d1c34d4e (stone-payments/master)
gpg: Signature made Cum 24 Eyl 15:21:04 2021 +03
gpg:                using RSA key 4AEE18F83AFDEB23
gpg: Good signature from "GitHub (web-flow commit signing) <noreply@github.com>" [full]
Merge: 33f728d 2cf7d16
Author: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Date:   Fri Sep 24 15:21:04 2021 +0300

    Merge pull request #293 from stone-payments/feature/add-public-access-in-postgresql
    
    Implement spec.publicNetworkAccess for PostgreSQL

It would be good if you could also remove the duplicate sign-off.


// ResourceGroupName - Name of the Public IP address's resource group.
// +immutable
ResourceGroupName string `json:"resourceGroupName,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

@vaspahomov vaspahomov force-pushed the feature/public-ip-address-support branch from aaaf3e9 to 0d7c878 Compare October 28, 2021 10:57
@ulucinar
Copy link
Collaborator

ulucinar commented Nov 29, 2021

Hi @vaspahomov,
Thank you for working on this PR. I'm planning to merge this and maybe address any remaining issues in a follow-up PR. What do you think?

@ulucinar ulucinar force-pushed the feature/public-ip-address-support branch from 0d7c878 to 7bc8d01 Compare November 29, 2021 14:58
Signed-off-by: vaspahomov <vaspahomov@yandex-team.ru>
@ulucinar ulucinar force-pushed the feature/public-ip-address-support branch from 7bc8d01 to de13fd3 Compare November 29, 2021 15:02
@ulucinar
Copy link
Collaborator

Thank you very much @vaspahomov, merging this PR.

@ulucinar ulucinar merged commit 3bbc32a into crossplane-contrib:master Nov 29, 2021
@ulucinar
Copy link
Collaborator

ulucinar commented Nov 30, 2021

@vaspahomov, I've just opened a follow-up PR as discussed.

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.

Introducing PublicIPAddress managed resource using azure-provider
3 participants