-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add re-try mechanims within signing manifest when using recursive #11339
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: see-quick <[email protected]>
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, just one question.
MANIFEST_DIGEST=$(shell docker buildx imagetools inspect $(DOCKER_REGISTRY)/$(DOCKER_ORG)/$(PROJECT_NAME):$(DOCKER_TAG) --format '{{ json . }}' | jq -r .manifest.digest); \ | ||
cosign sign --recursive --tlog-upload=false -a author=StrimziCI -a BuildID=$(BUILD_ID) -a Commit=$(BUILD_COMMIT) --key cosign.key $(DOCKER_REGISTRY)/$(DOCKER_ORG)/$(PROJECT_NAME)@$$MANIFEST_DIGEST | ||
@rm cosign.key | ||
RETRIES=5; \ |
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.
Just a suggestion -> should 3 be enough in this case?
While I think the proposed change could work, I was wondering if just increasing the timeout for the command, by using |
Yeah, we can try increasing the timeout as a first step. That's a good point. I will create a separate PR. |
Created #11342. |
Type of change
Description
Why
Fixes [1]:
This PR adds a retry mechanism because of the dozens of problems we hit during signing manifests. I have done only change to
strimzi-kafka-operator/Makefile.docker
Line 78 in 83236e5
These parts I thin,k should be safe:
strimzi-kafka-operator/Makefile.docker
Line 111 in 83236e5
and
strimzi-kafka-operator/Makefile.docker
Lines 99 to 102 in 83236e5
[1] - https://dev.azure.com/cncf/strimzi/_build/results?buildId=183956&view=logs&j=3d72a2f4-aa53-5c85-1963-3e9abd2e3bb0&t=16fddc62-1491-5038-9cc9-c79f7f3fde48
Checklist