jetstack / jetstack/jetstack-secure
Check the presence of the images after releasing
- 主要語言
- Go
- 星號
- 262
- 分支
- 27
- 平均合併
- 2 天 7 小時
- 30 天內合併 PR
- 19
描述
**Unrelated:** I think we should also check the presence of the images after releasing. Just to double check. Do you think this check should be part as the release process @wallrj?
---
To check that the automation went through, check that the 3 public images are available:
```bash
docker run -it quay.io/jetstack/preflight:v0.1.49 version
docker run -it quay.io/jetstack/venafi-agent:v0.1.49 version
docker run -it registry.venafi.cloud/venafi-agent/venafi-agent:v0.1.49 version
```
Then, you will need to use venctl to check the two private registries:
1. ```
curl -sSfL https://dl.venafi.cloud/venctl/latest/installer.sh | bash
```
2. Go to https://ven-tlspk.venafi.cloud/platform-settings/user-preferences?key=api-keys. Log in using the username `admin0@tlspk.qa.venafi.io` and the [password here](https://venafi.atlassian.net/wiki/spaces/CT/pages/2115404149/Production+Accounts#Users)). Copy the API key for the next step (click "Generate" if the API key doesn't already exist).
3. Set the APIKEY env variable:
```
APIKEY=...
```
4. Docker login to private-registry.venafi.cloud:
```bash
venctl iam service-account registry create --name "$USER Temp" \
--vcp-region US \
--output dockerconfig \
--output-file dockerconfig \
--api-key $APIKEY
docker login private-registry.venafi.cloud \
| --username $(cat dockerconfig | jq '.. | select(.username?).username' -r) \
| --password $(cat dockerconfig | jq '.. | select(.username?).auth | @base64d' -r | cut -d: -f2) |
```
5. Go to https://ven-tlspk-eu.venafi.cloud/platform-settings/user-preferences?key=api-keys. Log in using the username `admin0@tlspk.qa.venafi.io` and the [password here](https://venafi.atlassian.net/wiki/spaces/CT/pages/2115404149/Production+Accounts#Users)). Click "Generate" and copy the API key for the next step.
6. Set the APIKEY env variable:
```
APIKEY=...
```
8. Docker login to private-registry.venafi.eu:
```bash
venctl iam service-account registry create --name "$USER Temp" \
--vcp-region EU \
--output dockerconfig \
--output-file dockerconfig \
--api-key $APIKEY
docker login private-registry.venafi.eu \
| --username $(cat dockerconfig | jq '.. | select(.username?).username' -r) \
| --password $(cat dockerconfig | jq '.. | select(.username?).auth | @base64d' -r | cut -d: -f2) |
```
And now:
```bash
docker run -it private-registry.venafi.cloud/venafi-agent/venafi-agent:v0.1.49 version
docker run -it private-registry.venafi.eu/venafi-agent/venafi-agent:v0.1.49 version
```
_Originally posted by @maelvls in https://github.com/jetstack/jetstack-secure/issues/548#issuecomment-2222998317_
貢獻指南
研究方向
該 issue 列出了三個公開 Docker 映像檔和兩個私有 registry,需要在 release 後進行驗證。首先定位發布這些映像檔的 release 流程,然後確定可以在哪裡加入檢查;當列出的每個映像檔都能以該 release 版本執行並成功回報其版本時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- docker
- 領域
- devops, release
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 32/100