为特定的Cloud Run修订版本添加标签

huangapple go评论65阅读模式
英文:

gcloud add tag to specific Cloud Run revision

问题

I'm wondering how to add a tag to a specific, already existing Cloud Run revision which already has a tag.

For example:

  1. I have a running revision tagged with the word "green".
  2. I have another running revision with no tag, that is the latest revision.
  3. I switch the tag of the "green" build to "blue".

Is the flow above possible with the gcloud run services update command? Or some other command? It seems like gcloud run services update only affects the latest revision.

英文:

I'm wondering how to add a tag to a specific, already existing Cloud Run revision which already has a tag.

For example:

  1. I have a running revision tagged with the word "green".
  2. I have another running revision with no tag, that is the latest revision.
  3. I switch the tag of the "green" build to "blue".

Is the flow above possible with the gcloud run services update command? Or some other command? It seems like gcloud run services update only affects the latest revision.

答案1

得分: 1

gcloud run services update-traffic 命令有用于更新流量标签的标志。

英文:

gcloud run services update-traffic has flags for updating traffic tags.

huangapple
  • 本文由 发表于 2023年6月29日 05:08:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/76576721.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定