azure-rest-api-specs icon indicating copy to clipboard operation
azure-rest-api-specs copied to clipboard

Added new preview version for container instances

Open dobrebogdan opened this issue 1 year ago • 5 comments

Creating a new preview api version with a new property "identityAcls" and related classes for azure container instance.

dobrebogdan avatar Oct 25 '24 08:10 dobrebogdan

Next Steps to Merge

✅ All automated merging requirements have been met! To get your PR merged, see aka.ms/azsdk/specreview/merge.

Not using the latest api version as default due to some missing API paths compared to 2024-05 that trigger this error for the Avocado check: MISSING_APIS_IN_DEFAULT_TAG

dobrebogdan avatar Oct 25 '24 08:10 dobrebogdan

Not using the latest api version as default due to some missing API paths compared to 2024-05 that trigger this error for the Avocado check: MISSING_APIS_IN_DEFAULT_TAG

Are these missing API paths not going to be implemented ?

ramoka178 avatar Oct 25 '24 21:10 ramoka178

Not using the latest api version as default due to some missing API paths compared to 2024-05 that trigger this error for the Avocado check: MISSING_APIS_IN_DEFAULT_TAG

Are these missing API paths not going to be implemented ?

I don't think so, they were missing in the previous version as well. I think they were deprecated. That check mentions that it will be a false positive in the case of deprecation.

dobrebogdan avatar Oct 28 '24 09:10 dobrebogdan

Not using the latest api version as default due to some missing API paths compared to 2024-05 that trigger this error for the Avocado check: MISSING_APIS_IN_DEFAULT_TAG

Are these missing API paths not going to be implemented ?

I don't think so, they were missing in the previous version as well. I think they were deprecated. That check mentions that it will be a false positive in the case of deprecation.

After doing some investigation it seems there is some work to add those paths back on another PR. I contacted the owner of the PR and we will sync them.

dobrebogdan avatar Nov 01 '24 07:11 dobrebogdan

Not using the latest api version as default due to some missing API paths compared to 2024-05 that trigger this error for the Avocado check: MISSING_APIS_IN_DEFAULT_TAG

Are these missing API paths not going to be implemented ?

I don't think so, they were missing in the previous version as well. I think they were deprecated. That check mentions that it will be a false positive in the case of deprecation.

After doing some investigation it seems there is some work to add those paths back on another PR. I contacted the owner of the PR and we will sync them.

The PRs are synched, nothing is missing now.

dobrebogdan avatar Nov 05 '24 10:11 dobrebogdan

please fix the newly introduced lintdiff warnings from here : https://github.com/Azure/azure-rest-api-specs/pull/31223/checks?check_run_id=32598293246

raosuhas avatar Nov 06 '24 23:11 raosuhas

please fix the newly introduced lintdiff warnings from here : https://github.com/Azure/azure-rest-api-specs/pull/31223/checks?check_run_id=32598293246

Are any of these warnings a blocker or a serious issue? This PR is important for Ignite which is soon, so we would prefer to merge if they can be ignored. What do you think?

dobrebogdan avatar Nov 07 '24 15:11 dobrebogdan

please fix the newly introduced lintdiff warnings from here : https://github.com/Azure/azure-rest-api-specs/pull/31223/checks?check_run_id=32598293246

Are any of these warnings a blocker or a serious issue? This PR is important for Ignite which is soon, so we would prefer to merge if they can be ignored. What do you think?

you can ignore the ones that say : ⚠️ AvoidNestedProperties

FOr the EnumInsteadOfBoolean I will leave it to your team to review these and change since this is a strong recommendation.

For the others they must be fixed. These are straightforward fixes and should not really take you that long to fix.

raosuhas avatar Nov 08 '24 00:11 raosuhas

please fix the newly introduced lintdiff warnings from here : https://github.com/Azure/azure-rest-api-specs/pull/31223/checks?check_run_id=32598293246

Are any of these warnings a blocker or a serious issue? This PR is important for Ignite which is soon, so we would prefer to merge if they can be ignored. What do you think?

you can ignore the ones that say : ⚠️ AvoidNestedProperties

FOr the EnumInsteadOfBoolean I will leave it to your team to review these and change since this is a strong recommendation.

For the others they must be fixed. These are straightforward fixes and should not really take you that long to fix.

All lint diff warnings except for the 2 that were acceptable were fixed.

Among other things, the SubscriptionIdParameter in the file was removed and replaced with the one from common-types. However, that one has something which was missing in the parameter in the file: "format": "uuid".

!!!This is what triggered the breaking change check, but it's not a "real" breaking change, the usage is not changed and that parameter was always supposed to be a uuid.

dobrebogdan avatar Nov 11 '24 10:11 dobrebogdan

        "maxBatchPercent": {

you can add the limits for minimum and maximum of 100 if this is 0-100% range


Refers to: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-11-01-preview/containerInstance.json:3605 in c4654f1. [](commit_id = c4654f1b101e87937bee1ead9c32c4a52d8635ee, deletion_comment = False)

razvanbadea-msft avatar Nov 12 '24 14:11 razvanbadea-msft

        "inPlaceUpdate": {

you can use in this case an enum like rollingUpdateType with values like [InPlace, Recreate]

Enums are always a more flexible and future proof option because they allow additional values to be added in the future in a non-breaking way, e.g. [Enabled, Disabled, Suspended, Deallocated].


Refers to: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-11-01-preview/containerInstance.json:3619 in c4654f1. [](commit_id = c4654f1b101e87937bee1ead9c32c4a52d8635ee, deletion_comment = False)

razvanbadea-msft avatar Nov 12 '24 14:11 razvanbadea-msft

          "enum": [

why the values of this enum is all lowecase and not using the PascalCase as in the provided link and like shareAccessType? #Resolved


Refers to: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-11-01-preview/containerInstance.json:3816 in c4654f1. [](commit_id = c4654f1b101e87937bee1ead9c32c4a52d8635ee, deletion_comment = False)

razvanbadea-msft avatar Nov 12 '24 14:11 razvanbadea-msft

        "inPlaceUpdate": {

you can use in this case an enum like rollingUpdateType with values like [InPlace, Recreate]

Enums are always a more flexible and future proof option because they allow additional values to be added in the future in a non-breaking way, e.g. [Enabled, Disabled, Suspended, Deallocated].

Refers to: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-11-01-preview/containerInstance.json:3619 in c4654f1. [](commit_id = c4654f1, deletion_comment = False)

Replace option is a default option for the customers. Customer can opt for in-place update by setting the in-place flag in the rolling update profile. Although, that's a good suggestion, and we can take that change in upcoming versions.

shivg7795 avatar Nov 12 '24 20:11 shivg7795

          "enum": [

why the values of this enum is all lowecase and not using the PascalCase as in the provided link and like shareAccessType?

Refers to: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-11-01-preview/containerInstance.json:3816 in c4654f1. [](commit_id = c4654f1, deletion_comment = False)

this change is not related to this PR. We can definitely address it in upcoming version but can we please ignore it if it is not blocking.

shivg7795 avatar Nov 12 '24 22:11 shivg7795

          "enum": [

why the values of this enum is all lowecase and not using the PascalCase as in the provided link and like shareAccessType? Refers to: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-11-01-preview/containerInstance.json:3816 in c4654f1. [](commit_id = c4654f1, deletion_comment = False)

this change is not related to this PR. We can definitely address it in upcoming version but can we please ignore it if it is not blocking.

this enum is added in this PR so it is related

razvanbadea-msft avatar Nov 13 '24 09:11 razvanbadea-msft

          "description": "learn more at: https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP#shareaccesstier",

Could you update this description a bit? This are used to generate comments & documentation, so they're used by customers to discover what these properties mean. #Resolved


Refers to: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-11-01-preview/containerInstance.json:3815 in 57781eb. [](commit_id = 57781ebe0ecce1898909948a6ca598d41c810bcb, deletion_comment = False)

razvanbadea-msft avatar Nov 13 '24 09:11 razvanbadea-msft

API change check

APIView has identified API level changes in this PR and created following API reviews.

Microsoft.ContainerInstance

azure-sdk avatar Nov 13 '24 23:11 azure-sdk

          "description": "learn more at: https://learn.microsoft.com/en-us/rest/api/storagerp/file-shares/create?tabs=HTTP#shareaccesstier",

Could you update this description a bit? This are used to generate comments & documentation, so they're used by customers to discover what these properties mean.

Refers to: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-11-01-preview/containerInstance.json:3815 in 57781eb. [](commit_id = 57781eb, deletion_comment = False)

addressed all the comments

shivg7795 avatar Nov 13 '24 23:11 shivg7795

@razvanbadea-msft this swagger version is critical for upcoming Ignite event. Hence please suggest if there are any other important changes needed. The swagger needs to be published at priority before the Ignite event.

shivg7795 avatar Nov 14 '24 01:11 shivg7795