执行由 Engineering Lifecycle Management 操作符支持的重命名工具

管理员和支持团队在服务器运行时, 于混合云容器中的 Engineering Lifecycle Management 中运行repotools。 您可以使用命令来运行 repotool。

以下是运行 repotool 命令的示例 ELMOperation YAML 文件:

apiVersion: elm.ibm.com/v1  
kind: ELMOperation  
metadata:  
  name: elmoperation-sample  
  namespace: repotool-test  
spec:  
  allApplications: false  
  operationType: executeRepotoolCommand  
  repotoolCommand: backupJFSIndexes 
  repositoryURL=https://hostname.example.com:9443/jts toFile=opt/temp/JFSIndexesBackup.zip adminUserId=elm-auth-secret::SCIM_PROVIDER_USERID adminPassword=elm-auth-secret::SCIM_PROVIDER_PASSWORD  
  selectedApplications:  
    ldx: false  
    lqe: false  
    dcc: false  
    jts: true  
    rb:  false  
    ccm: false  
    eni: false  
    rm:  false  
    gc:  false  
    qm:  false 
    jas: false 

以下是为通过 ELMOperation API运行repotool命令而实施的限制性规则

allApplications
该字段需设置为false,因为不支持在所有应用程序上同时或并行执行特定repotool命令。
selectedApplications
该字段只需将一个应用程序设置为true ,因为不建议同时对多个应用程序运行repotool命令。 此外,应用程序设置为 true时必须支持执行repotool命令。
注意: JAS、LQE、LDX、RB应用程序不支持执行repotool。
operationType
此字段用于创建ELMOperation实例以运行reportool命令。 它需要被设置为 executeRepotoolCommand
repotoolCommand
此字段用于输入待执行的repotool命令。 传统上,命令是通过使用 repotool ‘appname’.sh 文件来执行的:
./repotools-jts.sh -backupJFSIndexes repositoryURL=https://hostname.example.com:9443/jts toFile=opt/temp/JFSIndexesBackup.zip adminUserId=ADMIN adminPassword=ADMIN
然而,使用ELMOperation yaml时,您需要按以下方式输入repotool命令及其参数:
‘backupJFSIndexes repositoryURL=https://hostname.example.com:9443/jts toFile=opt/temp/JFSIndexesBackup.zip’
例如,
backupJFSIndexes repositoryURL=https://hostname.example.com:9443/jts toFile=opt/temp/JFSIndexesBackup.zip adminUserId=elm-auth-secret::SCIM_PROVIDER_USERID adminPassword=elm-auth-secret::SCIM_PROVIDER_PASSWORD’
有关更多信息 请参阅ELMOperation,执行Repotool命令
注:
  • repotool 命令的默认位置 ‘teamserver.properties’ 参数为 ‘/elm/server/conf/jts/teamserver.properties’
  • 操作员为任何受支持的命令确定执行模式(在线或离线)。
  • 对于需要任何带输入文件路径参数的repotool命令,您需要将参数复制到指定位置 ‘/elm/server/conf’ 并提供该参数的路径。 有关更多信息,请参阅存储库工具命令行参考