Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webhook api bug #878

Open
gtfaww opened this issue Sep 20, 2023 · 1 comment
Open

webhook api bug #878

gtfaww opened this issue Sep 20, 2023 · 1 comment
Labels
kind/bug Something isn't working

Comments

@gtfaww
Copy link

gtfaww commented Sep 20, 2023

通过velaUX实现k8s资源交付,调取触发器接口更新K8S资源镜像时,发现工作流正常完成,但K8S资源未更新image。
应用版本记录发现发布后properties下多了一个image字段,而properties.objects下的K8S资源中的image未更新。
kubevela版本是1.9.2.

触发器接口模板:
POST http://xxxxx:30000/api/v1/webhook/lvswhjxwq0omhzkv
Content-Type: application/json

{
"action": "execute",
"upgrade": {
"demo-nginx": {
"image": "demo-nginx:1.2"
}
},
"codeInfo": {
"commit": "",
"branch": "",
"user": ""
}
}

正常版本配置:
spec:
components:

name: fp-gateway-dev
properties:
objects:
apiVersion: apps/v1
kind: Deployment
......
image: demo-nginx:1.0
......
触发器调取后的配置
spec:
components:

name: fp-gateway-dev
properties:
image: demo-nginx:1.2
objects:
apiVersion: apps/v1
kind: Deployment
......
image: demo-nginx:1.0
......

@gtfaww gtfaww added the kind/bug Something isn't working label Sep 20, 2023
@chivalryq
Copy link
Member

Yes for now the trigger will update the properties with literally image field. So if the component is k8s-objects type. It is not supported. Try webservice for trigger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants