5.7.3. 複数の動的依存関係を連鎖させる


同じパラメーターステップ内で複数の 依存関係 を定義できます。各依存関係は独立して動作します。

この例では、再起動の確認ではいを選択すると理由フィールドが表示され、詳細オプションを有効にすると追加の技術フィールドが表示されます。

    dependencies:
      showAdvanced:
        allOf:
          - if:
              properties:
                showAdvanced:
                  const: true
            then:
              properties:
                maxSyncDelay:
                  type: number
                  title: Max sync delay (ms)
                  default: 500
      serviceRestart:
        allOf:
          - if:
              properties:
                serviceRestart:
                  const: 'Yes'
            then:
              properties:
                restartReason:
                  type: string
                  title: Reason for restart
                  description: Provide a reason for restarting the service.
                  default: Applying new configuration.
                  minLength: 10
                  errorMessage:
                    minLength: 'Provide a more detailed reason (at least 10 characters).'

依存関係 の各キーは、同じパラメーターステップ内のプロパティー名に対応しています。ユーザーがフィールド値を変更すると、対応する if/then 分岐のみが表示されます。

Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

Red Hat ドキュメントについて

Legal Notice

Theme

© 2026 Red Hat
トップに戻る