Skip to content

Commit

Permalink
Update references to the default branch (Azure#6149)
Browse files Browse the repository at this point in the history
This change updates references to this repo's default branch ("master" to "main") in YAML pipelines, markdown documents, scripts, and code comments in this repo. It also updates references to other repos where the default branch has been renamed.
  • Loading branch information
damonbarry committed Apr 14, 2022
1 parent 48e9df6 commit 7714f69
Show file tree
Hide file tree
Showing 45 changed files with 114 additions and 109 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ From: AzSec@microsoft.com
[Ss][Yy][Ss][Pp][Rr][Ee][Pp].[Ii][Nn][Ff]

###
From: https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
From: https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
Commit: 5130d9a5060fcaed8f7458a8717b5573f5562774
###

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# IoT Edge

[![Build Status](https://msazure.visualstudio.com/One/_apis/build/status/Custom/Azure/IoT/Edge/Core/Azure-IoT-Edge-Core%20CI?branchName=master)](https://msazure.visualstudio.com/One/_build/latest?definitionId=45137&branchName=master)
[![Build Status](https://dev.azure.com/msazure/One/_apis/build/status/Custom/Azure/IoT/Edge/Core/Azure-IoT-Edge-Core%20CI?branchName=main)](https://dev.azure.com/msazure/One/_build/latest?definitionId=45137&branchName=main)

Welcome to the home of IoT Edge.

Expand Down
2 changes: 1 addition & 1 deletion builds/checkin/api-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ trigger: none
pr:
branches:
include:
- master
- main
- release/*

jobs:
Expand Down
2 changes: 1 addition & 1 deletion builds/checkin/dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ trigger: none
pr:
branches:
include:
- master
- main
- release/*

jobs:
Expand Down
6 changes: 3 additions & 3 deletions builds/checkin/e2e-checkin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ trigger: none
pr:
branches:
include:
- master
- main
- release/*

resources:
pipelines:
- pipeline: images
source: 'Azure-IoT-Edge-Core Build Images'
branch: 'master'
branch: 'main'
- pipeline: packages
source: 'Azure-IoT-Edge-Core Edgelet Packages'
branch: 'master'
branch: 'main'

stages:

Expand Down
2 changes: 1 addition & 1 deletion builds/checkin/edgelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ trigger: none
pr:
branches:
include:
- master
- main
- release/*

jobs:
Expand Down
2 changes: 1 addition & 1 deletion builds/checkin/mqtt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ trigger: none
pr:
branches:
include:
- master
- main
- release/*

jobs:
Expand Down
2 changes: 1 addition & 1 deletion builds/checkin/rust-test-modules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ trigger: none
pr:
branches:
include:
- master
- main
- release/*

jobs:
Expand Down
2 changes: 1 addition & 1 deletion builds/checkin/watchdog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ trigger: none
pr:
branches:
include:
- master
- main
- release/*
jobs:

Expand Down
2 changes: 1 addition & 1 deletion builds/ci/dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ trigger:
batch: true
branches:
include:
- master
- main
- release/*
pr: none
variables:
Expand Down
2 changes: 1 addition & 1 deletion builds/ci/edgelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ trigger:
batch: true
branches:
include:
- master
- main
- release/*
pr: none

Expand Down
2 changes: 1 addition & 1 deletion builds/ci/mqtt.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
trigger:
branches:
include:
- master
- main
- release/*
paths:
include:
Expand Down
10 changes: 5 additions & 5 deletions builds/e2e/connectivity.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
trigger: none
pr: none

# Test schedule the same between master and release/1.2, but offset 12 hours.
# Test schedule the same between main and release/1.2, but offset 12 hours.
# Don't run any scheduled tests on Sunday, as release/1.1 runs its scheduled tests then.
schedules:
- cron: "0 0 * * 1,2,3,4,5,6"
displayName: Daily build master
displayName: Daily build main
branches:
include:
- master
- main
always: true
- cron: "0 12 * * 1,2,3,4,5,6"
displayName: Daily build release/1.2
Expand All @@ -24,10 +24,10 @@ resources:
pipelines:
- pipeline: images
source: 'Azure-IoT-Edge-Core Build Images'
branch: 'master'
branch: 'main'
- pipeline: packages
source: 'Azure-IoT-Edge-Core Edgelet Packages'
branch: 'master'
branch: 'main'

jobs:
################################################################################
Expand Down
8 changes: 4 additions & 4 deletions builds/e2e/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ resources:
pipelines:
- pipeline: images
source: 'Azure-IoT-Edge-Core Build Images'
branch: 'master'
branch: 'main'
trigger:
branches:
- master
- main
- release/*
- pipeline: packages
source: 'Azure-IoT-Edge-Core Edgelet Packages'
branch: 'master'
branch: 'main'
trigger:
branches:
- master
- main
- release/*

variables:
Expand Down
10 changes: 5 additions & 5 deletions builds/e2e/isa-95-smoke-test.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
trigger: none
pr: none

# Test schedule the same between master and release/1.2, but offset 12 hours.
# Test schedule the same between main and release/1.2, but offset 12 hours.
schedules:
- cron: "0 0 * * *"
displayName: Daily build master
displayName: Daily build main
branches:
include:
- master
- main
always: true
- cron: "0 12 * * *"
displayName: Daily build release/1.2
Expand All @@ -25,10 +25,10 @@ resources:
pipelines:
- pipeline: images
source: 'Azure-IoT-Edge-Core Build Images'
branch: 'master'
branch: 'main'
- pipeline: packages
source: 'Azure-IoT-Edge-Core Edgelet Packages'
branch: 'master'
branch: 'main'

stages:
- stage: LockAgents
Expand Down
10 changes: 5 additions & 5 deletions builds/e2e/nested-connectivity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ pr: none
# Thus the schedules between these pipelines are offset by 6 hours.
# This will ensure that enough agents are avaiable to service all tests.
#
# Test schedule the same between master and release/1.2, but offset 12 hours.
# Test schedule the same between main and release/1.2, but offset 12 hours.
schedules:
- cron: "0 0 * * *"
displayName: Daily build master
displayName: Daily build main
branches:
include:
- master
- main
always: true
- cron: "0 12 * * *"
displayName: Daily build release/1.2
Expand All @@ -24,10 +24,10 @@ resources:
pipelines:
- pipeline: images
source: 'Azure-IoT-Edge-Core Build Images'
branch: 'master'
branch: 'main'
- pipeline: packages
source: 'Azure-IoT-Edge-Core Edgelet Packages'
branch: 'master'
branch: 'main'

stages:
- stage: LockAgents
Expand Down
10 changes: 5 additions & 5 deletions builds/e2e/nested-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ pr: none
# Thus the schedules between these pipelines are offset by 6 hours.
# This will ensure that enough agents are avaiable to service all tests.
#
# Test schedule the same between master and release/1.2, but offset 12 hours.
# Test schedule the same between main and release/1.2, but offset 12 hours.
schedules:
- cron: "0 6 * * *"
displayName: Daily build master
displayName: Daily build main
branches:
include:
- master
- main
always: true
- cron: "0 18 * * *"
displayName: Daily build release/1.2
Expand All @@ -35,10 +35,10 @@ resources:
pipelines:
- pipeline: images
source: 'Azure-IoT-Edge-Core Build Images'
branch: 'master'
branch: 'main'
- pipeline: packages
source: 'Azure-IoT-Edge-Core Edgelet Packages'
branch: 'master'
branch: 'main'

stages:
- stage: LockAgents
Expand Down
4 changes: 2 additions & 2 deletions builds/e2e/nested-longhaul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ resources:
pipelines:
- pipeline: images
source: 'Azure-IoT-Edge-Core Build Images'
branch: master
branch: main
- pipeline: packages
source: 'Azure-IoT-Edge-Core Edgelet Packages'
branch: master
branch: main

stages:
- stage: SetupAgents
Expand Down
8 changes: 4 additions & 4 deletions builds/e2e/proxy/proxy-deployment-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@
"type": "bool"
},
"linux_vm_creation_template_uri": {
"defaultValue": "https://raw.githubusercontent.com/Azure/iotedge/master/builds/e2e/proxy/create-linux-vm-template.json",
"defaultValue": "https://raw.githubusercontent.com/Azure/iotedge/main/builds/e2e/proxy/create-linux-vm-template.json",
"type": "string"
},
"proxy_config_script_uri": {
"defaultValue": "https://raw.githubusercontent.com/Azure/iotedge/master/builds/e2e/proxy/configure_proxy.sh",
"defaultValue": "https://raw.githubusercontent.com/Azure/iotedge/main/builds/e2e/proxy/configure_proxy.sh",
"type": "string"
},
"runner_config_script_uri": {
"defaultValue": "https://raw.githubusercontent.com/Azure/iotedge/master/builds/e2e/proxy/configure_runner.sh",
"defaultValue": "https://raw.githubusercontent.com/Azure/iotedge/main/builds/e2e/proxy/configure_runner.sh",
"type": "string"
},
"create_ssh_keys_script_uri": {
"defaultValue": "https://raw.githubusercontent.com/Azure/iotedge/master/builds/e2e/proxy/create_ssh_keys.sh",
"defaultValue": "https://raw.githubusercontent.com/Azure/iotedge/main/builds/e2e/proxy/create_ssh_keys.sh",
"type": "string"
}
},
Expand Down
2 changes: 1 addition & 1 deletion builds/misc/images-mqtt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ trigger:
batch: true
branches:
include:
- master
- main
paths:
include:
- "mqtt/*"
Expand Down
2 changes: 1 addition & 1 deletion builds/misc/images-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resources:
pipelines:
- pipeline: images
source: 'Azure-IoT-Edge-Core Images Release YAML'
branch: 'master'
branch: 'main'

jobs:
################################################################################
Expand Down
2 changes: 1 addition & 1 deletion builds/misc/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ trigger:
batch: true
branches:
include:
- master
- main
- release/*
pr: none

Expand Down
2 changes: 1 addition & 1 deletion builds/misc/mqtt-perf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ schedules:
displayName: Pacific Time (UTC-7) Nightly Build
branches:
include:
- master
- main
always: true

# github repo for our fork of mqtt-benchmark tool.
Expand Down
2 changes: 1 addition & 1 deletion builds/misc/packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ trigger:
batch: true
branches:
include:
- master
- main
pr: none

stages:
Expand Down
2 changes: 1 addition & 1 deletion builds/service/service-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ schedules:
displayName: Nightly build
branches:
include:
- master
- main
always: true

pool:
Expand Down
9 changes: 5 additions & 4 deletions doc/NotaryContentTrust.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ To publish signed images, following tools must be installed in a publisher's env
2. Notary client - to initialize and create TUF trust collection
3. Docker client - to sign the image and publish to the Container Registry


### 1. Generate Certificates using OpenSSL
Follow instructions in [iotedge repository]([https://github.com/ggjjj/iotedge/blob/master/edgelet/doc/devguide.md](https://github.com/ggjjj/iotedge/blob/master/edgelet/doc/devguide.md)) to install OpenSSL. There are two types of certificates to be generated.
##### b. Generate Certificates
Follow instructions in [iotedge repository]([https://github.com/Azure/iotedge/blob/main/edgelet/doc/devguide.md](https://github.com/Azure/iotedge/blob/main/edgelet/doc/devguide.md)) to install OpenSSL. There are two types of certificates to be generated.
1. root CA for each container registry
2. root certificate for each container image

Expand Down Expand Up @@ -107,7 +106,9 @@ To check if the image is signed or not, `az` tools can be used. Before that logi

The root CA of each Container Registry i.e `root_ca_exampleregistry.crt` must be copied out of band into the device in a specific location.

In the `config.yaml`, in the Moby runtime section, content trust can be enabled by specifiying the registry server name and location of its corresponding root CA as shown in [sample](https://github.com/Azure/iotedge/blob/master/edgelet/contrib/config/linux/config.yaml)
In the `config.yaml`, in the Moby runtime section, content trust can be enabled by specifiying the registry server name and certificate ID of the root CA as shown in [sample](https://github.com/Azure/iotedge/blob/main/edgelet/iotedge/test-files/init/import/moby-runtime-content-trust/edged.yaml)

In the `super-config.toml`, under `moby_runtime.content_trust.ca_certs`, the mapping of the certificate ID and file path of the root CA must be configured as shown in [sample](https://github.com/Azure/iotedge/blob/main/edgelet/iotedge/test-files/config/moby-runtime-content-trust/super-config.toml#L56)

Recommendation is to create another Service Principal with Pull access for the edge device and ensure the login credentials are applied in the deployment manifest.

Expand Down
2 changes: 1 addition & 1 deletion doc/StyleGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ C# is a very broad, multi-paradigm language. It's done a good job over the years

### Baseline

Our baseline C# Coding Style is defined [here](https://github.com/Azure/DotNetty/wiki/C#-Coding-Style). These guidelines are used by the broader IoT Hub team. In order to enforce coding style, StyleCop (NuGet version) is used. StyleCop will be run automatically during build except Debug configuration. Some StyleCop rules are not applicable to IoT Edge, you can find out from [here](https://github.com/Azure/iotedge/blob/master/stylecop.ruleset).
Our baseline C# Coding Style is defined [here](https://github.com/Azure/DotNetty/wiki/C#-Coding-Style). These guidelines are used by the broader IoT Hub team. In order to enforce coding style, StyleCop (NuGet version) is used. StyleCop will be run automatically during build except Debug configuration. Some StyleCop rules are not applicable to IoT Edge, you can find out from [here](https://github.com/Azure/iotedge/blob/main/stylecop.ruleset).

### Resharper

Expand Down

0 comments on commit 7714f69

Please sign in to comment.