Skip to content

Commit 73ee7d9

Browse files
authored
feat: updated go to v1.23 and related k8s.io packages (#360)
Signed-off-by: Ankit152 <[email protected]>
1 parent 5096c91 commit 73ee7d9

File tree

2,199 files changed

+146393
-93279
lines changed

Some content is hidden

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

2,199 files changed

+146393
-93279
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
env:
1515
# Common versions
16-
GO_VERSION: '1.22'
16+
GO_VERSION: '1.23'
1717
GO_REQUIRED_MIN_VERSION: ''
1818
defaults:
1919
run:

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ GO_BUILD_PACKAGES_EXPANDED :=$(GO_BUILD_PACKAGES)
1616
# LDFLAGS are not needed for dummy builds (saving time on calling git commands)
1717
GO_LD_FLAGS:=
1818
# controller-gen setup
19-
CONTROLLER_GEN_VERSION :=v0.15.0
19+
CONTROLLER_GEN_VERSION :=v0.16.5
2020
CONTROLLER_GEN :=$(PERMANENT_TMP_GOPATH)/bin/controller-gen
2121
ifneq "" "$(wildcard $(CONTROLLER_GEN))"
2222
_controller_gen_installed_version = $(shell $(CONTROLLER_GEN) --version | awk '{print $$2}')
@@ -40,7 +40,7 @@ RUNTIME ?= podman
4040
RUNTIME_IMAGE_NAME ?= openshift-api-generator
4141

4242
verify-gocilint:
43-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.0
43+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.6
4444
go vet ./...
4545
${GOPATH}/bin/golangci-lint run --timeout=3m ./...
4646

@@ -56,7 +56,6 @@ update-scripts:
5656
hack/update-deepcopy.sh
5757
hack/update-swagger-docs.sh
5858
hack/update-codegen.sh
59-
hack/update-v1beta1-crds.sh
6059
.PHONY: update-scripts
6160
update: check-env update-scripts update-codegen-crds
6261

addon/v1alpha1/0000_00_addon.open-cluster-management.io_clustermanagementaddons.crd.yaml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -468,18 +468,8 @@ spec:
468468
description: conditions describe the state of the managed and
469469
monitored components for the operator.
470470
items:
471-
description: "Condition contains details for one aspect of
472-
the current state of this API Resource.\n---\nThis struct
473-
is intended for direct use as an array at the field path
474-
.status.conditions. For example,\n\n\n\ttype FooStatus
475-
struct{\n\t // Represents the observations of a foo's
476-
current state.\n\t // Known .status.conditions.type are:
477-
\"Available\", \"Progressing\", and \"Degraded\"\n\t //
478-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t //
479-
+listType=map\n\t // +listMapKey=type\n\t Conditions
480-
[]metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\"
481-
patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
482-
\ // other fields\n\t}"
471+
description: Condition contains details for one aspect of
472+
the current state of this API Resource.
483473
properties:
484474
lastTransitionTime:
485475
description: |-
@@ -521,12 +511,7 @@ spec:
521511
- Unknown
522512
type: string
523513
type:
524-
description: |-
525-
type of condition in CamelCase or in foo.example.com/CamelCase.
526-
---
527-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
528-
useful (see .node.status.conditions), the ability to deconflict is important.
529-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
514+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
530515
maxLength: 316
531516
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
532517
type: string
@@ -634,6 +619,8 @@ spec:
634619
type: object
635620
type: array
636621
type: object
622+
required:
623+
- spec
637624
type: object
638625
served: true
639626
storage: true

addon/v1alpha1/0000_01_addon.open-cluster-management.io_managedclusteraddons.crd.yaml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,8 @@ spec:
137137
description: conditions describe the state of the managed and monitored
138138
components for the operator.
139139
items:
140-
description: "Condition contains details for one aspect of the current
141-
state of this API Resource.\n---\nThis struct is intended for
142-
direct use as an array at the field path .status.conditions. For
143-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
144-
observations of a foo's current state.\n\t // Known .status.conditions.type
145-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
146-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
147-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
148-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
149-
\ // other fields\n\t}"
140+
description: Condition contains details for one aspect of the current
141+
state of this API Resource.
150142
properties:
151143
lastTransitionTime:
152144
description: |-
@@ -187,12 +179,7 @@ spec:
187179
- Unknown
188180
type: string
189181
type:
190-
description: |-
191-
type of condition in CamelCase or in foo.example.com/CamelCase.
192-
---
193-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
194-
useful (see .node.status.conditions), the ability to deconflict is important.
195-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
182+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
196183
maxLength: 316
197184
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
198185
type: string
@@ -344,6 +331,8 @@ spec:
344331
description: user is the user name of the addon agent.
345332
type: string
346333
type: object
334+
required:
335+
- signerName
347336
type: object
348337
type: array
349338
relatedObjects:

addon/v1alpha1/0000_02_addon.open-cluster-management.io_addondeploymentconfigs.crd.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ spec:
160160
the following example will override image "quay.io/open-cluster-management/addon-agent" to
161161
"quay.io/ocm/addon-agent" when deploying the addon agent
162162
163-
164163
registries:
165164
- source: quay.io/open-cluster-management/addon-agent
166165
mirror: quay.io/ocm/addon-agent
@@ -207,11 +206,9 @@ spec:
207206
Claims lists the names of resources, defined in spec.resourceClaims,
208207
that are used by this container.
209208
210-
211209
This is an alpha field and requires enabling the
212210
DynamicResourceAllocation feature gate.
213211
214-
215212
This field is immutable. It can only be set for containers.
216213
items:
217214
description: ResourceClaim references one entry in PodSpec.ResourceClaims.
@@ -222,6 +219,12 @@ spec:
222219
the Pod where this field is used. It makes that resource available
223220
inside a container.
224221
type: string
222+
request:
223+
description: |-
224+
Request is the name chosen for a request in the referenced claim.
225+
If empty, everything from the claim is made available, otherwise
226+
only the result of this request.
227+
type: string
225228
required:
226229
- name
227230
type: object
@@ -263,6 +266,8 @@ spec:
263266
- containerID
264267
x-kubernetes-list-type: map
265268
type: object
269+
required:
270+
- spec
266271
type: object
267272
served: true
268273
storage: true

addon/v1alpha1/0000_03_addon.open-cluster-management.io_addontemplates.crd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ spec:
2424
AddOnTemplate is the Custom Resource object, it is used to describe
2525
how to deploy the addon agent and how to register the addon.
2626
27-
2827
AddOnTemplate is a cluster-scoped resource, and will only be used
2928
on the hub cluster.
3029
properties:
@@ -414,6 +413,7 @@ spec:
414413
type: string
415414
type: object
416415
required:
416+
- signerName
417417
- signingCA
418418
type: object
419419
kubeClient:

client/addon/clientset/versioned/clientset.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/addon/clientset/versioned/fake/clientset_generated.go

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/addon/clientset/versioned/typed/addon/v1alpha1/addon_client.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)