Golang模板解析错误OPENSHIFT GOLANG TEMPLATE QUERY引发错误:if]中意外的未关闭动作>> [

问题描述 投票:0回答:1
请找到以下我用来从openshift容器中获取正在运行的pod的脚本

oc get pods -o template --template {{range.items}}{{if eq .status.phase "Running"}}{{.metadata.name}}{{.status.phase}}{{end}}{{end}}

Script ran and error shown in the below image

enter image description here

[请找到以下我用来从openshift容器中获取正在运行的pod的脚本oc get pods -o template --template {{range.items}} {{如果eq .status.phase“ Running”}}} {{ .metadata.name}} {...

go openshift command-prompt go-templates openshift-3
1个回答
0
投票
您稍后必须使用大写字母您无法访问小写字母的字段。
© www.soinside.com 2019 - 2024. All rights reserved.