Skip to content

Commit

Permalink
Promote to AIO repo v0.5.1-preview (#55)
Browse files Browse the repository at this point in the history
Promote to AIO repo

---------

Co-authored-by: Azure IoT Operations Bot <actionbot@azure.com>
Co-authored-by: Nonso Chukwuogor <nonsochukwuogor@gmail.com>
  • Loading branch information
3 people authored Jun 10, 2024
1 parent cd5e0a2 commit dbad9f2
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-azure-iot-operations-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
exit 1
fi
if [[ "${{ github.ref }}" != "refs/heads/main" ]] && [[ "${{ github.ref }}" != "refs/heads/release"* ]]; then
echo "::error::This workflow should only be run on the main and release branch"
if [[ "${{ github.ref }}" != "refs/heads/main" ]]; then
echo "::error::This workflow should only be run on the main branch"
exit 1
fi
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
run: |-
set -e
gh auth login --with-token <<< "${{ github.token }}"
gh auth login --with-token <<< "${{ secrets.GITHUB_TOKEN }}"
url=$(gh release create "${{ needs.ValidateRelease.outputs.version }}" \
--latest \
--target "${{ github.ref }}" \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-azure-iot-operations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
required: true
type: string
aioParamsPath:
description: 'The path to the environment parameters file for the AIO deployment. (e.g., environments/example.parameters.json)'
description: 'The path to the environment parameters file for the AIO deployment. (e.g. environments/example.parameters.json)'
required: true
type: string
jobs:
Expand All @@ -37,7 +37,7 @@ jobs:
echo "ERROR: Could not find the AIO template to deploy."
exit 1
fi
az deployment group create \
--resource-group ${{ github.event.inputs.clusterResourceGroup }} \
--subscription ${{ github.event.inputs.clusterSubscription }} \
Expand Down
87 changes: 76 additions & 11 deletions release/azure-iot-operations.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.170.59819",
"templateHash": "4883201656764697459"
"version": "0.27.1.19265",
"templateHash": "15976453598225037765"
},
"description": "This template deploys Azure IoT Operations."
},
Expand Down Expand Up @@ -196,6 +196,20 @@
"description": "The mq service type. The default is clusterIp."
}
},
"deployDataProcessor": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "Conditionally deploy Data Processor"
}
},
"deployLayeredNetworking": {
"type": "bool",
"defaultValue": true,
"metadata": {
"description": "Conditionally deploy Layered Networking"
}
},
"dataProcessorSecrets": {
"type": "object",
"defaultValue": {
Expand Down Expand Up @@ -280,7 +294,20 @@
"port": 8883,
"localUrl": "[format('mqtts://aio-mq-dmqtt-frontend.{0}:8883', variables('AIO_CLUSTER_RELEASE_NAMESPACE'))]",
"name": "aio-mq-dmqtt-frontend",
"satAudience": "aio-mq"
"satAudience": "aio-mq",
"mqInstanceName": "[parameters('mqInstanceName')]",
"mqBrokerName": "[parameters('mqBrokerName')]",
"mqListenerName": "[parameters('mqListenerName')]",
"mqAuthnName": "[parameters('mqAuthnName')]",
"mqFrontendServer": "[parameters('mqFrontendServer')]",
"mqFrontendReplicas": "[parameters('mqFrontendReplicas')]",
"mqFrontendWorkers": "[parameters('mqFrontendWorkers')]",
"mqBackendRedundancyFactor": "[parameters('mqBackendRedundancyFactor')]",
"mqBackendWorkers": "[parameters('mqBackendWorkers')]",
"mqBackendPartitions": "[parameters('mqBackendPartitions')]",
"mqMode": "[parameters('mqMode')]",
"mqMemoryProfile": "[parameters('mqMemoryProfile')]",
"mqServiceType": "[parameters('mqServiceType')]"
},
"DEFAULT_CONTAINER_REGISTRY": "mcr.microsoft.com/azureiotoperations",
"CONTAINER_REGISTRY_DOMAINS": {
Expand All @@ -290,7 +317,7 @@
"VERSIONS": {
"mq": "0.4.0-preview",
"observability": "0.1.0-preview",
"aio": "0.5.0-preview",
"aio": "0.5.1-preview",
"layeredNetworking": "0.1.0-preview",
"processor": "0.2.1-preview",
"opcUaBroker": "0.4.0-preview",
Expand Down Expand Up @@ -594,6 +621,7 @@
]
},
{
"condition": "[parameters('deployDataProcessor')]",
"type": "Microsoft.KubernetesConfiguration/extensions",
"apiVersion": "2022-03-01",
"scope": "[format('Microsoft.Kubernetes/connectedClusters/{0}', parameters('clusterName'))]",
Expand Down Expand Up @@ -688,6 +716,7 @@
]
},
{
"condition": "[parameters('deployLayeredNetworking')]",
"type": "Microsoft.KubernetesConfiguration/extensions",
"apiVersion": "2022-03-01",
"scope": "[format('Microsoft.Kubernetes/connectedClusters/{0}', parameters('clusterName'))]",
Expand All @@ -713,12 +742,7 @@
"hostResourceId": "[resourceId('Microsoft.Kubernetes/connectedClusters', parameters('clusterName'))]",
"namespace": "[variables('AIO_CLUSTER_RELEASE_NAMESPACE')]",
"displayName": "[parameters('customLocationName')]",
"clusterExtensionIds": [
"[extensionResourceId(resourceId('Microsoft.Kubernetes/connectedClusters', parameters('clusterName')), 'Microsoft.KubernetesConfiguration/extensions', format('azure-iot-operations-{0}', variables('AIO_EXTENSION_SUFFIX')))]",
"[extensionResourceId(resourceId('Microsoft.Kubernetes/connectedClusters', parameters('clusterName')), 'Microsoft.KubernetesConfiguration/extensions', format('assets-{0}', variables('AIO_EXTENSION_SUFFIX')))]",
"[extensionResourceId(resourceId('Microsoft.Kubernetes/connectedClusters', parameters('clusterName')), 'Microsoft.KubernetesConfiguration/extensions', format('processor-{0}', variables('AIO_EXTENSION_SUFFIX')))]",
"[extensionResourceId(resourceId('Microsoft.Kubernetes/connectedClusters', parameters('clusterName')), 'Microsoft.KubernetesConfiguration/extensions', format('mq-{0}', variables('AIO_EXTENSION_SUFFIX')))]"
]
"clusterExtensionIds": "[union(createArray(extensionResourceId(resourceId('Microsoft.Kubernetes/connectedClusters', parameters('clusterName')), 'Microsoft.KubernetesConfiguration/extensions', format('azure-iot-operations-{0}', variables('AIO_EXTENSION_SUFFIX'))), extensionResourceId(resourceId('Microsoft.Kubernetes/connectedClusters', parameters('clusterName')), 'Microsoft.KubernetesConfiguration/extensions', format('assets-{0}', variables('AIO_EXTENSION_SUFFIX'))), extensionResourceId(resourceId('Microsoft.Kubernetes/connectedClusters', parameters('clusterName')), 'Microsoft.KubernetesConfiguration/extensions', format('mq-{0}', variables('AIO_EXTENSION_SUFFIX')))), if(parameters('deployDataProcessor'), createArray(extensionResourceId(resourceId('Microsoft.Kubernetes/connectedClusters', parameters('clusterName')), 'Microsoft.KubernetesConfiguration/extensions', format('processor-{0}', variables('AIO_EXTENSION_SUFFIX')))), createArray()))]"
},
"dependsOn": [
"[extensionResourceId(resourceId('Microsoft.Kubernetes/connectedClusters', parameters('clusterName')), 'Microsoft.KubernetesConfiguration/extensions', format('azure-iot-operations-{0}', variables('AIO_EXTENSION_SUFFIX')))]",
Expand Down Expand Up @@ -767,7 +791,7 @@
]
},
{
"condition": "[parameters('deployResourceSyncRules')]",
"condition": "[and(parameters('deployResourceSyncRules'), parameters('deployDataProcessor'))]",
"type": "Microsoft.ExtendedLocation/customLocations/resourceSyncRules",
"apiVersion": "2021-08-31-preview",
"name": "[format('{0}/{1}', parameters('customLocationName'), format('{0}-dp-sync', parameters('customLocationName')))]",
Expand Down Expand Up @@ -807,6 +831,7 @@
]
},
{
"condition": "[parameters('deployDataProcessor')]",
"type": "Microsoft.IoTOperationsDataProcessor/instances",
"apiVersion": "2023-10-04-preview",
"name": "[parameters('dataProcessorInstanceName')]",
Expand Down Expand Up @@ -1012,6 +1037,10 @@
}
],
"outputs": {
"clusterName": {
"type": "string",
"value": "[parameters('clusterName')]"
},
"customLocationId": {
"type": "string",
"value": "[resourceId('Microsoft.ExtendedLocation/customLocations', parameters('customLocationName'))]"
Expand Down Expand Up @@ -1039,6 +1068,42 @@
"observability": {
"type": "object",
"value": "[variables('OBSERVABILITY')]"
},
"clusterInfo": {
"type": "object",
"value": {
"clusterName": "[parameters('clusterName')]",
"aioNamespace": "[variables('AIO_CLUSTER_RELEASE_NAMESPACE')]"
}
},
"dataprocessor": {
"type": "object",
"value": {
"enabled": "[parameters('deployDataProcessor')]",
"name": "[parameters('dataProcessorInstanceName')]"
}
},
"lnm": {
"type": "object",
"value": {
"enabled": "[parameters('deployLayeredNetworking')]"
}
},
"orchestrator": {
"type": "object",
"value": {
"enabled": true,
"targetName": "[parameters('targetName')]"
}
},
"customLocation": {
"type": "object",
"value": {
"id": "[resourceId('Microsoft.ExtendedLocation/customLocations', parameters('customLocationName'))]",
"name": "[parameters('customLocationName')]",
"resourceSyncRulesEnabled": "[parameters('deployResourceSyncRules')]",
"resourceSyncRules": "[union(createArray(format('{0}-aio-sync', parameters('customLocationName')), format('{0}-adr-sync', parameters('customLocationName')), format('{0}-mq-sync', parameters('customLocationName'))), if(parameters('deployDataProcessor'), createArray(format('{0}-dp-sync', parameters('customLocationName'))), createArray()))]"
}
}
}
}
4 changes: 2 additions & 2 deletions tools/SetSubscriptionID.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
setlocal enabledelayedexpansion

rem Set the directory path where the files are located
set "directory=../samples/grafana-dashboards/"
set "directory=..\samples\grafana-dashboards\"

rem Set the placeholder string
set "placeholder=<Placeholder_subID>"
set "placeholder=<Placeholder_SubID>"

rem Prompt the user to enter the new string
set /p "newString=Enter the new string: "
Expand Down
26 changes: 26 additions & 0 deletions tools/SetSubscriptionID.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

# Set the directory path where the files are located
directory="../samples/grafana-dashboards"

# Set the placeholder string
# <Placeholder_SubID>
placeholder="<Placeholder_SubID>"

# Prompt the user to enter the new string
read -p "Enter the new string: " newString

# Iterate over each file in the directory
for file in "$directory"/*; do
# Check if the file is not a directory
if [ -f "$file" ]; then
# Search for the placeholder string in the file
if grep -q "$placeholder" "$file"; then
# Replace the placeholder string with the new string
sed -i "s/$placeholder/$newString/g" "$file"
echo "Placeholder replaced in: $file"
else
echo "Placeholder not found in: $file"
fi
fi
done

0 comments on commit dbad9f2

Please sign in to comment.