6.3. Apicurio Registry 環境変数の管理
Apicurio Registry Operator は最も一般的な Apicurio Registry 設定を管理しますが、まだサポートされていないオプションがいくつかあります。ApicurioRegistry
CR で高レベル設定オプションを使用できない場合は、環境変数を使用して調整できます。これらを更新するには、spec.configuration.env
フィールドの ApicurioRegistry
CR に環境変数を直接設定します。続いてこれらは、Apicurio Registry の Deployment
リソースに転送されます。
手順
Apicurio Registry 環境変数は、OpenShift Web コンソールまたは CLI を使用して管理できます。
- OpenShift Web コンソール
- Installed Operators タブを選択してから、Red Hat Integration - Service Registry Operator を選択します。
-
ApicurioRegistry タブで、Apicurio Registry デプロイメントの
ApicurioRegistry
CR をクリックします。 YAML タブをクリックし、必要に応じて
spec.configuration.env
セクションを編集します。次の例は、デフォルトのグローバルコンテンツルールを設定する方法を示しています。apiVersion: registry.apicur.io/v1 kind: ApicurioRegistry metadata: name: example-apicurioregistry spec: configuration: # ... env: - name: REGISTRY_RULES_GLOBAL_VALIDITY value: FULL # One of: NONE, SYNTAX_ONLY, FULL - name: REGISTRY_RULES_GLOBAL_COMPATIBILITY value: FULL # One of: NONE, BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE
apiVersion: registry.apicur.io/v1 kind: ApicurioRegistry metadata: name: example-apicurioregistry spec: configuration: # ... env: - name: REGISTRY_RULES_GLOBAL_VALIDITY value: FULL # One of: NONE, SYNTAX_ONLY, FULL - name: REGISTRY_RULES_GLOBAL_COMPATIBILITY value: FULL # One of: NONE, BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE
Copy to Clipboard Copied!
- OpenShift CLI
- Apicurio Registry がインストールされているプロジェクトを選択します。
-
oc get apicurioregistry
を実行して、ApicurioRegistry
CR のリストを取得します -
設定する Apicurio Registry インスタンスを表す CR で
oc edit apicurioregistry
を実行します。 spec.configuration.env
セクションで、環境変数を追加または変更します。Apicurio Registry Operator は、
spec.configuration.env
フィールドですでに明示的に指定されている環境変数を設定しようとする場合があります。環境変数設定に競合する値がある場合、Apicurio Registry Operator によって設定された値が優先されます。この競合を回避するには、機能の高レベル設定を使用するか、明示的に指定された環境変数のみを使用します。以下は、競合する設定の例です。
apiVersion: registry.apicur.io/v1 kind: ApicurioRegistry metadata: name: example-apicurioregistry spec: configuration: # ... ui: readOnly: true env: - name: REGISTRY_UI_FEATURES_READONLY value: false
apiVersion: registry.apicur.io/v1 kind: ApicurioRegistry metadata: name: example-apicurioregistry spec: configuration: # ... ui: readOnly: true env: - name: REGISTRY_UI_FEATURES_READONLY value: false
Copy to Clipboard Copied! この設定により、Apicurio Registry Web コンソールが読み取り専用モードになります。