Skip to content

Commit 5c565c8

Browse files
Chore: Update the kubevela ref to main and update the cue template role
Signed-off-by: Chaitanya Reddy Onteddu <co@guidewire.com>
1 parent 73d2310 commit 5c565c8

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/oam-dev/vela-go-definitions
33
go 1.23.8
44

55
require (
6-
github.com/oam-dev/kubevela v1.10.5-0.20260318160037-21640b55cdb7
6+
github.com/oam-dev/kubevela v1.11.0-alpha.3.0.20260504011026-c81b14130235
77
github.com/onsi/ginkgo/v2 v2.23.3
88
github.com/onsi/gomega v1.36.2
99
github.com/spf13/cobra v1.9.1
@@ -56,8 +56,8 @@ require (
5656
github.com/josharian/intern v1.0.0 // indirect
5757
github.com/json-iterator/go v1.1.12 // indirect
5858
github.com/klauspost/compress v1.17.10 // indirect
59-
github.com/kubevela/pkg v1.9.3-0.20251028181209-ef6824214171 // indirect
60-
github.com/kubevela/workflow v0.6.3-0.20251125110424-924e73add777 // indirect
59+
github.com/kubevela/pkg v1.10.0 // indirect
60+
github.com/kubevela/workflow v0.6.3 // indirect
6161
github.com/kylelemons/godebug v1.1.0 // indirect
6262
github.com/mailru/easyjson v0.7.7 // indirect
6363
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
116116
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
117117
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
118118
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
119-
github.com/kubevela/pkg v1.9.3-0.20251028181209-ef6824214171 h1:Ts3UWI0GNxuGtLlIVy/VHtkzKqSM8JC7seuJs58OzjI=
120-
github.com/kubevela/pkg v1.9.3-0.20251028181209-ef6824214171/go.mod h1:EmM4VIyU7KxDmPBq9hG4GpSZbGwiM76/W/8paLBk8wY=
121-
github.com/kubevela/workflow v0.6.3-0.20251125110424-924e73add777 h1:WM97lR7pW+ZMdlOxaEq/dhJfKTh65EXvsYq8pYsGnFo=
122-
github.com/kubevela/workflow v0.6.3-0.20251125110424-924e73add777/go.mod h1:sBIs7uzPGZgJDMdWpFAYhMFW6mPaxIPd1jW6VWB5QRw=
119+
github.com/kubevela/pkg v1.10.0 h1:opwBitEK+Un1StWhz+iq+bWjZDge+Va65fh6BVtmjUc=
120+
github.com/kubevela/pkg v1.10.0/go.mod h1:EmM4VIyU7KxDmPBq9hG4GpSZbGwiM76/W/8paLBk8wY=
121+
github.com/kubevela/workflow v0.6.3 h1:Kd3sCL/MVuP+MzKkaMWkFAl3Ac1GXAiDGKQ044K4ya0=
122+
github.com/kubevela/workflow v0.6.3/go.mod h1:O0Re7zFM2gUUZUwuJgcQ0z72tJByiFxltsEYzBysH1o=
123123
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
124124
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
125125
github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw=
@@ -139,8 +139,8 @@ github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J
139139
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
140140
github.com/oam-dev/cluster-gateway v1.9.2-0.20250629203450-2b04dd452b7a h1:DRcSDrLv1en8j5ESR+LR0feGLuyT9M15HJgiMn3sFZs=
141141
github.com/oam-dev/cluster-gateway v1.9.2-0.20250629203450-2b04dd452b7a/go.mod h1:ZIYRoiy4He22db8XiWTAh7QecIt5QWiQNacCZg1zbbY=
142-
github.com/oam-dev/kubevela v1.10.5-0.20260318160037-21640b55cdb7 h1:5Wi6t1g4V72uktrJ1lYJ/y2/vKAlB0CVAHql6dklbkg=
143-
github.com/oam-dev/kubevela v1.10.5-0.20260318160037-21640b55cdb7/go.mod h1:SqszKd2FCq6apGstniA11UkGR0khUhCfNERDI5TdjY4=
142+
github.com/oam-dev/kubevela v1.11.0-alpha.3.0.20260504011026-c81b14130235 h1:VJQgZ6+//gsF6/LBn4xi60VC7oAW3W3vCy/60gBTnY4=
143+
github.com/oam-dev/kubevela v1.11.0-alpha.3.0.20260504011026-c81b14130235/go.mod h1:2Q25zOCXXUN3AZx2/4op9oqpS9XCD2I4DltlHTCdKuo=
144144
github.com/oam-dev/terraform-controller v0.8.1-0.20250707044258-c0557127de25 h1:J5byd7UtaHZWDMcFA1VoMos+kbEpe3LcitWVmpcJmdI=
145145
github.com/oam-dev/terraform-controller v0.8.1-0.20250707044258-c0557127de25/go.mod h1:+QfZ/EBzdrGZcxGIt/I9OTDwq4kH/+aCD6Mh0yrrGr8=
146146
github.com/onsi/ginkgo/v2 v2.23.3 h1:edHxnszytJ4lD9D5Jjc4tiDkPBZ3siDeJJkUZJJVkp0=

vela-templates/definitions/component/webservice.cue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,43 +240,43 @@ template: {
240240
if context["config"] != _|_ {
241241
env: context.config
242242
}
243-
if parameter["cpu"] != _|_ && !(parameter.limit.cpu != _|_) {
243+
if parameter["cpu"] != _|_ && parameter.limit.cpu != _|_ {
244244
resources: {
245245
requests: {
246246
cpu: parameter.cpu
247247
}
248248
limits: {
249-
cpu: parameter.cpu
249+
cpu: parameter.limit.cpu
250250
}
251251
}
252252
}
253-
if parameter["cpu"] != _|_ && parameter.limit.cpu != _|_ {
253+
if parameter["cpu"] != _|_ && parameter.limit.cpu == _|_ {
254254
resources: {
255255
requests: {
256256
cpu: parameter.cpu
257257
}
258258
limits: {
259-
cpu: parameter.limit.cpu
259+
cpu: parameter.cpu
260260
}
261261
}
262262
}
263-
if parameter["memory"] != _|_ && !(parameter.limit.memory != _|_) {
263+
if parameter["memory"] != _|_ && parameter.limit.memory != _|_ {
264264
resources: {
265265
requests: {
266266
memory: parameter.memory
267267
}
268268
limits: {
269-
memory: parameter.memory
269+
memory: parameter.limit.memory
270270
}
271271
}
272272
}
273-
if parameter["memory"] != _|_ && parameter.limit.memory != _|_ {
273+
if parameter["memory"] != _|_ && parameter.limit.memory == _|_ {
274274
resources: {
275275
requests: {
276276
memory: parameter.memory
277277
}
278278
limits: {
279-
memory: parameter.limit.memory
279+
memory: parameter.memory
280280
}
281281
}
282282
}

0 commit comments

Comments
 (0)