Skip to content

Use original code blocs #669

Open
Open
@rgardler-msft

Description

@rgardler-msft

When converting an existing doc the agent should, unless it finds an error, use the same code block as in the original document. Failure to do this can result in a passing test, but incomplete configuration.

For example, from the original doc I had:

az aks create \
--resource-group ${RG_NAME} \
--name ${AKS_NAME} \
--location ${LOCATION} \
--tier standard \
--kubernetes-version ${K8S_VERSION} \
--os-sku AzureLinux \
--nodepool-name systempool \
--node-count 3 \
--zones 1 2 3 \
--load-balancer-sku standard \
--network-plugin azure \
--network-plugin-mode overlay \
--network-dataplane cilium \
--network-policy cilium \
--ssh-access disabled \
--enable-managed-identity \
--enable-acns \
--generate-ssh-keys

The generated doc gave me:

az aks create \
  --resource-group $RESOURCE_GROUP_NAME \
  --name $CLUSTER_NAME \
  --node-count 1 \
  --generate-ssh-keys \
  --enable-managed-identity \
  --enable-aad \
  --disable-local-accounts \
  --kubernetes-version $AKS_VERSION  

This created a valid AKS cluster but subsequent commands didn't work.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions