Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

PublicIPAddress support - #264

Merged
ulucinar merged 1 commit into
crossplane-contrib:masterfrom
vaspahomov:feature/public-ip-address-support
Nov 29, 2021
Merged

PublicIPAddress support#264
ulucinar merged 1 commit into
crossplane-contrib:masterfrom
vaspahomov:feature/public-ip-address-support

Conversation

@vaspahomov

@vaspahomov vaspahomov commented Jun 21, 2021

Copy link
Copy Markdown

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
Comment thread apis/network/v1alpha3/types.go
Comment thread apis/network/v1alpha3/types.go
Comment thread apis/network/v1alpha3/types.go Outdated
Comment thread apis/network/v1alpha3/types.go Outdated
Comment thread apis/network/v1alpha3/types.go Outdated
Comment thread pkg/controller/network/publicipaddress/managed.go Outdated
Comment thread pkg/controller/network/publicipaddress/managed.go Outdated
Comment on lines +105 to +110
o := managed.ExternalObservation{
ResourceExists: true,
ConnectionDetails: managed.ConnectionDetails{},
}

return o, nil

Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread pkg/controller/network/publicipaddress/managed.go Outdated
Comment thread pkg/controller/network/publicipaddress/managed.go Outdated

@ulucinar ulucinar left a comment

Copy link
Copy Markdown
Collaborator

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
Comment thread pkg/controller/network/publicipaddress/managed.go Outdated
@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
Copy Markdown
Author

Hi @ulucinar thank you! I've commit fixes

@ulucinar

Copy link
Copy Markdown
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
Copy Markdown
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

ulucinar commented Nov 29, 2021

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Collaborator

Thank you very much @vaspahomov, merging this PR.

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

ulucinar commented Nov 30, 2021

Copy link
Copy Markdown
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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