7.2. 取消注册预安装的模板
自助服务技术预览已预先加载示例模板,以帮助您开始。要从 Templates 页面中删除预加载的模板,您必须为自助服务安装编辑 Helm Chart。
- 在浏览器中,前往 Ansible Self-service 的 OpenShift 项目。
- 选择 Topology 视图。
- 为您的部署打开 Helm Chart。
找到 Helm Chart 的
catalog.locations
部分:Copy to Clipboard Copied! Toggle word wrap Toggle overflow locations: - type: file target: /software-templates/seed.yaml rules: - allow: [Template]
locations: - type: file target: /software-templates/seed.yaml rules: - allow: [Template]
通过添加
#
字符注释掉catalog.locations
的类型
、target
和rules
键:Copy to Clipboard Copied! Toggle word wrap Toggle overflow locations: # - type: file # target: /software-templates/seed.yaml # rules: # - allow: [Template]
locations: # - type: file # target: /software-templates/seed.yaml # rules: # - allow: [Template]
- 单击 Create 以重新启动部署。
验证
在浏览器中,导航到您的自助服务技术预览实例的 Templates 视图。验证模板已被删除。