Local testing - Second Pair of Eyes #223
-
@akashsinghal What is the best way to test locally, before I submit a PR? I have this fork. I updated the chart templates to accept the I built ratify with this updated Dockerfile I installed with this helm command:
Following the verification outlined here, I can see the cm looks correct:
My auth provider code is here. I see this error in the ratify pod logs:
So, even though I used the newly minted image from the build process, ratify can't seem to find my auth provider. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@jimmyraywv The auth providers are registered in their respective |
Beta Was this translation helpful? Give feedback.
@jimmyraywv The auth providers are registered in their respective
init()
functions and theinit()
function is called when another package imports the current provider. In our cases, the azure and aws provider packages aren't explicitly imported elsewhere so we need to force an import somewhere. I suggest adding a blank import to the oras.go file like we did for the azure auth provider here: https://github.com/jimmyraywv/ratify/blob/2dfe7c9be53cef7dd4ec602d0a8dd658572001ce/pkg/referrerstore/oras/oras.go#L43. This should resolve the issue.