Fleetバンドルの差分
リソースの状態からバンドルの差分を表示します。
このコマンドは、変更された`Bundle`または`BundleDeployment`リソースから差分パッチを抽出して表示します。差分は、望ましい状態(GitまたはHelmから)とクラスター内の実際の状態との違いを示します。
`BundleDeployment`の場合、コマンドは`ModifiedStatus`フィールドからのパッチ情報を表示します。このフィールドには、デプロイされたリソースで何が変更されたかを示すJSONパッチが含まれています。
`Bundle`の場合、コマンドはターゲットクラスター全体のすべての関連する`BundleDeployment`から差分情報を集約します。
デフォルトでは、コマンドはすべてのネームスペースで`BundleDeployment`を検索します。 特定のネームスペースに検索を制限するには、`-n`フラグを使用してください。名前で`BundleDeployment`をクエリする際には、ネームスペースフラグが必要です。
fleet bundlediff [flags]
オプション
-b, --bundle string Name of the Bundle to show diffs for all its BundleDeployments
--bundle-deployment string Name of the BundleDeployment to show diffs for
--fleet-yaml Output in fleet.yaml format (comparePatches)
--json Output in JSON format
-h, --help help for bundlediff
-n, --namespace string Namespace to restrict the search to
--zap-devel Development mode defaults (encoder=consoleEncoder, logLevel=Debug, stackTraceLevel=Warn).
Production mode defaults (encoder=jsonEncoder, logLevel=Info, stackTraceLevel=Error). (default true)
--zap-encoder encoder Zap log encoding (one of 'json' or 'console')
--zap-log-level level Zap level that controls logging verbosity. Can be 'debug', 'info',
'error', or any integer value greater than 0 for custom debug levels.
--zap-stacktrace-level level Zap level at and above which stack traces are captured
(one of 'info', 'error', or 'panic')
--zap-time-encoding Zap time encoding (one of 'epoch', 'millis', 'nano',
'iso8601', 'rfc3339', or 'rfc3339nano'). Defaults to 'epoch'.
例
# Show diffs for all Bundles across all namespaces (grouped by Bundle)
fleet bundlediff
# Show all BundleDeployments for a specific Bundle
fleet bundlediff --bundle my-bundle
# Show a specific BundleDeployment in a cluster namespace
fleet bundlediff --bundle-deployment my-bundle-deployment -n cluster-fleet-local-local-abc123
# Output in JSON format
fleet bundlediff --json
# Output as a fleet.yaml diff snippet for a specific BundleDeployment
# This generates a diff: section you can add to your fleet.yaml in Git
fleet bundlediff --fleet-yaml --bundle-deployment my-bundle-deployment -n cluster-fleet-local-local-abc123
# Show diffs only in a specific namespace
fleet bundlediff -n cluster-fleet-local-local-abc123
関連項目
-
SUSE® Rancher Prime Continuous Delivery - SUSE® Rancher Prime Continuous Delivery操作を管理する