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

{k8s-extension} fixes Azure/azure-cli-extensions#5384 #5388

Merged
merged 3 commits into from
Sep 28, 2022

Conversation

navba-MSFT
Copy link
Contributor

fixes #5384

While running the CLi command: az k8s-extension extension-types list it fails with below error:

(NoRegisteredProviderFound) No registered resource provider found for location 'westeurope' and API version '2022-01-15-preview' for type 'connectedClusters'. The supported api-versions are '2020-01-01-preview, 2021-03-01, 2021-04-01-preview, 2021-10-01, 2022-05-01-preview'. The supported locations are 'westeurope, eastus, westcentralus, southcentralus, southeastasia, uksouth, eastus2, westus2, australiaeast, northeurope, francecentral, centralus, westus, northcentralus, koreacentral, japaneast, westus3, eastasia, canadacentral'.
Code: NoRegisteredProviderFound
Message: No registered resource provider found for location 'westeurope' and API version '2022-01-15-preview' for type 'connectedClusters'. The supported api-versions are '2020-01-01-preview, 2021-03-01, 2021-04-01-preview, 2021-10-01, 2022-05-01-preview'. The supported locations are 'westeurope, eastus, westcentralus, southcentralus, southeastasia, uksouth, eastus2, westus2, australiaeast, northeurope, francecentral, centralus, westus, northcentralus, koreacentral, japaneast, westus3, eastasia, canadacentral'.

The api-version should be : 2022-04-02-preview

Invoking the below with this api-version works fine: az rest --method GET --uri https://management.azure.com/subscriptions/XXXXX-XXX-XXXX-XXX/resourceGroups/MyRGName/providers/Microsoft.ContainerService/**MyClusterType**/MyClusterName/providers/Microsoft.KubernetesConfiguration/extensions?api-version=2022-04-02-preview


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

 fixes Azure#5384

While running the CLi command:  az k8s-extension extension-types list   it fails with below error:

```
(NoRegisteredProviderFound) No registered resource provider found for location 'westeurope' and API version '2022-01-15-preview' for type 'connectedClusters'. The supported api-versions are '2020-01-01-preview, 2021-03-01, 2021-04-01-preview, 2021-10-01, 2022-05-01-preview'. The supported locations are 'westeurope, eastus, westcentralus, southcentralus, southeastasia, uksouth, eastus2, westus2, australiaeast, northeurope, francecentral, centralus, westus, northcentralus, koreacentral, japaneast, westus3, eastasia, canadacentral'.
Code: NoRegisteredProviderFound
Message: No registered resource provider found for location 'westeurope' and API version '2022-01-15-preview' for type 'connectedClusters'. The supported api-versions are '2020-01-01-preview, 2021-03-01, 2021-04-01-preview, 2021-10-01, 2022-05-01-preview'. The supported locations are 'westeurope, eastus, westcentralus, southcentralus, southeastasia, uksouth, eastus2, westus2, australiaeast, northeurope, francecentral, centralus, westus, northcentralus, koreacentral, japaneast, westus3, eastasia, canadacentral'.

```
The api-version should be : 2022-04-02-preview 

Invoking the below with this api-version works fine:
az rest --method GET --uri https://management.azure.com/subscriptions/XXXXX-XXX-XXXX-XXX/resourceGroups/MyRGName/providers/Microsoft.ContainerService/**MyClusterType**/MyClusterName/providers/Microsoft.KubernetesConfiguration/extensions?api-version=2022-04-02-preview
@ghost ghost requested a review from yonzhan September 26, 2022 08:57
@ghost ghost added the Auto-Assign Auto assign by bot label Sep 26, 2022
@ghost ghost requested a review from zhoxing-ms September 26, 2022 08:57
@ghost ghost assigned zhoxing-ms Sep 26, 2022
@ghost ghost added this to the Sep 2022 (2022-10-12) - For Ignite milestone Sep 26, 2022
@ghost ghost requested a review from wangzelin007 September 26, 2022 08:57
@navba-MSFT navba-MSFT added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Sep 26, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Sep 26, 2022

k8s-extension

@wangzelin007
Copy link
Member

/azp where

@azure-pipelines
Copy link

Azure DevOps orgs getting events for this repository:

@wangzelin007
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@zhoxing-ms
Copy link
Contributor

Do you need to upgrade the extension version to release the bug fix? If so, please also modify the HISTORY.rst and setup.py

@navba-MSFT
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 5388 in repo Azure/azure-cli-extensions

@navba-MSFT
Copy link
Contributor Author

@zhoxing-ms Thanks for approving this. Could you also merge this once the tests have been successfully completed ?

@zhoxing-ms
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@zhoxing-ms zhoxing-ms merged commit d2244e9 into Azure:main Sep 28, 2022
@azclibot
Copy link
Collaborator

azclibot commented Sep 28, 2022

[Release] Update index.json for extension [ k8s-extension ] : https://dev.azure.com/azclitools/internal/_build/results?buildId=6432&view=results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using preview API within k8s-extension
5 participants