【发布时间】:2020-08-05 22:48:23
【问题描述】:
自去年以来,我有很多秘密,但不确定应用程序正在使用哪些秘密。由于我不想意外删除正在使用的机密,我想使用 oc.exe CLI 并找到所有未使用的机密。 我在某个地方找到了下面的 cmd,但是它给我一个错误:
for s in $(oc get secret --no-headers | awk '{print $1}'); do echo $s; (oc get all -o yaml; oc describe sa )|grep $s |wc -l; done
错误:此时 s 是意外的。
【问题讨论】:
标签: openshift-client-tools openshift-3 openshift-enterprise