第 5 章 ConsoleNotification [console.openshift.io/v1]
- 描述
- ConsoleNotification 是配置 openshift web 控制台通知的扩展。兼容性级别 2:在主发行版本中至少为 9 个月或 3 个次版本(以更长的时间为准)。
- 类型
- 
						object
- 必填
- 
								spec
 
- 
								
5.1. 规格
| 属性 | 类型 | 描述 | 
|---|---|---|
| 
								 | 
								 | APIVersion 定义对象的这个表示法的版本化的 schema。服务器应该将识别的模式转换为最新的内部值,并可拒绝未识别的值。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | 
| 
								 | 
								 | kind 是一个字符串值,代表此对象所代表的 REST 资源。服务器可以从客户端向其提交请求的端点推断。无法更新。采用驼峰拼写法 (CamelCase)。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | 
| 
								 | 标准对象元数据。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | |
| 
								 | 
								 | ConsoleNotificationSpec 是所需的控制台通知配置。 | 
5.1.1. .spec
- 描述
- ConsoleNotificationSpec 是所需的控制台通知配置。
- 类型
- 
								object
- 必填
- 
										text
 
- 
										
| 属性 | 类型 | 描述 | 
|---|---|---|
| 
									 | 
									 | backgroundColor 是通知的背景颜色,作为 CSS 数据类型颜色。 | 
| 
									 | 
									 | color 是通知的文本颜色,作为 CSS 数据类型颜色。 | 
| 
									 | 
									 | link 是包含通知链接详细信息的对象。 | 
| 
									 | 
									 | 位置是控制台中通知的位置。有效值为:"BannerTop", "BannerBottom", "BannerTopBottom"。 | 
| 
									 | 
									 | text 是通知的可见文本。 | 
5.1.2. .spec.link
- 描述
- link 是包含通知链接详细信息的对象。
- 类型
- 
								object
- 必填
- 
										href
- 
										text
 
- 
										
| 属性 | 类型 | 描述 | 
|---|---|---|
| 
									 | 
									 | href 是链接的绝对安全 URL (必须使用 https) | 
| 
									 | 
									 | 文本是链接的显示文本 |