Skip to content

Commit

Permalink
replace
Browse files Browse the repository at this point in the history
  • Loading branch information
xmdanni committed Nov 13, 2024
1 parent 4a75319 commit 887e1e3
Show file tree
Hide file tree
Showing 228 changed files with 1,739 additions and 1,739 deletions.
2 changes: 1 addition & 1 deletion src/aks-preview/azext_aks_preview/_consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
CONST_CREDENTIAL_FORMAT_AZURE = "azure"
CONST_CREDENTIAL_FORMAT_EXEC = "exec"

# refer https://docs.microsoft.com/en-us/rest/api/storageservices/
# refer https://learn.microsoft.com/en-us/rest/api/storageservices/
# naming-and-referencing-containers--blobs--and-metadata#container-names
CONST_CONTAINER_NAME_MAX_LENGTH = 63

Expand Down
8 changes: 4 additions & 4 deletions src/aks-preview/azext_aks_preview/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
- Disallowed values: "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".
- Minimum-length: 1 character
- Max-length: 20 characters
Reference: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.compute.models.virtualmachinescalesetosprofile.adminusername?view=azure-dotnet
Reference: https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.compute.models.virtualmachinescalesetosprofile.adminusername?view=azure-dotnet
- name: --windows-admin-password
type: string
short-summary: User account password to use on windows node VMs.
Expand All @@ -93,7 +93,7 @@
* Has a digit
* Has a special character (Regex match [\\W_])
- Disallowed values: "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!"
Reference: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.compute.models.virtualmachinescalesetosprofile.adminpassword?view=azure-dotnet
Reference: https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.compute.models.virtualmachinescalesetosprofile.adminpassword?view=azure-dotnet
- name: --enable-ahub
type: bool
short-summary: Enable Azure Hybrid User Benefits (AHUB) for Windows VMs.
Expand Down Expand Up @@ -741,7 +741,7 @@
long-summary: This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a
cluster stops the control plane and agent nodes entirely, while maintaining all object and
cluster state. A cluster does not accrue charges while it is stopped. See `stopping a
cluster <https://docs.microsoft.com/azure/aks/start-stop-cluster>`_ for more details about
cluster <https://learn.microsoft.com/azure/aks/start-stop-cluster>`_ for more details about
stopping a cluster.
"""

Expand Down Expand Up @@ -1027,7 +1027,7 @@
* Has a digit
* Has a special character (Regex match [\\W_])
- Disallowed values: "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!"
Reference: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.compute.models.virtualmachinescalesetosprofile.adminpassword?view=azure-dotnet
Reference: https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.compute.models.virtualmachinescalesetosprofile.adminpassword?view=azure-dotnet
- name: --enable-azure-rbac
type: bool
short-summary: Enable Azure RBAC to control authorization checks on cluster.
Expand Down
2 changes: 1 addition & 1 deletion src/aks-preview/azext_aks_preview/_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ def validate_azure_keyvault_kms_key_id(namespace):
if key_id:
err_msg = (
"--azure-keyvault-kms-key-id is not a valid Key Vault key ID. "
"See https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name" # pylint: disable=line-too-long
"See https://learn.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name" # pylint: disable=line-too-long
)

https_prefix = "https://"
Expand Down
4 changes: 2 additions & 2 deletions src/aks-preview/azext_aks_preview/aks_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def _generate_container_name(fqdn: str, private_fqdn: str) -> str:
"""
Generates a container name unique to the specified managed cluster, that
conforms to the Azure naming restrictions defined here:
https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#container-names
https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#container-names
This is done based on fqdn (falling back to private_fqdn), and shortened
to strip everything including and after ".hcp.".
Expand Down Expand Up @@ -370,7 +370,7 @@ def _get_cluster_features(cli_ctx, resource_group_name, cluster_name):


def _is_windows_hpc_supported(agent_pools):
# https://docs.microsoft.com/en-us/rest/api/aks/agent-pools/list?tabs=HTTP#agentpool
# https://learn.microsoft.com/en-us/rest/api/aks/agent-pools/list?tabs=HTTP#agentpool
# The full (major.minor.patch) version *may* be stored in currentOrchestratorVersion.
# If not, it'll be in orchestratorVersion.
windows_k8s_versions = [p.current_orchestrator_version or p.orchestrator_version for p in agent_pools if p.os_type.casefold() == "Windows".casefold()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def test_invalid_azure_keyvault_kms_key_id_without_https(self):
)
err = (
"--azure-keyvault-kms-key-id is not a valid Key Vault key ID. "
"See https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name"
"See https://learn.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name"
)

with self.assertRaises(CLIError) as cm:
Expand All @@ -510,7 +510,7 @@ def test_invalid_azure_keyvault_kms_key_id_without_key_version(self):
)
err = (
"--azure-keyvault-kms-key-id is not a valid Key Vault key ID. "
"See https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name"
"See https://learn.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name"
)

with self.assertRaises(CLIError) as cm:
Expand All @@ -524,7 +524,7 @@ def test_invalid_azure_keyvault_kms_key_id_with_wrong_object_type(self):
)
err = (
"--azure-keyvault-kms-key-id is not a valid Key Vault key ID. "
"See https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name"
"See https://learn.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name"
)

with self.assertRaises(CLIError) as cm:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ async def get_available_agent_pool_versions(
"""Gets a list of supported Kubernetes versions for the specified agent pool.
See `supported Kubernetes versions
<https://docs.microsoft.com/azure/aks/supported-kubernetes-versions>`_ for more details about
<https://learn.microsoft.com/azure/aks/supported-kubernetes-versions>`_ for more details about
the version lifecycle.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Expand Down Expand Up @@ -1158,7 +1158,7 @@ async def begin_upgrade_node_image_version(
Upgrading the node image version of an agent pool applies the newest OS and runtime updates to
the nodes. AKS provides one new image per week with the latest updates. For more details on
node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade.
node image versions, see: https://learn.microsoft.com/azure/aks/node-image-upgrade.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,9 @@ async def get_access_profile(
"""Gets an access profile of a managed cluster.
**WARNING**\\ : This API will be deprecated. Instead use `ListClusterUserCredentials
<https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials>`_ or
<https://learn.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials>`_ or
`ListClusterAdminCredentials
<https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials>`_ .
<https://learn.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials>`_ .
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
Expand Down Expand Up @@ -1912,7 +1912,7 @@ async def begin_rotate_cluster_certificates(
) -> AsyncLROPoller[None]:
"""Rotates the certificates of a managed cluster.
See `Certificate rotation <https://docs.microsoft.com/azure/aks/certificate-rotation>`_ for
See `Certificate rotation <https://learn.microsoft.com/azure/aks/certificate-rotation>`_ for
more details about rotating managed cluster certificates.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Expand Down Expand Up @@ -2152,7 +2152,7 @@ async def begin_stop(self, resource_group_name: str, resource_name: str, **kwarg
This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a
cluster stops the control plane and agent nodes entirely, while maintaining all object and
cluster state. A cluster does not accrue charges while it is stopped. See `stopping a cluster
<https://docs.microsoft.com/azure/aks/start-stop-cluster>`_ for more details about stopping a
<https://learn.microsoft.com/azure/aks/start-stop-cluster>`_ for more details about stopping a
cluster.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Expand Down Expand Up @@ -2269,7 +2269,7 @@ async def _start_initial(self, resource_group_name: str, resource_name: str, **k
async def begin_start(self, resource_group_name: str, resource_name: str, **kwargs: Any) -> AsyncLROPoller[None]:
"""Starts a previously stopped Managed Cluster.
See `starting a cluster <https://docs.microsoft.com/azure/aks/start-stop-cluster>`_ for more
See `starting a cluster <https://learn.microsoft.com/azure/aks/start-stop-cluster>`_ for more
details about starting a cluster.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Expand Down Expand Up @@ -2414,7 +2414,7 @@ async def begin_run_command(
AKS will create a pod to run the command. This is primarily useful for private clusters. For
more information see `AKS Run Command
<https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview>`_.
<https://learn.microsoft.com/azure/aks/private-clusters#aks-run-command-preview>`_.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
Expand Down Expand Up @@ -2448,7 +2448,7 @@ async def begin_run_command(
AKS will create a pod to run the command. This is primarily useful for private clusters. For
more information see `AKS Run Command
<https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview>`_.
<https://learn.microsoft.com/azure/aks/private-clusters#aks-run-command-preview>`_.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
Expand Down Expand Up @@ -2479,7 +2479,7 @@ async def begin_run_command(
AKS will create a pod to run the command. This is primarily useful for private clusters. For
more information see `AKS Run Command
<https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview>`_.
<https://learn.microsoft.com/azure/aks/private-clusters#aks-run-command-preview>`_.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def list(
"""Gets a list of private endpoint connections in the specified managed cluster.
To learn more about private clusters, see:
https://docs.microsoft.com/azure/aks/private-clusters.
https://learn.microsoft.com/azure/aks/private-clusters.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
Expand Down Expand Up @@ -134,7 +134,7 @@ async def get(
"""Gets the specified private endpoint connection.
To learn more about private clusters, see:
https://docs.microsoft.com/azure/aks/private-clusters.
https://learn.microsoft.com/azure/aks/private-clusters.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def list(
"""Gets a list of private link resources in the specified managed cluster.
To learn more about private clusters, see:
https://docs.microsoft.com/azure/aks/private-clusters.
https://learn.microsoft.com/azure/aks/private-clusters.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
Expand Down
Loading

0 comments on commit 887e1e3

Please sign in to comment.