-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Move connectedk8s CLI to track2 python SDK models #3711
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
Merged
Merged
Changes from 94 commits
Commits
Show all changes
100 commits
Select commit
Hold shift + click to select a range
68800b6
Added spn and resource group creation in connectedk8s create
5090698
Vanilla CLI Code for Connected Cluster
fda117d
saved location data CLI changes after 0.1.2
e781176
Added the 0.1.2 version CLI code in master
969a45f
Removed a print statement
d60bd23
Fixed container status check
45e2db7
Updated pod status check
678c2b7
Merge pull request #1 from akashkeshari/akash/agent_monitor_fix
akashkeshari 85aa7d9
Added 2020 version models and operations
d345685
Updated with key pair generation
4e90290
review of public private key pair
836e6fc
updated models with latest changes in swagger
a1bea49
Update CLI to support SPN less onboarding
6522421
Removed location data changes
dec8fab
Update src/connectedk8s/azext_connectedk8s/custom.py
akashkeshari 9bd5580
Update src/connectedk8s/azext_connectedk8s/custom.py
akashkeshari 854b36f
Update src/connectedk8s/azext_connectedk8s/custom.py
akashkeshari 576704d
Update src/connectedk8s/azext_connectedk8s/custom.py
akashkeshari b26a0eb
Update src/connectedk8s/azext_connectedk8s/custom.py
akashkeshari 6d445c3
Update src/connectedk8s/azext_connectedk8s/custom.py
akashkeshari 9df8269
Update src/connectedk8s/azext_connectedk8s/custom.py
akashkeshari 031639b
Update src/connectedk8s/azext_connectedk8s/custom.py
akashkeshari 47ca292
Update src/connectedk8s/azext_connectedk8s/custom.py
akashkeshari b237d9c
Update src/connectedk8s/azext_connectedk8s/custom.py
akashkeshari 6249ea7
Updated error messages
5223949
resolved a conflict
c1ecbf8
updated wrt style checks
f43ebfb
Added a recorded test
d237667
Updated forked master with original master
32c5089
Updated with latest master changes
a97f36e
Updated imports
025522c
removed python 2.x from setup.py
1967b02
Updated format.py
df87f51
Updated readme file
b747e92
Updated test file
9d9c954
updated setup.py
2db8c30
updated knack version in setup.py
bd26f72
updated knack version to 0.7.0rc4 in setup.py
9dbfa0b
Updated test file to pass kubeconfig
c45a3a6
Updated test file to pass kubeconfig
f27610a
Added async support for delete
9852a51
Added helm charts to test data folder
ddad5b7
Updated helm chart pull method
6e6cd75
corrected import order
eb723fb
Ran connectedk8s test
a5407c1
Updated some print statements
3b8f930
ran test with helm upgrade --install
9f72a47
Updated print to warning
5515568
Updated error message
fac6740
Updated exceptions to be generic
e0f5022
Added aks creation in tests
c9d1071
updated warning statements
3b78ee8
updated test to create aks cluster with ssh keys
96a2cbe
added spn calls in recorded tests
2c7b8b3
Updated api-version in recorded tests
b9fdd1e
removed mc delete as CI test needs it to be persistant
cfb21ab
switched to livescenariotest
005e414
updated params.py
ba268a1
corrected databricks change
0ff1943
updated pod monitoring
d77e433
updated identation
44f4547
updated print statement to warnings
3fa9b10
added telemetry code for connect cli
5c56299
Added exception telemetry for delete operation
4ddea41
Updated fork master with latest master
47fc01b
Updated with latest master
9239f83
Updated setup.py
ccdbff0
Changed default kubernetes distro
e6333d7
Distro detect.
pasankav 1ef6cdd
Updated history
c1612c2
removed arm resourceid from telemetry
3ed99da
Merge branch 'akash/connect_telemetry' into pavan/distro_detect
pasankav 8b26810
Add kubernetes distro and identifying it.
pasankav fdacc2b
Remove additional line.
pasankav 3860c00
correct indentation.
pasankav b9b4915
Merge branch 'master' into pavan/distro_detect
pasankav f8c4e04
correct indentation.
pasankav b752e92
correct version number.
pasankav 9404057
Merge pull request #5 from akashkeshari/pavan/distro_detect
akashkeshari 669071f
Merge pull request #4 from akashkeshari/akash/connect_telemetry
akashkeshari 65e69b8
Merge pull request #2 from akashkeshari/location_data
akashkeshari 13b8795
Merge remote-tracking branch 'upstream/master'
da4a59b
merged with latest master
fcbda96
resolved merge conflict with upstream
6636a4f
Merge remote-tracking branch 'upstream/master' into master
a1ba684
Merge remote-tracking branch 'upstream/master' into master
6ea4e8a
Merge remote-tracking branch 'upstream/master' into master
3dec24b
Merge remote-tracking branch 'upstream/master' into master
025e0be
Merge remote-tracking branch 'upstream/master' into master
4375ef9
Merge remote-tracking branch 'upstream/master' into master
53aeb0e
Merge remote-tracking branch 'upstream/master' into master
c6490ec
Merge remote-tracking branch 'upstream/master' into master
b7ce14c
Merge remote-tracking branch 'upstream/main' into master
e6d8a4f
updated to track2 sdk
0f35f97
fixed linter issues
4195205
Merge remote-tracking branch 'upstream/main' into master
3061648
Merge branch 'master' into akash/ms.k8s_track2
566b86f
updated with latest master
35b9d18
fixed default timeout
07cbf05
re ran live tests
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
19 changes: 10 additions & 9 deletions
19
src/connectedk8s/azext_connectedk8s/vendored_sdks/__init__.py
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,19 @@ | ||
| # coding=utf-8 | ||
| # -------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for | ||
| # license information. | ||
| # | ||
| # Licensed under the MIT License. See License.txt in the project root for license information. | ||
| # Code generated by Microsoft (R) AutoRest Code Generator. | ||
| # Changes may cause incorrect behavior and will be lost if the code is | ||
| # regenerated. | ||
| # Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
| # -------------------------------------------------------------------------- | ||
|
|
||
| from .connected_kubernetes_client import ConnectedKubernetesClient | ||
| from .version import VERSION | ||
|
|
||
| __all__ = ['ConnectedKubernetesClient'] | ||
| from ._connected_kubernetes_client import ConnectedKubernetesClient | ||
| from ._version import VERSION | ||
|
|
||
| __version__ = VERSION | ||
| __all__ = ['ConnectedKubernetesClient'] | ||
|
|
||
| try: | ||
| from ._patch import patch_sdk # type: ignore | ||
| patch_sdk() | ||
| except ImportError: | ||
| pass |
71 changes: 71 additions & 0 deletions
71
src/connectedk8s/azext_connectedk8s/vendored_sdks/_configuration.py
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| # coding=utf-8 | ||
| # -------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for license information. | ||
| # Code generated by Microsoft (R) AutoRest Code Generator. | ||
| # Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
| # -------------------------------------------------------------------------- | ||
|
|
||
| from typing import TYPE_CHECKING | ||
|
|
||
| from azure.core.configuration import Configuration | ||
| from azure.core.pipeline import policies | ||
| from azure.mgmt.core.policies import ARMHttpLoggingPolicy | ||
|
|
||
| from ._version import VERSION | ||
|
|
||
| if TYPE_CHECKING: | ||
| # pylint: disable=unused-import,ungrouped-imports | ||
| from typing import Any | ||
|
|
||
| from azure.core.credentials import TokenCredential | ||
|
|
||
|
|
||
| class ConnectedKubernetesClientConfiguration(Configuration): | ||
| """Configuration for ConnectedKubernetesClient. | ||
|
|
||
| Note that all parameters used to create this instance are saved as instance | ||
| attributes. | ||
|
|
||
| :param credential: Credential needed for the client to connect to Azure. | ||
| :type credential: ~azure.core.credentials.TokenCredential | ||
| :param subscription_id: The ID of the target subscription. | ||
| :type subscription_id: str | ||
| """ | ||
|
|
||
| def __init__( | ||
| self, | ||
| credential, # type: "TokenCredential" | ||
| subscription_id, # type: str | ||
| **kwargs # type: Any | ||
| ): | ||
| # type: (...) -> None | ||
| if credential is None: | ||
| raise ValueError("Parameter 'credential' must not be None.") | ||
| if subscription_id is None: | ||
| raise ValueError("Parameter 'subscription_id' must not be None.") | ||
| super(ConnectedKubernetesClientConfiguration, self).__init__(**kwargs) | ||
|
|
||
| self.credential = credential | ||
| self.subscription_id = subscription_id | ||
| self.api_version = "2021-03-01" | ||
| self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) | ||
| kwargs.setdefault('sdk_moniker', 'mgmt-hybridkubernetes/{}'.format(VERSION)) | ||
| self._configure(**kwargs) | ||
|
|
||
| def _configure( | ||
| self, | ||
| **kwargs # type: Any | ||
| ): | ||
| # type: (...) -> None | ||
| self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) | ||
| self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) | ||
| self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) | ||
| self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) | ||
| self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) | ||
| self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) | ||
| self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) | ||
| self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) | ||
| self.authentication_policy = kwargs.get('authentication_policy') | ||
| if self.credential and not self.authentication_policy: | ||
| self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.