Skip to content

Commit 60eaaff

Browse files
committed
Use k8s 1.32 client libs
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 82e0002 commit 60eaaff

File tree

2,896 files changed

+203985
-86623
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,896 files changed

+203985
-86623
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ COMPRESS ?= no
2525

2626
CRD_OPTIONS ?= "crd:generateEmbeddedObjectMeta=true,allowDangerousTypes=true"
2727
# https://github.com/appscodelabs/gengo-builder
28-
CODE_GENERATOR_IMAGE ?= ghcr.io/appscode/gengo:release-1.29
28+
CODE_GENERATOR_IMAGE ?= ghcr.io/appscode/gengo:release-1.32
2929

3030
# Where to push the docker image.
3131
REGISTRY ?= ghcr.io/appscode

crds/operator.k8s.appscode.com_shardconfigurations.yaml

Lines changed: 46 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,19 @@ spec:
2121
API.
2222
properties:
2323
apiVersion:
24-
description: 'APIVersion defines the versioned schema of this representation
25-
of an object. Servers should convert recognized schemas to the latest
26-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
24+
description: |-
25+
APIVersion defines the versioned schema of this representation of an object.
26+
Servers should convert recognized schemas to the latest internal value, and
27+
may reject unrecognized values.
28+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2729
type: string
2830
kind:
29-
description: 'Kind is a string value representing the REST resource this
30-
object represents. Servers may infer this from the endpoint the client
31-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
31+
description: |-
32+
Kind is a string value representing the REST resource this object represents.
33+
Servers may infer this from the endpoint the client submits requests to.
34+
Cannot be updated.
35+
In CamelCase.
36+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3237
type: string
3338
metadata:
3439
type: object
@@ -45,10 +50,14 @@ spec:
4550
kind:
4651
type: string
4752
name:
48-
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
53+
description: |-
54+
Name of the referent.
55+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
4956
type: string
5057
namespace:
51-
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
58+
description: |-
59+
Namespace of the referent.
60+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
5261
type: string
5362
required:
5463
- name
@@ -76,43 +85,44 @@ spec:
7685
state.
7786
properties:
7887
lastTransitionTime:
79-
description: Last time the condition transitioned from one status
80-
to another. This should be when the underlying condition changed.
81-
If that is not known, then using the time when the API field
82-
changed is acceptable.
88+
description: |-
89+
Last time the condition transitioned from one status to another.
90+
This should be when the underlying condition changed. If that is not known, then using the time when
91+
the API field changed is acceptable.
8392
format: date-time
8493
type: string
8594
message:
86-
description: A human-readable message indicating details about
87-
the transition. This field may be empty.
95+
description: |-
96+
A human-readable message indicating details about the transition.
97+
This field may be empty.
8898
type: string
8999
observedGeneration:
90-
description: If set, this represents the .metadata.generation
91-
that the condition was set based upon. For instance, if .metadata.generation
92-
is currently 12, but the .status.condition[x].observedGeneration
93-
is 9, the condition is out of date with respect to the current
94-
state of the instance.
100+
description: |-
101+
If set, this represents the .metadata.generation that the condition was set based upon.
102+
For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date
103+
with respect to the current state of the instance.
95104
format: int64
96105
type: integer
97106
reason:
98-
description: The reason for the condition's last transition
99-
in CamelCase. The specific API may choose whether this field
100-
is considered a guaranteed API. This field may not be empty.
107+
description: |-
108+
The reason for the condition's last transition in CamelCase.
109+
The specific API may choose whether this field is considered a guaranteed API.
110+
This field may not be empty.
101111
type: string
102112
severity:
103-
description: Severity provides an explicit classification of
104-
Reason code, so the users or machines can immediately understand
105-
the current situation and act accordingly. The Severity field
106-
MUST be set only when Status=False.
113+
description: |-
114+
Severity provides an explicit classification of Reason code, so the users or machines can immediately
115+
understand the current situation and act accordingly.
116+
The Severity field MUST be set only when Status=False.
107117
type: string
108118
status:
109119
description: Status of the condition, one of True, False, Unknown.
110120
type: string
111121
type:
112-
description: Type of condition in CamelCase or in foo.example.com/CamelCase.
113-
Many .condition.type values are consistent across resources
114-
like Available, but because arbitrary util can be useful (see
115-
.node.status.util), the ability to deconflict is important.
122+
description: |-
123+
Type of condition in CamelCase or in foo.example.com/CamelCase.
124+
Many .condition.type values are consistent across resources like Available, but because arbitrary util
125+
can be useful (see .node.status.util), the ability to deconflict is important.
116126
type: string
117127
required:
118128
- lastTransitionTime
@@ -132,10 +142,14 @@ spec:
132142
kind:
133143
type: string
134144
name:
135-
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
145+
description: |-
146+
Name of the referent.
147+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
136148
type: string
137149
namespace:
138-
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
150+
description: |-
151+
Namespace of the referent.
152+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
139153
type: string
140154
pods:
141155
items:

go.mod

Lines changed: 70 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,64 @@
11
module kubeops.dev/operator-shard-manager
22

3-
go 1.22.1
3+
go 1.23.0
44

5-
toolchain go1.23.4
5+
toolchain go1.24.1
66

77
require (
88
github.com/cespare/xxhash/v2 v2.3.0
9-
github.com/spf13/cobra v1.8.0
10-
go.bytebuilders.dev/license-verifier v0.14.3
11-
gomodules.xyz/consistent v0.10.1-0.20250307082859-d6cf4999063f
9+
github.com/spf13/cobra v1.9.1
10+
go.bytebuilders.dev/license-verifier v0.14.6
11+
gomodules.xyz/consistent v0.11.0
1212
gomodules.xyz/logs v0.0.7
1313
gomodules.xyz/sets v0.2.1
1414
gomodules.xyz/x v0.0.17
15-
k8s.io/api v0.30.2
16-
k8s.io/apimachinery v0.30.2
17-
k8s.io/client-go v0.30.2
18-
k8s.io/klog/v2 v2.120.1
19-
k8s.io/kube-aggregator v0.30.2
20-
kmodules.xyz/client-go v0.30.43
21-
sigs.k8s.io/controller-runtime v0.18.4
15+
k8s.io/api v0.32.3
16+
k8s.io/apimachinery v0.32.3
17+
k8s.io/client-go v0.32.3
18+
k8s.io/klog/v2 v2.130.1
19+
k8s.io/kube-aggregator v0.32.3
20+
kmodules.xyz/client-go v0.32.0
21+
sigs.k8s.io/controller-runtime v0.20.3
2222
sigs.k8s.io/yaml v1.4.0
2323
)
2424

2525
require (
26-
github.com/Masterminds/semver/v3 v3.3.0 // indirect
26+
cel.dev/expr v0.18.0 // indirect
27+
github.com/Masterminds/semver/v3 v3.3.1 // indirect
2728
github.com/PuerkitoBio/purell v1.2.1 // indirect
28-
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df // indirect
29+
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
30+
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect
2931
github.com/beorn7/perks v1.0.1 // indirect
3032
github.com/blang/semver/v4 v4.0.0 // indirect
31-
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
33+
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
3234
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
3335
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
34-
github.com/evanphx/json-patch v5.9.0+incompatible // indirect
35-
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
36+
github.com/evanphx/json-patch v5.9.11+incompatible // indirect
37+
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
3638
github.com/fatih/structs v1.1.0 // indirect
37-
github.com/felixge/httpsnoop v1.0.3 // indirect
38-
github.com/fsnotify/fsnotify v1.7.0 // indirect
39+
github.com/felixge/httpsnoop v1.0.4 // indirect
40+
github.com/fsnotify/fsnotify v1.8.0 // indirect
41+
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
3942
github.com/go-logr/logr v1.4.2 // indirect
4043
github.com/go-logr/stdr v1.2.2 // indirect
4144
github.com/go-openapi/jsonpointer v0.21.0 // indirect
4245
github.com/go-openapi/jsonreference v0.21.0 // indirect
4346
github.com/go-openapi/swag v0.23.0 // indirect
4447
github.com/gogo/protobuf v1.3.2 // indirect
45-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
4648
github.com/golang/protobuf v1.5.4 // indirect
47-
github.com/google/cel-go v0.17.8 // indirect
48-
github.com/google/gnostic-models v0.6.8 // indirect
49+
github.com/google/btree v1.1.3 // indirect
50+
github.com/google/cel-go v0.22.0 // indirect
51+
github.com/google/gnostic-models v0.6.9 // indirect
4952
github.com/google/go-cmp v0.6.0 // indirect
50-
github.com/google/go-containerregistry v0.19.1 // indirect
53+
github.com/google/go-containerregistry v0.20.3 // indirect
5154
github.com/google/gofuzz v1.2.0 // indirect
5255
github.com/google/uuid v1.6.0 // indirect
53-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
54-
github.com/imdario/mergo v0.3.16 // indirect
56+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect
57+
github.com/imdario/mergo v0.3.6 // indirect
5558
github.com/inconshreveable/mousetrap v1.1.0 // indirect
5659
github.com/josharian/intern v1.0.0 // indirect
5760
github.com/json-iterator/go v1.1.12 // indirect
61+
github.com/klauspost/compress v1.17.11 // indirect
5862
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
5963
github.com/mailru/easyjson v0.7.7 // indirect
6064
github.com/mitchellh/mapstructure v1.5.0 // indirect
@@ -64,60 +68,61 @@ require (
6468
github.com/nxadm/tail v1.4.11 // indirect
6569
github.com/opencontainers/go-digest v1.0.0 // indirect
6670
github.com/pkg/errors v0.9.1 // indirect
67-
github.com/prometheus/client_golang v1.18.0 // indirect
71+
github.com/prometheus/client_golang v1.20.5 // indirect
6872
github.com/prometheus/client_model v0.6.1 // indirect
69-
github.com/prometheus/common v0.46.0 // indirect
70-
github.com/prometheus/procfs v0.15.0 // indirect
71-
github.com/sergi/go-diff v1.1.0 // indirect
72-
github.com/spf13/pflag v1.0.5 // indirect
73-
github.com/stoewer/go-strcase v1.2.0 // indirect
73+
github.com/prometheus/common v0.55.0 // indirect
74+
github.com/prometheus/procfs v0.15.1 // indirect
75+
github.com/sergi/go-diff v1.2.0 // indirect
76+
github.com/spf13/pflag v1.0.6 // indirect
77+
github.com/stoewer/go-strcase v1.3.0 // indirect
78+
github.com/x448/float16 v0.8.4 // indirect
7479
github.com/yudai/gojsondiff v1.0.0 // indirect
7580
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
7681
github.com/zeebo/xxh3 v1.0.2 // indirect
77-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.44.0 // indirect
78-
go.opentelemetry.io/otel v1.19.0 // indirect
79-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 // indirect
80-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0 // indirect
81-
go.opentelemetry.io/otel/metric v1.19.0 // indirect
82-
go.opentelemetry.io/otel/sdk v1.19.0 // indirect
83-
go.opentelemetry.io/otel/trace v1.19.0 // indirect
84-
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
85-
go.uber.org/zap v1.27.0 // indirect
86-
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
87-
golang.org/x/net v0.33.0 // indirect
88-
golang.org/x/oauth2 v0.22.0 // indirect
89-
golang.org/x/sync v0.10.0 // indirect
90-
golang.org/x/sys v0.28.0 // indirect
91-
golang.org/x/term v0.27.0 // indirect
92-
golang.org/x/text v0.21.0 // indirect
93-
golang.org/x/time v0.5.0 // indirect
82+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
83+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 // indirect
84+
go.opentelemetry.io/otel v1.33.0 // indirect
85+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0 // indirect
86+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.27.0 // indirect
87+
go.opentelemetry.io/otel/metric v1.33.0 // indirect
88+
go.opentelemetry.io/otel/sdk v1.33.0 // indirect
89+
go.opentelemetry.io/otel/trace v1.33.0 // indirect
90+
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
91+
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
92+
golang.org/x/net v0.36.0 // indirect
93+
golang.org/x/oauth2 v0.27.0 // indirect
94+
golang.org/x/sync v0.11.0 // indirect
95+
golang.org/x/sys v0.30.0 // indirect
96+
golang.org/x/term v0.29.0 // indirect
97+
golang.org/x/text v0.22.0 // indirect
98+
golang.org/x/time v0.10.0 // indirect
9499
gomodules.xyz/clock v0.0.0-20200817085942-06523dba733f // indirect
95100
gomodules.xyz/flags v0.1.3 // indirect
96-
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
101+
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
97102
gomodules.xyz/wait v0.2.0 // indirect
98-
google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e // indirect
99-
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
100-
google.golang.org/grpc v1.58.3 // indirect
101-
google.golang.org/protobuf v1.34.2 // indirect
103+
google.golang.org/genproto/googleapis/api v0.0.0-20240826202546-f6391c0de4c7 // indirect
104+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240826202546-f6391c0de4c7 // indirect
105+
google.golang.org/grpc v1.65.0 // indirect
106+
google.golang.org/protobuf v1.36.3 // indirect
107+
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
102108
gopkg.in/inf.v0 v0.9.1 // indirect
103-
gopkg.in/yaml.v2 v2.4.0 // indirect
104109
gopkg.in/yaml.v3 v3.0.1 // indirect
105-
k8s.io/apiextensions-apiserver v0.30.2 // indirect
106-
k8s.io/apiserver v0.30.2 // indirect
107-
k8s.io/component-base v0.30.2 // indirect
108-
k8s.io/kube-openapi v0.0.0-20240703190633-0aa61b46e8c2 // indirect
109-
k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 // indirect
110-
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.29.0 // indirect
111-
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
112-
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
110+
k8s.io/apiextensions-apiserver v0.32.2 // indirect
111+
k8s.io/apiserver v0.32.3 // indirect
112+
k8s.io/component-base v0.32.3 // indirect
113+
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 // indirect
114+
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
115+
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 // indirect
116+
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
117+
sigs.k8s.io/structured-merge-diff/v4 v4.4.3 // indirect
113118
)
114119

115120
replace github.com/Masterminds/sprig/v3 => github.com/gomodules/sprig/v3 v3.2.3-0.20240908185247-10b1687ea668
116121

117-
replace sigs.k8s.io/controller-runtime => github.com/kmodules/controller-runtime v0.18.4-0.20240603164526-fa88ec2314fe
122+
replace sigs.k8s.io/controller-runtime => github.com/kmodules/controller-runtime v0.20.3-0.20250221050548-8eabe54e7dda
118123

119124
replace github.com/imdario/mergo => github.com/imdario/mergo v0.3.6
120125

121-
replace helm.sh/helm/v3 => github.com/x-helm/helm/v3 v3.15.1-0.20240519042544-f489f30bb34d
126+
replace helm.sh/helm/v3 => github.com/x-helm/helm/v3 v3.17.3-0.20250315010135-36de8bbf52f8
122127

123-
replace k8s.io/apiserver => github.com/kmodules/apiserver v0.30.2-0.20240519082755-d7b8c2d9e699
128+
replace k8s.io/apiserver => github.com/kmodules/apiserver v0.32.3-0.20250221062720-35dc674c7dd6

0 commit comments

Comments
 (0)