Skip to content

Commit 9da8675

Browse files
Merge branch 'master' into prefixOnNicv6Support
Signed-off-by: NihaNallappagari <[email protected]>
2 parents 3aa8e27 + 321acb0 commit 9da8675

File tree

82 files changed

+2191
-739
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+2191
-739
lines changed

.github/dependabot.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ updates:
55
directory: "/"
66
schedule:
77
interval: "daily"
8-
reviewers:
9-
- "azure/azure-sdn-members"
108
commit-message:
119
prefix: "ci"
1210
labels: [ "ci", "dependencies" ]
@@ -15,8 +13,6 @@ updates:
1513
directory: "/"
1614
schedule:
1715
interval: "daily"
18-
reviewers:
19-
- "azure/azure-sdn-members"
2016
commit-message:
2117
prefix: "ci"
2218
labels: [ "ci", "dependencies" ]
@@ -25,8 +21,6 @@ updates:
2521
directory: "/"
2622
schedule:
2723
interval: "daily"
28-
reviewers:
29-
- "azure/azure-sdn-members"
3024
commit-message:
3125
prefix: "deps"
3226
labels: [ "dependencies" ]
@@ -35,8 +29,6 @@ updates:
3529
directory: "/azure-ipam"
3630
schedule:
3731
interval: "daily"
38-
reviewers:
39-
- "azure/azure-sdn-members"
4032
commit-message:
4133
prefix: "deps"
4234
labels: [ "dependencies", "azure-ipam" ]
@@ -45,8 +37,6 @@ updates:
4537
directory: "/build/tools"
4638
schedule:
4739
interval: "daily"
48-
reviewers:
49-
- "azure/azure-sdn-members"
5040
commit-message:
5141
prefix: "deps"
5242
labels: [ "dependencies" ]
@@ -71,8 +61,6 @@ updates:
7161
directory: "/"
7262
schedule:
7363
interval: "daily"
74-
reviewers:
75-
- "azure/azure-sdn-members"
7664
commit-message:
7765
prefix: "deps"
7866
labels: [ "dependencies", "release/1.5" ]
@@ -82,8 +70,6 @@ updates:
8270
directory: "/azure-ipam"
8371
schedule:
8472
interval: "daily"
85-
reviewers:
86-
- "azure/azure-sdn-members"
8773
commit-message:
8874
prefix: "deps"
8975
labels: [ "dependencies", "azure-ipam", "release/1.5" ]
@@ -93,8 +79,6 @@ updates:
9379
directory: "/"
9480
schedule:
9581
interval: "daily"
96-
reviewers:
97-
- "azure/azure-sdn-members"
9882
commit-message:
9983
prefix: "deps"
10084
labels: [ "dependencies", "release/1.4" ]
@@ -104,8 +88,6 @@ updates:
10488
directory: "/azure-ipam"
10589
schedule:
10690
interval: "daily"
107-
reviewers:
108-
- "azure/azure-sdn-members"
10991
commit-message:
11092
prefix: "deps"
11193
labels: [ "dependencies", "azure-ipam", "release/1.4" ]

.github/workflows/stale.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ jobs:
1616
id: stale
1717
with:
1818
ascending: true
19-
close-issue-message: 'Issue closed due to inactivity.'
2019
close-pr-message: 'Pull request closed due to inactivity.'
21-
days-before-close: 7
2220
days-before-stale: 14
21+
days-before-issue-close: -1
22+
days-before-pr-close: 7
2323
delete-branch: true
2424
exempt-issue-labels: 'exempt-stale'
25+
exempt-pr-labels: 'exempt-stale,dependencies,ci'
2526
operations-per-run: 100
26-
stale-issue-message: 'This issue is stale because it has been open for 2 weeks with no activity. Remove stale label or comment or this will be closed in 7 days'
27+
stale-issue-message: 'This issue is stale because it has been open for 2 weeks with no activity. Remove stale label or comment to keep it open.'
2728
stale-pr-message: 'This pull request is stale because it has been open for 2 weeks with no activity. Remove stale label or comment or this will be closed in 7 days'
2829
- name: Print outputs
2930
run: echo ${{ join(steps.stale.outputs.*, ',') }}

.golangci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ linters:
99
- format
1010
- performance
1111
- unused
12-
disable:
13-
- maligned
14-
- scopelint
1512
enable:
16-
- exportloopref
13+
- copyloopvar
1714
- goconst
1815
- gocritic
1916
- gocyclo
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ARG ARCH
2+
3+
FROM scratch AS linux
4+
ARG ARTIFACT_DIR
5+
6+
COPY ${ARTIFACT_DIR}/bin/azure-ip-masq-merger /azure-ip-masq-merger
7+
ENTRYPOINT ["/azure-ip-masq-merger"]

.pipelines/build/dockerfiles/cni.Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
# !! AUTOGENERATED - DO NOT EDIT !!
2+
# SOURCE: .pipelines/build/dockerfiles/cni.Dockerfile.tmpl
13
ARG ARCH
24

3-
4-
# skopeo inspect docker://mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0 --format "{{.Name}}@{{.Digest}}"
5-
FROM --platform=windows/${ARCH} mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image@sha256:b4c9637e032f667c52d1eccfa31ad8c63f1b035e8639f3f48a510536bf34032b as windows
5+
# mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0
6+
FROM --platform=windows/${ARCH} mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image@sha256:b4c9637e032f667c52d1eccfa31ad8c63f1b035e8639f3f48a510536bf34032b AS windows
67
ARG ARTIFACT_DIR .
78

89
COPY ${ARTIFACT_DIR}/bin/dropgz.exe /dropgz.exe
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# {{.RENDER_MSG}}
2+
# SOURCE: {{.SRC_PIPE}}
3+
ARG ARCH
4+
5+
# {{.WIN_HPC_IMG}}
6+
FROM --platform=windows/${ARCH} {{.WIN_HPC_PIN}} AS windows
7+
ARG ARTIFACT_DIR .
8+
9+
COPY ${ARTIFACT_DIR}/bin/dropgz.exe /dropgz.exe
10+
ENTRYPOINT [ "/dropgz.exe" ]
11+
12+
13+
FROM scratch AS linux
14+
ARG ARTIFACT_DIR .
15+
16+
COPY ${ARTIFACT_DIR}/bin/dropgz /dropgz
17+
ENTRYPOINT [ "/dropgz" ]

.pipelines/build/dockerfiles/cns.Dockerfile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1+
# !! AUTOGENERATED - DO NOT EDIT !!
2+
# SOURCE: .pipelines/build/dockerfiles/cns.Dockerfile.tmpl
13
ARG ARCH
24

3-
45
# mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0
56
FROM --platform=windows/${ARCH} mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image@sha256:b4c9637e032f667c52d1eccfa31ad8c63f1b035e8639f3f48a510536bf34032b AS windows
67
ARG ARTIFACT_DIR .
78

8-
COPY ${ARTIFACT_DIR}/files/kubeconfigtemplate.yaml kubeconfigtemplate.yaml
9-
COPY ${ARTIFACT_DIR}/scripts/setkubeconfigpath.ps1 setkubeconfigpath.ps1
109
COPY ${ARTIFACT_DIR}/bin/azure-cns.exe /azure-cns.exe
1110
ENTRYPOINT ["azure-cns.exe"]
1211
EXPOSE 10090
1312

14-
15-
# mcr.microsoft.com/cbl-mariner/base/core:2.0
16-
# skopeo inspect docker://mcr.microsoft.com/cbl-mariner/base/core:2.0 --format "{{.Name}}@{{.Digest}}"
17-
FROM --platform=linux/${ARCH} mcr.microsoft.com/cbl-mariner/base/core@sha256:961bfedbbbdc0da51bc664f51d959da292eced1ad46c3bf674aba43b9be8c703 AS build-helper
13+
# mcr.microsoft.com/azurelinux/base/core:3.0
14+
FROM --platform=linux/${ARCH} mcr.microsoft.com/azurelinux/base/core@sha256:9948138108a3d69f1dae62104599ac03132225c3b7a5ac57b85a214629c8567d AS build-helper
1815
RUN tdnf install -y iptables
1916

20-
# mcr.microsoft.com/cbl-mariner/distroless/minimal:2.0
21-
FROM --platform=linux/${ARCH} mcr.microsoft.com/cbl-mariner/distroless/minimal@sha256:7778a86d86947d5f64c1280a7ee0cf36c6c6d76b5749dd782fbcc14f113961bf AS linux
17+
# mcr.microsoft.com/azurelinux/distroless/minimal:3.0
18+
FROM --platform=linux/${ARCH} mcr.microsoft.com/azurelinux/distroless/minimal@sha256:0801b80a0927309572b9adc99bd1813bc680473175f6e8175cd4124d95dbd50c AS linux
2219
ARG ARTIFACT_DIR .
2320

2421
COPY --from=build-helper /usr/sbin/*tables* /usr/sbin/
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# {{.RENDER_MSG}}
2+
# SOURCE: {{.SRC_PIPE}}
3+
ARG ARCH
4+
5+
# {{.WIN_HPC_IMG}}
6+
FROM --platform=windows/${ARCH} {{.WIN_HPC_PIN}} AS windows
7+
ARG ARTIFACT_DIR .
8+
9+
COPY ${ARTIFACT_DIR}/bin/azure-cns.exe /azure-cns.exe
10+
ENTRYPOINT ["azure-cns.exe"]
11+
EXPOSE 10090
12+
13+
# {{.MARINER_CORE_IMG}}
14+
FROM --platform=linux/${ARCH} {{.MARINER_CORE_PIN}} AS build-helper
15+
RUN tdnf install -y iptables
16+
17+
# {{.MARINER_DISTROLESS_IMG}}
18+
FROM --platform=linux/${ARCH} {{.MARINER_DISTROLESS_PIN}} AS linux
19+
ARG ARTIFACT_DIR .
20+
21+
COPY --from=build-helper /usr/sbin/*tables* /usr/sbin/
22+
COPY --from=build-helper /usr/lib /usr/lib
23+
COPY ${ARTIFACT_DIR}/bin/azure-cns /usr/local/bin/azure-cns
24+
ENTRYPOINT [ "/usr/local/bin/azure-cns" ]
25+
EXPOSE 10090

.pipelines/build/manifests.jobs.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,31 @@ jobs:
3636
image_repository: ${{ job_data.templateContext.name }}
3737
image_tag: ${{ job_data.templateContext.image_tag }}
3838
manifest_data: $(MANIFEST_JSON)
39+
40+
- job: ${{ job_data.job }}_package_manifest
41+
displayName: "Package Image Manifest - ${{ job_data.job }}"
42+
dependsOn:
43+
- ${{ job_data.job }}_publish_manifest
44+
pool:
45+
type: linux
46+
variables:
47+
LinuxContainerImage: 'mcr.microsoft.com/onebranch/azurelinux/build:3.0'
48+
ob_outputDirectory: $(Build.SourcesDirectory)/out
49+
ob_git_checkout: false
50+
steps:
51+
# Leverage new feature from https://github.com/oras-project/oras/issues/1366 in the future
52+
# :v1 has no impact, but is required for oras
53+
# Copy manifest from ACR
54+
- bash: |
55+
oras copy $(ACR).azurecr.io/$(IMAGE_REPO_PATH)/${{ job_data.templateContext.name }}:${{ job_data.templateContext.image_tag }} \
56+
--to-oci-layout ./${{ job_data.templateContext.image_tag }}_artifact:v1
57+
name: oras_copy
58+
displayName: "Oras Copy"
59+
60+
# Generate tarball
61+
- bash: |
62+
TARGET_DIR=$(ob_outputDirectory)
63+
mkdir -p "$TARGET_DIR"
64+
tar -cvzf ${TARGET_DIR}/${{ job_data.templateContext.image_tag }}_artifact.tar.gz ./${{ job_data.templateContext.image_tag }}_artifact
65+
name: tarball
66+
displayName: "Generate tarball"

.pipelines/build/ob-prepare.steps.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
steps:
32
- template: utils/rename-dockerfile-references.steps.yaml
43
parameters:
@@ -59,6 +58,10 @@ steps:
5958
echo "##vso[task.setvariable variable=azureIpamVersion;isOutput=true]$AZUREIPAMVERSION"
6059
echo "azureIpamVersion: $AZUREIPAMVERSION"
6160
61+
AZUREIPMASQMERGERVERSION=$(make azure-ip-masq-merger-version)
62+
echo "##vso[task.setvariable variable=azureIpMasqMergerVersion;isOutput=true]$AZUREIPMASQMERGERVERSION"
63+
echo "azureIpMasqMergerVersion: $AZUREIPMASQMERGERVERSION"
64+
6265
CNIVERSION=$(make cni-version)
6366
echo "##vso[task.setvariable variable=cniVersion;isOutput=true]$CNIVERSION"
6467
echo "cniVersion: $CNIVERSION"

0 commit comments

Comments
 (0)