rest - OpenShift RestAPI 等效于 oc 标签
问题描述
OpenShift RestAPI 相当于oc tag some.docker.regiery some-image-tag:latest
什么?
从帮助页面:
Tag existing images into image streams
The tag command allows you to take an existing tag or image from an image stream, or a Docker image pull spec, and set
it as the most recent image for a tag in 1 or more other image streams. It is similar to the 'docker tag' command, but
it operates on image streams instead.
Pass the --insecure flag if your external registry does not have a valid HTTPS certificate, or is only served over HTTP.
Pass --scheduled to have the server regularly check the tag for updates and import the latest version (which can then
trigger builds and deployments). Note that --scheduled is only allowed for Docker images.
Usage:
oc tag [--source=SOURCETYPE] SOURCE DEST [DEST ...] [flags]
解决方案
回答我自己的问题以供将来参考:像在 cli 上一样运行命令,但添加--loglevel=8
. (即oc tag some.docker.regiery some-image-tag:latest --loglevel=8
)。
然后您可以准确地看到使用了哪些 API 调用以及使用了哪些参数,并且您可以复制它!:)
推荐阅读
- angular - 如何将数组存储在本地存储角度?
- postgresql - 如何将一个表行拆分为多个子表?
- python - 使用没有写入任何内容的 os.listdir 时如何跳过文件
- php - Yii2 - 将子数据保留在 uclead 表格输入中父相关下拉列表的选择选项中
- c - 删除 sll 的最后一个节点的缺失案例
- html - 突出显示表中的列和行 ::after 和 ::before 不起作用
- java - 数据源连接的 Spring Boot 启用日志,例如连接 URL、用户名、密码等
- java - 如何使用 JAVA Rest Assure 修复此错误
- angular - Passing data through angular components with highcharts
- node.js - 如何在使用 NodeJs 和 Mongoose 的 Bot Framework 中本地使用 MongoDB 和 directline-js 进行状态管理?