Skip to content

Commit d8a85b2

Browse files
authored
Chore: update k8s to 1.29 (#195)
chore: update k8s to 1.29 Signed-off-by: phantomnat <[email protected]>
1 parent 55f1433 commit d8a85b2

29 files changed

+397
-422
lines changed

.github/workflows/e2e.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ env:
1717
# Common versions
1818
GO_VERSION: '1.22'
1919
GOLANGCI_VERSION: 'v1.59'
20-
K3D_IMAGE_VERSION: '[\"v1.26\"]'
21-
K3D_IMAGE_VERSIONS: '[\"v1.26\"]'
20+
K3D_IMAGE_VERSION: '[\"v1.29\"]'
21+
K3D_IMAGE_VERSIONS: '[\"v1.29\"]'
2222

2323
jobs:
2424

.github/workflows/unit-test.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
# Common versions
1616
GO_VERSION: '1.22'
1717
GOLANGCI_VERSION: 'v1.59'
18-
KIND_VERSION: 'v0.7.0'
18+
KIND_VERSION: 'v0.23.0'
1919

2020
jobs:
2121

@@ -64,9 +64,9 @@ jobs:
6464
- name: install Kubebuilder
6565
uses: RyanSiu1995/[email protected]
6666
with:
67-
version: 3.1.0
67+
version: 3.15.1
6868
kubebuilderOnly: false
69-
kubernetesVersion: v1.28.0
69+
kubernetesVersion: v1.29.0
7070

7171
- name: Run Make test
7272
run: make test

api/condition/zz_generated.deepcopy.go

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha1/zz_generated.deepcopy.go

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/vela-workflow/README.md

+11-13
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ helm install --create-namespace -n vela-system workflow kubevela/vela-workflow -
3535
| `concurrentReconciles` | concurrentReconciles is the concurrent reconcile number of the controller | `4` |
3636
| `ignoreWorkflowWithoutControllerRequirement` | will determine whether to process the workflowrun without 'workflowrun.oam.dev/controller-version-require' annotation | `false` |
3737

38-
3938
### KubeVela workflow parameters
4039

41-
| Name | Description | Value |
42-
| -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
43-
| `workflow.enableSuspendOnFailure` | Enable the capability of suspend an failed workflow automatically | `false` |
44-
| `workflow.enablePatchStatusAtOnce` | Enable the capability of patch status at once | `false` |
45-
| `workflow.enableWatchEventListener` | Enable the capability of watch event listener for a faster reconcile, note that you need to install [kube-trigger](https://github.com/kubevela/kube-trigger) first to use this feature | `false` |
46-
| `workflow.backoff.maxTime.waitState` | The max backoff time of workflow in a wait condition | `60` |
47-
| `workflow.backoff.maxTime.failedState` | The max backoff time of workflow in a failed condition | `300` |
48-
| `workflow.step.errorRetryTimes` | The max retry times of a failed workflow step | `10` |
49-
| `workflow.groupByLabel` | The label used to group workflow record | `pipeline.oam.dev/name` |
50-
40+
| Name | Description | Value |
41+
| ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
42+
| `workflow.enableSuspendOnFailure` | Enable the capability of suspend an failed workflow automatically | `false` |
43+
| `workflow.enablePatchStatusAtOnce` | Enable the capability of patch status at once | `false` |
44+
| `workflow.enableWatchEventListener` | Enable the capability of watch event listener for a faster reconcile, note that you need to install [kube-trigger](https://github.com/kubevela/kube-trigger) first to use this feature | `false` |
45+
| `workflow.enableExternalPackageForDefaultCompiler` | Enable external package for default compiler | `true` |
46+
| `workflow.enableExternalPackageWatchForDefaultCompiler` | Enable external package watch for default compiler | `false` |
47+
| `workflow.backoff.maxTime.waitState` | The max backoff time of workflow in a wait condition | `60` |
48+
| `workflow.backoff.maxTime.failedState` | The max backoff time of workflow in a failed condition | `300` |
49+
| `workflow.step.errorRetryTimes` | The max retry times of a failed workflow step | `10` |
50+
| `workflow.groupByLabel` | The label used to group workflow record | `pipeline.oam.dev/name` |
5151

5252
### KubeVela workflow backup parameters
5353

@@ -61,7 +61,6 @@ helm install --create-namespace -n vela-system workflow kubevela/vela-workflow -
6161
| `backup.configSecretName` | The secret name of backup config | `backup-config` |
6262
| `backup.configSecretNamespace` | The secret name of backup config namespace | `vela-system` |
6363

64-
6564
### KubeVela Workflow controller parameters
6665

6766
| Name | Description | Value |
@@ -79,7 +78,6 @@ helm install --create-namespace -n vela-system workflow kubevela/vela-workflow -
7978
| `webhookService.port` | KubeVela webhook service port | `9443` |
8079
| `healthCheck.port` | KubeVela health check port | `9440` |
8180

82-
8381
### Common parameters
8482

8583
| Name | Description | Value |

charts/vela-workflow/crds/core.oam.dev_workflowruns.yaml

+64-55
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.9.0
7-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.15.0
87
name: workflowruns.core.oam.dev
98
spec:
109
group: core.oam.dev
@@ -32,14 +31,19 @@ spec:
3231
description: WorkflowRun is the Schema for the workflowRun API
3332
properties:
3433
apiVersion:
35-
description: 'APIVersion defines the versioned schema of this representation
36-
of an object. Servers should convert recognized schemas to the latest
37-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
34+
description: |-
35+
APIVersion defines the versioned schema of this representation of an object.
36+
Servers should convert recognized schemas to the latest internal value, and
37+
may reject unrecognized values.
38+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
3839
type: string
3940
kind:
40-
description: 'Kind is a string value representing the REST resource this
41-
object represents. Servers may infer this from the endpoint the client
42-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
41+
description: |-
42+
Kind is a string value representing the REST resource this object represents.
43+
Servers may infer this from the endpoint the client submits requests to.
44+
Cannot be updated.
45+
In CamelCase.
46+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
4347
type: string
4448
metadata:
4549
type: object
@@ -211,13 +215,15 @@ spec:
211215
description: A Condition that may apply to a resource.
212216
properties:
213217
lastTransitionTime:
214-
description: LastTransitionTime is the last time this condition
215-
transitioned from one status to another.
218+
description: |-
219+
LastTransitionTime is the last time this condition transitioned from one
220+
status to another.
216221
format: date-time
217222
type: string
218223
message:
219-
description: A Message containing details about this condition's
220-
last transition from one status to another, if any.
224+
description: |-
225+
A Message containing details about this condition's last transition from
226+
one status to another, if any.
221227
type: string
222228
reason:
223229
description: A Reason for this condition's last transition from
@@ -228,8 +234,9 @@ spec:
228234
False, or Unknown?
229235
type: string
230236
type:
231-
description: Type of this condition. At most one of each condition
232-
type may apply to a resource at any point in time.
237+
description: |-
238+
Type of this condition. At most one of each condition type may apply to
239+
a resource at any point in time.
233240
type: string
234241
required:
235242
- lastTransitionTime
@@ -239,64 +246,66 @@ spec:
239246
type: object
240247
type: array
241248
contextBackend:
242-
description: "ObjectReference contains enough information to let you
243-
inspect or modify the referred object. --- New uses of this type
244-
are discouraged because of difficulty describing its usage when
245-
embedded in APIs. 1. Ignored fields. It includes many fields which
246-
are not generally honored. For instance, ResourceVersion and FieldPath
247-
are both very rarely valid in actual usage. 2. Invalid usage help.
248-
\ It is impossible to add specific help for individual usage. In
249-
most embedded usages, there are particular restrictions like, \"must
250-
refer only to types A and B\" or \"UID not honored\" or \"name must
251-
be restricted\". Those cannot be well described when embedded. 3.
252-
Inconsistent validation. Because the usages are different, the
253-
validation rules are different by usage, which makes it hard for
254-
users to predict what will happen. 4. The fields are both imprecise
255-
and overly precise. Kind is not a precise mapping to a URL. This
256-
can produce ambiguity during interpretation and require a REST mapping.
257-
\ In most cases, the dependency is on the group,resource tuple and
258-
the version of the actual struct is irrelevant. 5. We cannot easily
259-
change it. Because this type is embedded in many locations, updates
260-
to this type will affect numerous schemas. Don't make new APIs
261-
embed an underspecified API type they do not control. \n Instead
262-
of using this type, create a locally provided and used type that
263-
is well-focused on your reference. For example, ServiceReferences
264-
for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533
265-
."
249+
description: |-
250+
ObjectReference contains enough information to let you inspect or modify the referred object.
251+
---
252+
New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
253+
1. Ignored fields. It includes many fields which are not generally honored. For instance, ResourceVersion and FieldPath are both very rarely valid in actual usage.
254+
2. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular
255+
restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted".
256+
Those cannot be well described when embedded.
257+
3. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen.
258+
4. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity
259+
during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple
260+
and the version of the actual struct is irrelevant.
261+
5. We cannot easily change it. Because this type is embedded in many locations, updates to this type
262+
will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control.
263+
264+
265+
Instead of using this type, create a locally provided and used type that is well-focused on your reference.
266+
For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .
266267
properties:
267268
apiVersion:
268269
description: API version of the referent.
269270
type: string
270271
fieldPath:
271-
description: 'If referring to a piece of an object instead of
272-
an entire object, this string should contain a valid JSON/Go
273-
field access statement, such as desiredState.manifest.containers[2].
274-
For example, if the object reference is to a container within
275-
a pod, this would take on a value like: "spec.containers{name}"
276-
(where "name" refers to the name of the container that triggered
277-
the event) or if no container name is specified "spec.containers[2]"
278-
(container with index 2 in this pod). This syntax is chosen
279-
only to have some well-defined way of referencing a part of
280-
an object. TODO: this design is not final and this field is
281-
subject to change in the future.'
272+
description: |-
273+
If referring to a piece of an object instead of an entire object, this string
274+
should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
275+
For example, if the object reference is to a container within a pod, this would take on a value like:
276+
"spec.containers{name}" (where "name" refers to the name of the container that triggered
277+
the event) or if no container name is specified "spec.containers[2]" (container with
278+
index 2 in this pod). This syntax is chosen only to have some well-defined way of
279+
referencing a part of an object.
280+
TODO: this design is not final and this field is subject to change in the future.
282281
type: string
283282
kind:
284-
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
283+
description: |-
284+
Kind of the referent.
285+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
285286
type: string
286287
name:
287-
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
288+
description: |-
289+
Name of the referent.
290+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
288291
type: string
289292
namespace:
290-
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
293+
description: |-
294+
Namespace of the referent.
295+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
291296
type: string
292297
resourceVersion:
293-
description: 'Specific resourceVersion to which this reference
294-
is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
298+
description: |-
299+
Specific resourceVersion to which this reference is made, if any.
300+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
295301
type: string
296302
uid:
297-
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
303+
description: |-
304+
UID of the referent.
305+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
298306
type: string
299307
type: object
308+
x-kubernetes-map-type: atomic
300309
endTime:
301310
format: date-time
302311
type: string

0 commit comments

Comments
 (0)