如何为 openshift 模板使用 FontAwesome 图标

how to use a FontAwesome icon for openshift template

dev_guide所述,我们可以为openshift模板设置图标。

iconClass 的描述说:

An icon to be displayed with your template in the web console. Choose from our existing logo icons when possible. You can also use icons from FontAwesome and PatternFly. Alternatively, provide icons through CSS customizations that can be added to an OpenShift Container Platform cluster that uses your template. You must specify an icon class that exists, or it will prevent falling back to the generic icon

当我使用像 icon-laravel 这样的默认 openshift 徽标时,它可以工作,但我不知道如何使用 FontAwesome 徽标。我尝试使用 ghostfa fa-ghostfas fa-ghost,如前所述 here,但没有一个有效。

如何将非默认徽标(例如 FontAwesome)用于 openshift 模板?


P.S:我使用 openshift origin v3.10 和 google-chrome v69.0 如果它很重要

Font awesome 版本 4.7 在 openshift-console 3.10 (and newer), so you would be limited to these 中可用(fa fa-snapchat-ghost 是我在那里找到的唯一 "ghost")。