Skip to content

Commit

Permalink
Update Identity Creation for Appliance to Latest Version (#95)
Browse files Browse the repository at this point in the history
* Update appliance API to latest version for identity

* Create a utils file with get parent_api_version

* Fix style errors
  • Loading branch information
jonathan-innis authored Dec 8, 2021
1 parent ba2ebb5 commit 0f3c9d1
Show file tree
Hide file tree
Showing 7 changed files with 379 additions and 178 deletions.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ignore =
F401, # imported but unused, too many violations, to be removed in the future
F811, # redefinition of unused, to be removed in the future
C901 # code flow is too complex, too many violations, to be removed in the future
W503 # line break before binary operator effect on readability is subjective
W504 # line break after binary operator effect on readability is subjective
exclude =
*/vendored_sdks
Expand Down
18 changes: 15 additions & 3 deletions src/k8s-extension/azext_k8s_extension/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

EXTENSION_NAME = 'k8s-extension'
EXTENSION_NAME = "k8s-extension"
EXTENSION_PACKAGE_NAME = "azext_k8s_extension"
PROVIDER_NAMESPACE = 'Microsoft.KubernetesConfiguration'
PROVIDER_NAMESPACE = "Microsoft.KubernetesConfiguration"
REGISTERED = "Registered"
DF_RM_HOSTNAME = 'api-dogfood.resources.windows-int.net'
DF_RM_HOSTNAME = "api-dogfood.resources.windows-int.net"

CONNECTED_CLUSTER_RP = "Microsoft.Kubernetes"
MANAGED_CLUSTER_RP = "Microsoft.ContainerService"
APPLIANCE_RP = "Microsoft.ResourceConnector"

CONNECTED_CLUSTER_TYPE = "connectedclusters"
MANAGED_CLUSTER_TYPE = "managedclusters"
APPLIANCE_TYPE = "appliances"

CONNECTED_CLUSTER_API_VERSION = "2021-10-01"
MANAGED_CLUSTER_API_VERSION = "2021-10-01"
APPLIANCE_API_VERSION = "2021-10-31-preview"
Loading

0 comments on commit 0f3c9d1

Please sign in to comment.