Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Fix icons #669

Merged
merged 3 commits into from Feb 13, 2019
Merged

Fix icons #669

merged 3 commits into from Feb 13, 2019

Conversation

zhongyi-zhang
Copy link
Contributor

Fix #666.

@zhongyi-zhang
Copy link
Contributor Author

Can anyone help verify the fix? @arapulido @alberttwong could you? Not quite sure if it works for you.

@alberttwong
Copy link

@zhongyi-zhang
Copy link
Contributor Author

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.

@zhongyi-zhang
Copy link
Contributor Author

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.

norshtein
norshtein previously approved these changes Jan 31, 2019
@alberttwong
Copy link

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 -

@zhongyi-zhang
Copy link
Contributor Author

@alberttwong find this line image: microsoft/azure-service-broker:v1.0.1 in the template you used, change to zzy940502/azure-service-broker:canary.

@arapulido
Copy link

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.

@zhongyi-zhang
Copy link
Contributor Author

@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 :()

@arapulido
Copy link

@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 tag in the first line. If you remove that one, it shows correctly in the browser

@zhongyi-zhang
Copy link
Contributor Author

Just found that appending ?sanitize=true can do the trick. Also updated the test image. Please have another try,

@arapulido
Copy link

@zhongyi-zhang
Copy link
Contributor Author

@arapulido thanks for the feedback! Fixed now. @norshtein, this PR can be merged after getting an approval.

@norshtein norshtein merged commit 00ee938 into Azure:master Feb 13, 2019
@zhongyi-zhang zhongyi-zhang added this to the v1.5.0 milestone Feb 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants