get
Usage
rapd clusterclass
命令用來讀取clusterclass資源。
rapd clusterclass get (Name...) [flags]
Flags
這些是 rapd clusterclass get
命令中可用的旗標:
Flag Name | Short Name | Default Value | Required | Description |
---|---|---|---|---|
--output | -o | No | 輸出資源完整spec成可讀的文件,如: yaml, jsonl格式。 | |
--label | -l | No | 讀取label匹配的資源 | |
--field | No | 讀取field匹配的資源 | ||
--all-namespaces | -A | No | 查詢所有環境的資源 | |
--ignore-not-found | No | 當資源不存在會忽略錯誤(return exit code 0) |
Examples
這些是一些 rapd clusterclass get
命令的使用範例:
- 讀取指定名稱的Clusterclass:
rapd clusterclass get gcp
- 輸出完整Spec:
rapd clusterclass get gcp -o yaml
Output
成功執行命令後,會返回類似以下的輸出:
NAMESPACE NAMErapd-system gcprapd-system aws