Skip to content

Commit

Permalink
changing registries to mcr
Browse files Browse the repository at this point in the history
  • Loading branch information
smritidahal653 committed Jul 10, 2024
1 parent be98b6d commit 3700a48
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion e2e/fixtures/confidential_container_pod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:
restartPolicy: Always
containers:
- image: docker.io/kengordon/parmasimple:latest
- image: mcr.microsoft.com/aci/aci-confidential-helloworld:v1
imagePullPolicy: Always
name: e2etest-conf-container
resources:
Expand Down
2 changes: 1 addition & 1 deletion e2e/fixtures/csi-driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
- containerPort: 80
name: http
protocol: TCP
- image: busybox
- image: mcr.microsoft.com/cbl-mariner/busybox:1.35
name: busybox
imagePullPolicy: Always
command: [
Expand Down
2 changes: 1 addition & 1 deletion e2e/fixtures/hpa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
- containerPort: 443
name: https
protocol: TCP
- image: busybox
- image: mcr.microsoft.com/cbl-mariner/busybox:1.35
name: busybox
imagePullPolicy: Always
command: [
Expand Down
6 changes: 3 additions & 3 deletions e2e/fixtures/initcontainers_ordertest_pod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ metadata:
spec:
nodeName: vk-aci-test-aks
initContainers:
- image: alpine
- image: mcr.microsoft.com/mirror/docker/library/alpine:3.16
name: init-container-01
command: [ "/bin/sh" ]
args: [ "-c", "echo Hi from init-container-01 >> /mnt/azure/newfile.txt" ]
volumeMounts:
- name: azure
mountPath: /mnt/azure
- image: alpine
- image: mcr.microsoft.com/mirror/docker/library/alpine:3.16
name: init-container-02
command: [ "/bin/sh" ]
args: [ "-c", "echo Hi from init-container-02 >> /mnt/azure/newfile.txt" ]
volumeMounts:
- name: azure
mountPath: /mnt/azure
containers:
- image: alpine
- image: mcr.microsoft.com/mirror/docker/library/alpine:3.16
imagePullPolicy: Always
name: container
command: [
Expand Down
2 changes: 1 addition & 1 deletion e2e/fixtures/multi-volume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
nodeName: vk-aci-test-aks
containers:
- image: busybox
- image: mcr.microsoft.com/cbl-mariner/busybox:1.35
imagePullPolicy: Always
name: busybox
command: [
Expand Down
2 changes: 1 addition & 1 deletion hack/e2e/aks-addon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ "$PR_RAND" = "" ]; then
fi

: "${RESOURCE_GROUP:=aks-addon-aci-test-$RANDOM_NUM}"
: "${LOCATION:=eastus2}"
: "${LOCATION:=eastus2euap}"
: "${CLUSTER_NAME:=${RESOURCE_GROUP}}"
: "${NODE_COUNT:=1}"
: "${CHART_NAME:=aks-addon--test}"
Expand Down
11 changes: 8 additions & 3 deletions hack/e2e/aks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ fi
: "${CLUSTER_SUBNET_RANGE=10.240.0.0/16}"
: "${ACI_SUBNET_RANGE=10.241.0.0/16}"
: "${VNET_NAME=myAKSVNet}"
: "${NSG_NAME=myAKSNSG}"
: "${CLUSTER_SUBNET_NAME=myAKSSubnet}"
: "${ACI_SUBNET_NAME=myACISubnet}"
: "${ACR_NAME=vkacr$RANDOM_NUM}"
Expand Down Expand Up @@ -96,10 +97,14 @@ az network vnet create \
--subnet-name $CLUSTER_SUBNET_NAME \
--subnet-prefix $CLUSTER_SUBNET_RANGE

az network nsg create \
--resource-group $RESOURCE_GROUP \
--name $NSG_NAME

aci_subnet_id="$(az network vnet subnet create \
--resource-group $RESOURCE_GROUP \
--vnet-name $VNET_NAME \
--network-security-group $VNET_NAME-nsg \
--network-security-group $NSG_NAME \
--name $ACI_SUBNET_NAME \
--address-prefix $ACI_SUBNET_RANGE \
--query id -o tsv)"
Expand All @@ -122,7 +127,7 @@ az aks create \
-g "$RESOURCE_GROUP" \
-l "$LOCATION" \
-c "$NODE_COUNT" \
--node-vm-size standard_d8_v3 \
--node-vm-size standard_d8s_v3 \
-n "$CLUSTER_NAME" \
--network-plugin azure \
--vnet-subnet-id "$aks_subnet_id" \
Expand All @@ -138,7 +143,7 @@ az aks create \
-g "$RESOURCE_GROUP" \
-l "$LOCATION" \
-c "$NODE_COUNT" \
--node-vm-size standard_d8_v3 \
--node-vm-size standard_d8s_v3 \
-n "$CLUSTER_NAME" \
--network-plugin azure \
--vnet-subnet-id "$aks_subnet_id" \
Expand Down

0 comments on commit 3700a48

Please sign in to comment.