github.com/argoproj/argo-cd@v1.8.7/resource_customizations/extensions/Deployment/actions/restart/action.lua (about)

     1  local os = require("os")
     2  if obj.spec.template.metadata == nil then
     3      obj.spec.template.metadata = {}
     4  end
     5  if obj.spec.template.metadata.annotations == nil then
     6      obj.spec.template.metadata.annotations = {}
     7  end
     8  obj.spec.template.metadata.annotations["kubectl.kubernetes.io/restartedAt"] = os.date("!%Y-%m-%dT%XZ")
     9  return obj