Skip to content

Commit 8c9dff6

Browse files
Merge pull request openshift#104 from openshift-cloud-team/rebase-bot-master
OCPBUGS-28244: Merge https://github.com/kubernetes-sigs/cloud-provider-azure:master (de765cc) into master
2 parents 494bc60 + dc0bb56 commit 8c9dff6

File tree

5,137 files changed

+911347
-135660
lines changed

Some content is hidden

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

5,137 files changed

+911347
-135660
lines changed

.github/workflows/dependency-review.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Harden Runner
20-
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
20+
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
2121
with:
2222
egress-policy: audit
2323

2424
- name: 'Checkout Repository'
25-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
25+
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
2626
- name: 'Dependency Review'
27-
uses: actions/dependency-review-action@c74b580d73376b7750d3d2a50bfb8adc2c937507 # v3.1.5
27+
uses: actions/dependency-review-action@9129d7d40b8c12c1ed0f60400d00c92d437adcce # v4.1.3

.github/workflows/lint-ci-weekly.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Harden Runner
17-
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
17+
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
1818
with:
1919
egress-policy: audit
2020
- name: Setup Golang
@@ -23,9 +23,9 @@ jobs:
2323
go-version: '>=1.21'
2424
check-latest: true
2525
- name: Checkout
26-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
26+
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
2727
- name: golangci-lint
28-
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
28+
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
2929
with:
3030
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
3131
version: latest

.github/workflows/scorecards.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232

3333
steps:
3434
- name: Harden Runner
35-
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
35+
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
3636
with:
3737
egress-policy: audit
3838

3939
- name: "Checkout code"
40-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
40+
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
4141
with:
4242
persist-credentials: false
4343

@@ -64,7 +64,7 @@ jobs:
6464
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6565
# format to the repository Actions tab.
6666
- name: "Upload artifact"
67-
uses: actions/upload-artifact@1eb3cb2b3e0f29609092a73eb033bb759a334595 # v4.1.0
67+
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
6868
with:
6969
name: SARIF file
7070
path: results.sarif

.github/workflows/update-vendor-license.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ jobs:
3737

3838
steps:
3939
- name: Harden Runner
40-
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
40+
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
4141
with:
4242
egress-policy: audit
4343

4444
- name: Checkout repository
45-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
45+
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
4646
- name: Set up Go 1.x
4747
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
4848
with:
@@ -54,7 +54,7 @@ jobs:
5454
run: |
5555
make update
5656
- name: Create Pull Request
57-
uses: peter-evans/create-pull-request@v5
57+
uses: peter-evans/create-pull-request@v6
5858
with:
5959
branch: doc/update-vendorlicense-${{github.ref_name}}
6060
delete-branch: true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ _kubeconfig
3838
_rundir
3939

4040
site/.hugo_build.lock
41+
42+
.kubeconfig/

.pipelines/run-autoscaling-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ stages:
2929
- template: ./cnm-image.yml
3030
- job: create_aks_cluster_and_run_tests_job
3131
dependsOn: [build_push_ccm_image_job, build_push_cnm_image_job]
32-
timeoutInMinutes: 300
32+
timeoutInMinutes: 340
3333
steps:
3434
- task: GoTool@0
3535
inputs:

.pipelines/run-autoscaling-multipool-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ stages:
2929
- template: ./cnm-image.yml
3030
- job: create_aks_cluster_and_run_tests_job
3131
dependsOn: [build_push_ccm_image_job, build_push_cnm_image_job]
32-
timeoutInMinutes: 300
32+
timeoutInMinutes: 340
3333
steps:
3434
- task: GoTool@0
3535
inputs:

.pipelines/scripts/run-e2e.sh

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ if [[ -z "${AZURE_LOCATION:-}" ]]; then
7979
export AZURE_LOCATION="$(get_random_location)"
8080
fi
8181

82+
# TODO: remove this and use user-input CUSTOM_CCM_IMAGE_TAG to defined the image tag for
83+
# cloud provider azure. This will remove dependency on cloud-provider-azure repo, and use
84+
# explicit variables makes the interface more clear.
8285
if [[ -z "${IMAGE_TAG:-}" ]]; then
8386
IMAGE_TAG="$(git describe --tags)"
8487
fi
@@ -110,12 +113,11 @@ fi
110113
echo "Choose custom config file: ${CUSTOM_CONFIG_PATH:-}"
111114

112115
if [[ "${SKIP_BUILD_KUBETEST2_AKS:-}" != "true" ]]; then
113-
rm -rf kubetest2-aks
114-
git clone https://github.com/kubernetes-sigs/cloud-provider-azure.git
115-
cp -r cloud-provider-azure/kubetest2-aks .
116-
rm -rf cloud-provider-azure
117-
git config --global --add safe.directory "$(pwd)" || true
118-
pushd kubetest2-aks
116+
# Considering building kubetest2-aks has no dependency on cloud-provider-azure repo, and to avoid
117+
# the potential conflict between the cloud-provider-azure repo and the kubetest2-aks, we use a
118+
# tmp folder to clone the cloud-provider-azure repo and build kubetest2-aks.
119+
git clone https://github.com/kubernetes-sigs/cloud-provider-azure.git /tmp/cloud-provider-azure
120+
pushd /tmp/cloud-provider-azure/kubetest2-aks
119121
go get -d sigs.k8s.io/kubetest2@latest
120122
go install sigs.k8s.io/kubetest2@latest
121123
go mod tidy
@@ -125,6 +127,7 @@ if [[ "${SKIP_BUILD_KUBETEST2_AKS:-}" != "true" ]]; then
125127
else
126128
sudo GOPATH="/home/vsts/go" make install
127129
fi
130+
rm /tmp/cloud-provider-azure -rf
128131
popd
129132
fi
130133

@@ -148,9 +151,9 @@ kubetest2 aks --up --rgName "${RESOURCE_GROUP:-}" \
148151
--config "${CLUSTER_CONFIG_PATH:-}" \
149152
--customConfig "${CUSTOM_CONFIG_PATH}" \
150153
--clusterName "${CLUSTER_NAME:-}" \
151-
--ccmImageTag "${IMAGE_TAG:-}" \
154+
--ccmImageTag "${CUSTOM_CCM_IMAGE_TAG:-$IMAGE_TAG}" \
152155
--casImageTag "${CUSTOM_CAS_IMAGE:-}" \
153-
--kubernetesImageTag "${IMAGE_TAG:-}" \
156+
--kubernetesImageTag "${CUSTOM_K8S_IMAGE_TAG:-}" \
154157
--kubeletURL "${KUBELET_URL:-}" \
155158
--k8sVersion "${AKS_KUBERNETES_VERSION:-}"
156159

.pipelines/templates/customconfiguration-autoscaling-multipool.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"kube-cloud-controller-manager": {
44
"image": "{CUSTOM_CCM_IMAGE}",
55
"config": {
6-
"--min-resync-period": "10h0m0s",
7-
"--profiling": "false",
8-
"--v": "6"
6+
"--min-resync-period": "10h0m0s",
7+
"--profiling": "false",
8+
"--v": "6"
99
}
1010
},
1111
"kube-cloud-node-manager": {
1212
"image": "{CUSTOM_CNM_IMAGE}",
1313
"config": {
14-
"--node-name": "$(NODE_NAME)",
15-
"kube-api-burst": "50",
16-
"kube-api-qps": "50"
14+
"--node-name": "$(NODE_NAME)",
15+
"--kube-api-burst": "50",
16+
"--kube-api-qps": "50"
1717
}
1818
},
1919
"cluster-autoscaler": {
@@ -27,4 +27,4 @@
2727
}
2828
}
2929
}
30-
}
30+
}

.pipelines/templates/customconfiguration-autoscaling.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"kube-cloud-controller-manager": {
44
"image": "{CUSTOM_CCM_IMAGE}",
55
"config": {
6-
"--min-resync-period": "10h0m0s",
7-
"--profiling": "false",
8-
"--v": "6"
6+
"--min-resync-period": "10h0m0s",
7+
"--profiling": "false",
8+
"--v": "6"
99
}
1010
},
1111
"kube-cloud-node-manager": {
1212
"image": "{CUSTOM_CNM_IMAGE}",
1313
"config": {
14-
"--node-name": "$(NODE_NAME)",
15-
"kube-api-burst": "50",
16-
"kube-api-qps": "50"
14+
"--node-name": "$(NODE_NAME)",
15+
"--kube-api-burst": "50",
16+
"--kube-api-qps": "50"
1717
}
1818
},
1919
"cluster-autoscaler": {
@@ -26,4 +26,4 @@
2626
}
2727
}
2828
}
29-
}
29+
}

0 commit comments

Comments
 (0)