Skip to content

Commit 3f0755b

Browse files
author
Jesse Meng
committed
update k8s api version to 1.30.2
1 parent fef1b66 commit 3f0755b

File tree

46 files changed

+4140
-2406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+4140
-2406
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
# IDE
1515
.idea
16+
.kiro/
1617

1718
# Dependency directories (remove the comment below to include it)
1819
vendor/

UPGRADE-NOTES.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Kubernetes v1.30.2 Upgrade Notes
2+
3+
## Breaking Changes
4+
5+
1. **Code Generation Tools**: The `generate-groups.sh` script has been removed in the newer versions of code-generator. The new approach is to use the `kube_codegen.sh` script or the individual code generator tools directly.
6+
7+
2. **Controller-Gen Version**: Updated controller-gen from v0.7.0 to v0.18.0 for CRD generation.
8+
9+
## Dependency Changes
10+
11+
The following dependencies were updated to v0.30.2:
12+
13+
- k8s.io/api: v0.30.2
14+
- k8s.io/apimachinery: v0.30.2 (downgraded from v0.32.2)
15+
- k8s.io/client-go: v0.30.2 (downgraded from v0.32.2)
16+
- k8s.io/code-generator: v0.30.2 (downgraded from v0.32.0)
17+
- k8s.io/metrics: v0.30.2 (downgraded from v0.30.14)
18+
- k8s.io/kube-openapi: v0.0.0-20240228011516-70dd3763d340
19+
20+
## Required Go Version
21+
22+
Go 1.22 or higher is required for Kubernetes v1.30.2. The project is currently using Go 1.24.0, which is compatible.
23+
24+
## Code Generation
25+
26+
The code generation scripts have been updated to work with the new versions of the code-generator tools. The following code generation steps were performed:
27+
28+
1. Regenerated clientsets
29+
2. Regenerated informers
30+
3. Regenerated listers
31+
4. Regenerated deepcopy methods
32+
5. Regenerated OpenAPI specifications
33+
6. Regenerated CRD manifests
34+
35+
## CRD Compatibility
36+
37+
All CRD manifests have been regenerated and are compatible with Kubernetes v1.30.2. No deprecated fields were found in the generated CRD files.
38+
39+
## Build and Test
40+
41+
The project builds successfully with the updated dependencies, and all unit tests pass.

artifacts/deploy/analysis.crane.io_analytics.yaml

Lines changed: 103 additions & 128 deletions
Large diffs are not rendered by default.

artifacts/deploy/analysis.crane.io_configsets.yaml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.7.0
8-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.18.0
97
name: configsets.analysis.crane.io
108
spec:
119
group: analysis.crane.io
@@ -24,9 +22,11 @@ spec:
2422
description: ConfigSet represents the configuration set for recommendation.
2523
properties:
2624
apiVersion:
27-
description: 'APIVersion defines the versioned schema of this representation
28-
of an object. Servers should convert recognized schemas to the latest
29-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
25+
description: |-
26+
APIVersion defines the versioned schema of this representation of an object.
27+
Servers should convert recognized schemas to the latest internal value, and
28+
may reject unrecognized values.
29+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
3030
type: string
3131
configs:
3232
items:
@@ -49,18 +49,15 @@ spec:
4949
type: object
5050
type: array
5151
kind:
52-
description: 'Kind is a string value representing the REST resource this
53-
object represents. Servers may infer this from the endpoint the client
54-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
52+
description: |-
53+
Kind is a string value representing the REST resource this object represents.
54+
Servers may infer this from the endpoint the client submits requests to.
55+
Cannot be updated.
56+
In CamelCase.
57+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
5558
type: string
5659
metadata:
5760
type: object
5861
type: object
5962
served: true
6063
storage: true
61-
status:
62-
acceptedNames:
63-
kind: ""
64-
plural: ""
65-
conditions: []
66-
storedVersions: []

artifacts/deploy/analysis.crane.io_recommendationrules.yaml

Lines changed: 84 additions & 96 deletions
Large diffs are not rendered by default.

artifacts/deploy/analysis.crane.io_recommendations.yaml

Lines changed: 88 additions & 132 deletions
Large diffs are not rendered by default.

artifacts/deploy/autoscaling.crane.io_effectivehorizontalpodautoscalers.yaml

Lines changed: 262 additions & 283 deletions
Large diffs are not rendered by default.

artifacts/deploy/autoscaling.crane.io_effectiveverticalpodautoscalers.yaml

Lines changed: 149 additions & 161 deletions
Large diffs are not rendered by default.

artifacts/deploy/autoscaling.crane.io_substitutes.yaml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.7.0
8-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.18.0
97
name: substitutes.autoscaling.crane.io
108
spec:
119
group: autoscaling.crane.io
@@ -34,14 +32,19 @@ spec:
3432
description: Substitute is the Schema for the Substitute API
3533
properties:
3634
apiVersion:
37-
description: 'APIVersion defines the versioned schema of this representation
38-
of an object. Servers should convert recognized schemas to the latest
39-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
35+
description: |-
36+
APIVersion defines the versioned schema of this representation of an object.
37+
Servers should convert recognized schemas to the latest internal value, and
38+
may reject unrecognized values.
39+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
4040
type: string
4141
kind:
42-
description: 'Kind is a string value representing the REST resource this
43-
object represents. Servers may infer this from the endpoint the client
44-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
42+
description: |-
43+
Kind is a string value representing the REST resource this object represents.
44+
Servers may infer this from the endpoint the client submits requests to.
45+
Cannot be updated.
46+
In CamelCase.
47+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
4548
type: string
4649
metadata:
4750
type: object
@@ -57,13 +60,13 @@ spec:
5760
that should be Substituted.
5861
properties:
5962
apiVersion:
60-
description: API version of the referent
63+
description: apiVersion is the API version of the referent
6164
type: string
6265
kind:
63-
description: 'Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"'
66+
description: 'kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
6467
type: string
6568
name:
66-
description: 'Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names'
69+
description: 'name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
6770
type: string
6871
required:
6972
- kind
@@ -80,7 +83,8 @@ spec:
8083
labelSelector which used by HPA.
8184
type: string
8285
replicas:
83-
description: Replicas is used by presents dryRun replicas for SubstituteTargetRef.
86+
description: |-
87+
Replicas is used by presents dryRun replicas for SubstituteTargetRef.
8488
status.replicas should be equal to spec.replicas.
8589
format: int32
8690
type: integer
@@ -94,9 +98,3 @@ spec:
9498
specReplicasPath: .spec.replicas
9599
statusReplicasPath: .status.replicas
96100
status: {}
97-
status:
98-
acceptedNames:
99-
kind: ""
100-
plural: ""
101-
conditions: []
102-
storedVersions: []

0 commit comments

Comments
 (0)