-
Notifications
You must be signed in to change notification settings - Fork 107
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
Cloud API: make location
optional for Azure Upload Options
#3093
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thozza
force-pushed
the
azure-rg-location-optional
branch
from
October 24, 2022 14:17
92fa857
to
d25cac1
Compare
thozza
requested review from
croissanne and
ondrejbudai
and removed request for
croissanne
October 25, 2022 06:54
The PR should be ready for review.
|
croissanne
previously approved these changes
Oct 25, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thank you!
thozza
added a commit
to thozza/koji-osbuild
that referenced
this pull request
Oct 25, 2022
The Azure Resource Group Location is no longer required and osbuild-composer can determine the correct Location from the provided Resource Group. Related to osbuild/osbuild-composer#3093. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
ondrejbudai
requested changes
Oct 25, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing! Just one small request for the API spec.
thozza
force-pushed
the
azure-rg-location-optional
branch
from
October 25, 2022 14:39
d25cac1
to
702b915
Compare
ondrejbudai
approved these changes
Oct 25, 2022
|
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
Make the `location` argument optional (can be now empty "") in `RegisterImage()` and `CreateStorageAccount()` methods. If the provided `location` argument is an empty string, then the location is determined from the provided Resource Group instead. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
Providing the `location` is no longer required for Azure Upload Options. If it is not provided, the implementation determines the location from the provided Resource Group. This will make the API nicer for any client, since they won't need to provide redundant information. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
Let's default to not providing the Resource Group Location when testing Cloud API with Azure and leave it up to the implementation to determine the correct location to use. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
thozza
force-pushed
the
azure-rg-location-optional
branch
from
October 27, 2022 11:25
702b915
to
1c4ee4d
Compare
croissanne
added a commit
to osbuild/image-builder
that referenced
this pull request
Nov 4, 2022
osbuild/osbuild-composer#3093 added the ability to let the location of the resource group be inferred by composer. Since we always passed "eastus" by default, this prevented images being uploaded to resource groups outside of that location.
croissanne
added a commit
to croissanne/image-builder
that referenced
this pull request
Nov 4, 2022
osbuild/osbuild-composer#3093 added the ability to let the location of the resource group be inferred by composer. Since we always passed "eastus" by default, this prevented images being uploaded to resource groups outside of that location.
croissanne
added a commit
to croissanne/image-builder
that referenced
this pull request
Nov 4, 2022
osbuild/osbuild-composer#3093 added the ability to let the location of the resource group be inferred by composer. Since we always passed "eastus" by default, this prevented images being uploaded to resource groups outside of that location.
croissanne
added a commit
to croissanne/image-builder
that referenced
this pull request
Nov 7, 2022
osbuild/osbuild-composer#3093 added the ability to let the location of the resource group be inferred by composer. Since we always passed "eastus" by default, this prevented images being uploaded to resource groups outside of that location.
croissanne
added a commit
to osbuild/image-builder
that referenced
this pull request
Nov 7, 2022
osbuild/osbuild-composer#3093 added the ability to let the location of the resource group be inferred by composer. Since we always passed "eastus" by default, this prevented images being uploaded to resource groups outside of that location.
thozza
added a commit
to thozza/koji-osbuild
that referenced
this pull request
Nov 11, 2022
The Azure Resource Group Location is no longer required and osbuild-composer can determine the correct Location from the provided Resource Group. Related to osbuild/osbuild-composer#3093. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
ochosi
pushed a commit
to thozza/koji-osbuild
that referenced
this pull request
Nov 17, 2022
The Azure Resource Group Location is no longer required and osbuild-composer can determine the correct Location from the provided Resource Group. Related to osbuild/osbuild-composer#3093. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
ondrejbudai
pushed a commit
to osbuild/koji-osbuild
that referenced
this pull request
Nov 21, 2022
The Azure Resource Group Location is no longer required and osbuild-composer can determine the correct Location from the provided Resource Group. Related to osbuild/osbuild-composer#3093. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously, the Cloud API implementation required that the client provides the Location of the Resource Group to be used for importing the image to Azure. This forced the client to provide a redundant information, that it does not necessarily have. In addition, the Resource Group Location can be easily determined using Azure API.
Let's change the implementation and make the
location
property optional when uploading images to Azure. If thelocation
is not provided, osbuild-composer will deduct the appropriate location from the provided Resource Group.Change the Cloud API test case for Azure to not set the
location
property when calling Cloud API.Related to https://issues.redhat.com/browse/HMSIB-133
This pull request includes: