【问题标题】:How to find the creation-time of a User in OpenShift?如何在 OpenShift 中找到用户的创建时间?
【发布时间】:2020-04-17 08:40:10
【问题描述】:

任何人都可以就如何在 OpenShift 上找出用户创建时间的详细信息给我建议? 我尝试了这些命令,但只得到了一般信息。需要了解更多细节。

$ oc describe test_user
NAME:        test_user
Created:     3 weeks ago
Labels:      <none>
Annotations: <none>
Identities:  htpasswd:test_user

【问题讨论】:

  • oc get user test_user -o yaml 是否提供更具体的时间戳?
  • 是的,用户创建的时间戳在 yaml 输出中描述。谢谢!

标签: openshift openshift-origin


【解决方案1】:

creationTimestamp 可以在User API Documentation 中找到

$ oc get user <user> -o yaml
apiVersion: user.openshift.io/v1
fullName: "<user>"
kind: User
metadata:
  creationTimestamp: "2019-02-13T19:40:54Z"

【讨论】:

  • 谢谢。这确实回答了我的问题。
猜你喜欢
  • 2016-07-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-02-01
  • 1970-01-01
  • 2018-04-27
相关资源
最近更新 更多