7.12. 使用环境变量添加标签和注解
为 Data Grid Operator 设置环境变量来添加标签和注解,以自动传播到所有 Data Grid pod 和服务。
流程
使用 spec.config.env 字段在 Data Grid Operator 订阅中添加标签和注解,使用以下方法之一:
使用
oc edit subscription命令。oc edit subscription datagrid -n openshift-operators
oc edit subscription datagrid -n openshift-operatorsCopy to Clipboard Copied! Toggle word wrap Toggle overflow 使用 Red Hat OpenShift 控制台。
- 导航到 Operators > Installed Operators > Data Grid Operator。
- 在 Actions 菜单中,选择 Edit Subscription。
使用环境变量的标签和注解