-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chores: upload credential-provider-config.yaml to artifact store in ci build #4280
Conversation
/lgtm |
LGTM label has been added. Git tree hash: 23fe5c0f4a99e5fc9cfcfd6b80725b0b18ad1e33
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4280 +/- ##
=======================================
Coverage 59.55% 59.55%
=======================================
Files 185 185
Lines 18782 18782
=======================================
Hits 11186 11186
Misses 6981 6981
Partials 615 615 ☔ View full report in Codecov by Sentry. |
/assign @nojnhuh |
/cherrypick release-1.11 |
@lzhecheng: once the present PR merges, I will cherry-pick it on top of release-1.11 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -8,7 +8,7 @@ | |||
mkdir C:\var\lib\kubelet\credential-provider | |||
curl.exe --retry 10 --retry-delay 5 -L "https://${AZURE_STORAGE_ACCOUNT}.blob.core.windows.net/${AZURE_BLOB_CONTAINER_NAME}/${IMAGE_TAG_ACR_CREDENTIAL_PROVIDER}/azure-acr-credential-provider.exe" --output C:\var\lib\kubelet\credential-provider\acr-credential-provider.exe | |||
cp C:\var\lib\kubelet\credential-provider\acr-credential-provider.exe C:\var\lib\kubelet\credential-provider\acr-credential-provider | |||
curl.exe --retry 10 --retry-delay 5 -L https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/${IMAGE_TAG_ACR_CREDENTIAL_PROVIDER}/examples/out-of-tree/credential-provider-config-win.yaml --output C:\var\lib\kubelet\credential-provider-config.yaml | |||
curl.exe --retry 10 --retry-delay 5 -L "https://${AZURE_STORAGE_ACCOUNT}.blob.core.windows.net/${AZURE_BLOB_CONTAINER_NAME}/${IMAGE_TAG_ACR_CREDENTIAL_PROVIDER}/credential-provider-config-win.yaml" --output C:\var\lib\kubelet\credential-provider-config.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Is there any way we can also print the http code like we do for linux? No need to block the PR on this -- but was just curious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no for now..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/retest |
@MartinForReal -- Can you please write a PR description for record, something on the lines of why this change is needed so that folks can get some context who may be seeing for the first time? Something on lines -- uploading credentials-config yaml to azure blob storage and using that in CI from azure blob storage and not from the github repository so that the downloads are fast and not flaky and hence stable CI ?? |
Also Netlify deploy is failing? I did not get an option to re trigger this. Does anyone know the root issue or how to re trigger this? cc @mboersma |
/hold |
/retest |
/unhold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
/cherry-pick release-1.11
LGTM label has been added. Git tree hash: 3aee7b5fe2cee70b4bc00adf471fc15761ec5d94
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@lzhecheng: #4280 failed to apply on top of branch "release-1.11":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this?
/kind failing-test
/kind cleanup
What this PR does / why we need it:
Uploading credentials-config yaml to azure blob storage and fix flaky e2e scenarios which uses oot azure credential provider.
In recent e2e build of cloud provider project, Cluster node may fail to initialize the control plane because credential provider config is invalid and kubelet crashes.
The config is downloaded from git repo when the node is provisioned.
cluster-api-provider-azure/templates/test/ci/cluster-template-prow-ci-version.yaml
Line 116 in c6c977e
But the commit may reside in forked repo. And provision script will get 404 when it tries to download config file in this scenario.
The config file may be a part of changes. We should upload it to blob store to make sure config file is validated too.
Also, status code of http response is sent to stdout for debug purpose.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
TODOs:
Release note: