团队,我有输出,我想在它前面加上一个 url。
kubectl get nodes -l nodeGroup=gpu -o wide --no-headers -o json | jq '.items[] | .metadata.name, .metadata.labels."team.com/cordon-reason"' | awk '{print $1}' | paste - -
输出
"node1" "testing"
"node2" null
预期产出
"node1" "https://jira.test.com/testing"
"node2" "https://jira.test.com/null"