Skip to content

Commit

Permalink
change amlk8s to amlarc (#42)
Browse files Browse the repository at this point in the history
Co-authored-by: Yue Yu <yuyu3@microsoft.com>
  • Loading branch information
yuyue9284 and Yue Yu authored May 25, 2021
1 parent 918bc02 commit 8b2490d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/k8s-extension/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Release History
===============

0.4.1
++++++++++++++++++

* Change resource tag from 'amlk8s' to 'Azure Arc-enabled ML' in microsoft.azureml.kubernetes

0.4.0
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

logger = get_logger(__name__)

resource_tag = {'created_by': 'amlk8s-extension'}
resource_tag = {'created_by': 'Azure Arc-enabled ML'}


class AzureMLKubernetes(PartnerExtensionModel):
Expand Down Expand Up @@ -271,10 +271,10 @@ def _lock_resource(cmd, lock_scope, lock_level='CanNotDelete'):
lock_client: azure.mgmt.resource.locks.ManagementLockClient = get_mgmt_service_client(
cmd.cli_ctx, azure.mgmt.resource.locks.ManagementLockClient)
# put lock on relay resource
lock_object = ManagementLockObject(level=lock_level, notes='locked by amlk8s.')
lock_object = ManagementLockObject(level=lock_level, notes='locked by amlarc.')
try:
lock_client.management_locks.create_or_update_by_scope(
scope=lock_scope, lock_name='amlk8s-resource-lock', parameters=lock_object)
scope=lock_scope, lock_name='amlarc-resource-lock', parameters=lock_object)
except:
# try to lock the resource if user has the owner privilege
pass
Expand Down
2 changes: 1 addition & 1 deletion src/k8s-extension/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# TODO: Add any additional SDK dependencies here
DEPENDENCIES = []

VERSION = "0.4.0"
VERSION = "0.4.1"

with open('README.rst', 'r', encoding='utf-8') as f:
README = f.read()
Expand Down

0 comments on commit 8b2490d

Please sign in to comment.