6.8. カスタム通知バナーの作成
ConsoleNotification カスタムリソースを作成すると、Web コンソールの各ページの上部または下部にバナーを表示できます。
前提条件
- 管理者権限を持っている。
手順
-
Administration
Custom Resource Definitions から、ConsoleNotification をクリックします。 - Instances タブを選択します。
Create Console Notification をクリックし、ファイルを編集します。
apiVersion: console.openshift.io/v1 kind: ConsoleNotification metadata: name: example spec: text: This is an example notification message with an optional link. location: BannerTop link: href: 'https://www.example.com' text: Optional link text color: '#fff' backgroundColor: '#0088ce'locationフィールドには、BannerTop、BannerBottom、またはBannerTopBottomを受け入れます。- Create をクリックして変更を適用します。