Closed zhongyi-zhang closed 5 years ago
Can anyone help verify the fix? @arapulido @alberttwong could you? Not quite sure if it works for you.
Oh, sorry I shall pulish a test image for your try. That template you used installs from a certain published image. (It is microsoft/azure-service-broker:v1.0.1 as you can see.) Now it is too late in my time zone. I'll try to publish the test image tomorrow. And will be back here if done.
OSBA image publish pipeline can only be kicked after merging the PR into master. So I am using a personal repo for the test image. Please have a try if you don't mind: zzy940502/azure-service-broker:canary.
So what do I put for the deployment command in OCP?
oc process -f https://raw.githubusercontent.com/Azure/open-service-broker-azure/master/contrib/openshift/osba-os-template.yaml \
-p ENVIRONMENT=AzurePublicCloud \
-p AZURE_SUBSCRIPTION_ID=x-a04c-4f13-8180-d \
-p AZURE_TENANT_ID=x-90fa-482b-b2a7-7de884fd2ff7 \
-p AZURE_CLIENT_ID=d61ffa2e-x-4feb-8353-x \
-p AZURE_CLIENT_SECRET=5g7CihT/x+8= \
| oc create -f -
@alberttwong find this line image: microsoft/azure-service-broker:v1.0.1
in the template you used, change to zzy940502/azure-service-broker:canary
.
With the testing image, I get the new URLs for the images correctly, but those don't render fine. For cosmosdb.svg icon, it points to this image. But that one doesn't render correctly in Firefox or Chrome.
@arapulido yeah, for direct browser opening, the xml declaration makes it only show the raw. But Github still displays it correctly: https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/media/index/cosmosdb.svg. Maybe it requires extra renderer? If so, can it be fixed in the UI provider side? Or, we can just convert the svg to png and keep them in this repo. (This is not ideal IMO :()
@zhongyi-zhang that's not the reason. As you can see with this other svg the image renders correctly when opening with a browser. The problem with your images is the
Just found that appending ?sanitize=true
can do the trick. Also updated the test image. Please have another try,
@zhongyi-zhang they all work well except the mysql ones, that is missing (404): https://raw.githubusercontent.com/MicrosoftDocs/azure-docs/9eb1f875f3823af85e41ebc97e31c5b7202bf419/articles/media/index/MySQL.svg?sanitize=true
@arapulido thanks for the feedback! Fixed now. @norshtein, this PR can be merged after getting an approval.
Fix #666.