-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nested data plane helm charts and release (#36)
* Nested data plane helm charts * helm accelerator renaming, separate releases and #15
- Loading branch information
Showing
33 changed files
with
694 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Main - Release Helm Chart IoT Edge Accelerator L2 | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
# Only run this when chart file is updated. | ||
- 'deployment/helm/iot-edge-l2/Chart.yaml' | ||
|
||
jobs: | ||
Release-Artifacts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Get the version | ||
id: vars | ||
run: echo ::set-output name=tag::$(echo main-${GITHUB_SHA}) | ||
|
||
- name: Echo Docker images tag | ||
run: echo ${{steps.vars.outputs.tag}} | ||
|
||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
charts_dir: deployment/helm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Main - Release Helm Chart IoT Edge Accelerator L4 | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
# Only run this when chart file is updated. | ||
- 'deployment/helm/iot-edge-l4/Chart.yaml' | ||
|
||
jobs: | ||
Release-Artifacts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Get the version | ||
id: vars | ||
run: echo ::set-output name=tag::$(echo main-${GITHUB_SHA}) | ||
|
||
- name: Echo Docker images tag | ||
run: echo ${{steps.vars.outputs.tag}} | ||
|
||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
charts_dir: deployment/helm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Main - Release Helm Chart Mosquitto Broker | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
# Only run this when chart file is updated. | ||
- 'deployment/helm/mosquitto/Chart.yaml' | ||
|
||
jobs: | ||
Release-Artifacts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Get the version | ||
id: vars | ||
run: echo ::set-output name=tag::$(echo main-${GITHUB_SHA}) | ||
|
||
- name: Echo Docker images tag | ||
run: echo ${{steps.vars.outputs.tag}} | ||
|
||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
charts_dir: deployment/helm |
5 changes: 3 additions & 2 deletions
5
.github/workflows/Release.yml → .github/workflows/Release-squid-proxy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
deployment/helm/iot-edge-accelerator/templates/dapr/redis-pub-sub.yaml
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
deployment/helm/iot-edge-l2/templates/dapr/mqtt-pub-sub.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: dapr.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: {{ .Values.opcPublisherModule.pubsub }} | ||
spec: | ||
type: pubsub.mqtt3 | ||
version: v1 | ||
metadata: | ||
- name: url | ||
value: {{ .Values.localPubSubModule.mqttUri }} | ||
- name: retain | ||
value: "false" | ||
- name: cleanSession | ||
value: "false" | ||
- name: qos | ||
value: "1" | ||
- name: consumerID | ||
value: "{podName}" | ||
# Lock down type of access for each service. | ||
- name: publishingScopes | ||
value: "simulated-temperature-sensor-module=telemetry;opc-publisher-module=telemetry" | ||
- name: subscriptionScopes | ||
value: "simulated-temperature-sensor-module=;opc-publisher-module=" | ||
# Lock down the topics on this pubsub component. | ||
- name: allowedTopics | ||
value: "telemetry" | ||
|
||
scopes: | ||
- simulated-temperature-sensor-module | ||
- opc-publisher-module |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
.tgz | ||
index.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: v2 | ||
name: iot-edge-l4 | ||
description: A Helm chart for deploying IoT Edge Accelerator L4 (layer 4) on K8s, pre-release version. | ||
keywords: | ||
- azure | ||
- iot | ||
- edge | ||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
version: 0.1.0 | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. | ||
appVersion: 0.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
You have installed release {{ .Chart.Version}} of {{ .Chart.Name }} of IoT Edge K8s Accelerator, pre-release version. | ||
|
||
To learn more about the release, try: | ||
|
||
$ helm status {{ .Release.Name }} | ||
$ helm get all {{ .Release.Name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
deployment/helm/iot-edge-l4/templates/dapr/gateway-pub-sub.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: dapr.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: gateway-pub-sub | ||
spec: | ||
type: pubsub.mqtt3 | ||
version: v1 | ||
metadata: | ||
- name: url | ||
value: {{ .Values.gatewayPubSubModule.mqttUri }} | ||
- name: retain | ||
value: "false" | ||
- name: cleanSession | ||
value: "false" | ||
- name: qos | ||
value: "1" | ||
- name: consumerID | ||
value: "{podName}" | ||
# Lock down type of access for each service. | ||
- name: publishingScopes | ||
value: "data-gateway-module=" | ||
- name: subscriptionScopes | ||
value: "data-gateway-module=telemetry;" | ||
# Lock down the topics on this pubsub component. | ||
- name: allowedTopics | ||
value: "telemetry" | ||
|
||
scopes: | ||
- data-gateway-module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Data Gateway module settings | ||
dataGatewayModule: | ||
eventHubConnectionString: "replace_with_real_key_at_deploy_time" | ||
storageAccountName: "replace_with_storage_account_name_at_deploy_time" | ||
storageAccountKey: "replace_with_storage_account_key_at_deploy_time" | ||
|
||
# Local Pub Sub module settings | ||
gatewayPubSubModule: | ||
mqttUri: "tcp://mosquittocluster.edge-core.svc.cluster.local:1883" | ||
name: gateway-pub-sub | ||
|
||
# Docker images | ||
images: | ||
datagatewaymodule: ghcr.io/azure-samples/distributed-az-iot-edge/datagatewaymodule:main-78b133d |
Oops, something went wrong.