Skip to content

Commit 3291461

Browse files
authored
Use k8s 1.34 client libs (#33)
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 7f79297 commit 3291461

2,093 files changed

Lines changed: 140860 additions & 71777 deletions

File tree

Some content is hidden

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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ BIN := $(if $(EXTBIN),$(EXTBIN),kubectl-connect)
2424
COMPRESS ?= no
2525

2626
CRD_OPTIONS ?= "crd:crdVersions={v1},allowDangerousTypes=true,generateEmbeddedObjectMeta=true"
27-
CODE_GENERATOR_IMAGE ?= ghcr.io/appscode/gengo:release-1.29
27+
CODE_GENERATOR_IMAGE ?= ghcr.io/appscode/gengo:release-1.32
2828
API_GROUPS ?= kubebind:v1alpha1
2929

3030
# Where to push the docker image.

crds/kube-bind.appscode.com_apiservicebindings.yaml

Lines changed: 41 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,32 @@ spec:
3535
name: v1alpha1
3636
schema:
3737
openAPIV3Schema:
38-
description: APIServiceBinding binds an API service represented by a APIServiceExport
39-
in a service provider cluster into a consumer cluster. This object lives
40-
in the consumer cluster.
38+
description: |-
39+
APIServiceBinding binds an API service represented by a APIServiceExport
40+
in a service provider cluster into a consumer cluster. This object lives in
41+
the consumer cluster.
4142
properties:
4243
apiVersion:
43-
description: 'APIVersion defines the versioned schema of this representation
44-
of an object. Servers should convert recognized schemas to the latest
45-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
44+
description: |-
45+
APIVersion defines the versioned schema of this representation of an object.
46+
Servers should convert recognized schemas to the latest internal value, and
47+
may reject unrecognized values.
48+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
4649
type: string
4750
kind:
48-
description: 'Kind is a string value representing the REST resource this
49-
object represents. Servers may infer this from the endpoint the client
50-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
51+
description: |-
52+
Kind is a string value representing the REST resource this object represents.
53+
Servers may infer this from the endpoint the client submits requests to.
54+
Cannot be updated.
55+
In CamelCase.
56+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
5157
type: string
5258
metadata:
5359
type: object
5460
spec:
55-
description: spec specifies how an API service from a service provider
56-
should be bound in the local consumer cluster.
61+
description: |-
62+
spec specifies how an API service from a service provider should be bound in the
63+
local consumer cluster.
5764
properties:
5865
providers:
5966
description: Providers contains the provider ClusterIdentity and KubeconfigSecretRef
@@ -104,43 +111,44 @@ spec:
104111
state.
105112
properties:
106113
lastTransitionTime:
107-
description: Last time the condition transitioned from one status
108-
to another. This should be when the underlying condition changed.
109-
If that is not known, then using the time when the API field
110-
changed is acceptable.
114+
description: |-
115+
Last time the condition transitioned from one status to another.
116+
This should be when the underlying condition changed. If that is not known, then using the time when
117+
the API field changed is acceptable.
111118
format: date-time
112119
type: string
113120
message:
114-
description: A human-readable message indicating details about
115-
the transition. This field may be empty.
121+
description: |-
122+
A human-readable message indicating details about the transition.
123+
This field may be empty.
116124
type: string
117125
observedGeneration:
118-
description: If set, this represents the .metadata.generation
119-
that the condition was set based upon. For instance, if .metadata.generation
120-
is currently 12, but the .status.condition[x].observedGeneration
121-
is 9, the condition is out of date with respect to the current
122-
state of the instance.
126+
description: |-
127+
If set, this represents the .metadata.generation that the condition was set based upon.
128+
For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date
129+
with respect to the current state of the instance.
123130
format: int64
124131
type: integer
125132
reason:
126-
description: The reason for the condition's last transition
127-
in CamelCase. The specific API may choose whether this field
128-
is considered a guaranteed API. This field may not be empty.
133+
description: |-
134+
The reason for the condition's last transition in CamelCase.
135+
The specific API may choose whether this field is considered a guaranteed API.
136+
This field may not be empty.
129137
type: string
130138
severity:
131-
description: Severity provides an explicit classification of
132-
Reason code, so the users or machines can immediately understand
133-
the current situation and act accordingly. The Severity field
134-
MUST be set only when Status=False.
139+
description: |-
140+
Severity provides an explicit classification of Reason code, so the users or machines can immediately
141+
understand the current situation and act accordingly.
142+
The Severity field MUST be set only when Status=False.
135143
type: string
136144
status:
137145
description: Status of the condition, one of True, False, Unknown.
138146
type: string
139147
type:
140-
description: Type of condition in CamelCase or in foo.example.com/CamelCase.
141-
Many .condition.type values are consistent across resources
142-
like Available, but because arbitrary util can be useful (see
143-
.node.status.util), the ability to deconflict is important.
148+
description: |-
149+
Type of condition in CamelCase or in foo.example.com/CamelCase.
150+
Many .condition.type values are consistent across resources like Available, but because arbitrary util
151+
can be useful (see .node.status.util), the ability to deconflict is important.
144152
type: string
145153
required:
146154
- lastTransitionTime

crds/kube-bind.appscode.com_apiserviceexportrequests.yaml

Lines changed: 64 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,37 @@ spec:
2626
name: v1alpha1
2727
schema:
2828
openAPIV3Schema:
29-
description: "APIServiceExportRequest is represents a request session of kubectl-bind-apiservice.
30-
\n The service provider can prune these objects after some time."
29+
description: |-
30+
APIServiceExportRequest is represents a request session of kubectl-bind-apiservice.
31+
32+
The service provider can prune these objects after some time.
3133
properties:
3234
apiVersion:
33-
description: 'APIVersion defines the versioned schema of this representation
34-
of an object. Servers should convert recognized schemas to the latest
35-
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
3640
type: string
3741
kind:
38-
description: 'Kind is a string value representing the REST resource this
39-
object represents. Servers may infer this from the endpoint the client
40-
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
4148
type: string
4249
metadata:
4350
type: object
4451
spec:
45-
description: spec specifies how an API service from a service provider
46-
should be bound in the local consumer cluster.
52+
description: |-
53+
spec specifies how an API service from a service provider should be bound in the
54+
local consumer cluster.
4755
properties:
4856
parameters:
49-
description: parameters holds service provider specific parameters
50-
for this binding request.
57+
description: |-
58+
parameters holds service provider specific parameters for this binding
59+
request.
5160
type: object
5261
x-kubernetes-preserve-unknown-fields: true
5362
x-kubernetes-validations:
@@ -59,20 +68,22 @@ spec:
5968
properties:
6069
group:
6170
default: ""
62-
description: group is the name of an API group. For core groups
63-
this is the empty string '""'.
71+
description: |-
72+
group is the name of an API group.
73+
For core groups this is the empty string '""'.
6474
pattern: ^(|[a-z0-9]([-a-z0-9]*[a-z0-9](\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)?)$
6575
type: string
6676
resource:
67-
description: 'resource is the name of the resource. Note: it
68-
is worth noting that you can not ask for permissions for resource
69-
provided by a CRD not provided by an service binding export.'
77+
description: |-
78+
resource is the name of the resource.
79+
Note: it is worth noting that you can not ask for permissions for resource provided by a CRD
80+
not provided by an service binding export.
7081
pattern: ^[a-z][-a-z0-9]*[a-z0-9]$
7182
type: string
7283
versions:
73-
description: versions is a list of versions that should be exported.
74-
If this is empty a sensible default is chosen by the service
75-
provider.
84+
description: |-
85+
versions is a list of versions that should be exported. If this is empty
86+
a sensible default is chosen by the service provider.
7687
items:
7788
type: string
7889
type: array
@@ -93,50 +104,52 @@ spec:
93104
binding.
94105
properties:
95106
conditions:
96-
description: conditions is a list of conditions that apply to the
97-
ClusterBinding. It is updated by the konnector and the service provider.
107+
description: |-
108+
conditions is a list of conditions that apply to the ClusterBinding. It is
109+
updated by the konnector and the service provider.
98110
items:
99111
description: Condition defines an observation of a object operational
100112
state.
101113
properties:
102114
lastTransitionTime:
103-
description: Last time the condition transitioned from one status
104-
to another. This should be when the underlying condition changed.
105-
If that is not known, then using the time when the API field
106-
changed is acceptable.
115+
description: |-
116+
Last time the condition transitioned from one status to another.
117+
This should be when the underlying condition changed. If that is not known, then using the time when
118+
the API field changed is acceptable.
107119
format: date-time
108120
type: string
109121
message:
110-
description: A human-readable message indicating details about
111-
the transition. This field may be empty.
122+
description: |-
123+
A human-readable message indicating details about the transition.
124+
This field may be empty.
112125
type: string
113126
observedGeneration:
114-
description: If set, this represents the .metadata.generation
115-
that the condition was set based upon. For instance, if .metadata.generation
116-
is currently 12, but the .status.condition[x].observedGeneration
117-
is 9, the condition is out of date with respect to the current
118-
state of the instance.
127+
description: |-
128+
If set, this represents the .metadata.generation that the condition was set based upon.
129+
For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date
130+
with respect to the current state of the instance.
119131
format: int64
120132
type: integer
121133
reason:
122-
description: The reason for the condition's last transition
123-
in CamelCase. The specific API may choose whether this field
124-
is considered a guaranteed API. This field may not be empty.
134+
description: |-
135+
The reason for the condition's last transition in CamelCase.
136+
The specific API may choose whether this field is considered a guaranteed API.
137+
This field may not be empty.
125138
type: string
126139
severity:
127-
description: Severity provides an explicit classification of
128-
Reason code, so the users or machines can immediately understand
129-
the current situation and act accordingly. The Severity field
130-
MUST be set only when Status=False.
140+
description: |-
141+
Severity provides an explicit classification of Reason code, so the users or machines can immediately
142+
understand the current situation and act accordingly.
143+
The Severity field MUST be set only when Status=False.
131144
type: string
132145
status:
133146
description: Status of the condition, one of True, False, Unknown.
134147
type: string
135148
type:
136-
description: Type of condition in CamelCase or in foo.example.com/CamelCase.
137-
Many .condition.type values are consistent across resources
138-
like Available, but because arbitrary util can be useful (see
139-
.node.status.util), the ability to deconflict is important.
149+
description: |-
150+
Type of condition in CamelCase or in foo.example.com/CamelCase.
151+
Many .condition.type values are consistent across resources like Available, but because arbitrary util
152+
can be useful (see .node.status.util), the ability to deconflict is important.
140153
type: string
141154
required:
142155
- lastTransitionTime
@@ -146,17 +159,19 @@ spec:
146159
type: array
147160
phase:
148161
default: Pending
149-
description: phase is the current phase of the binding request. It
150-
starts in Pending and transitions to Succeeded or Failed. See the
151-
condition for detailed information.
162+
description: |-
163+
phase is the current phase of the binding request. It starts in Pending
164+
and transitions to Succeeded or Failed. See the condition for detailed
165+
information.
152166
enum:
153167
- Pending
154168
- Failed
155169
- Succeeded
156170
type: string
157171
terminalMessage:
158-
description: terminalMessage is a human readable message that describes
159-
the reason for the current phase.
172+
description: |-
173+
terminalMessage is a human readable message that describes the reason
174+
for the current phase.
160175
type: string
161176
type: object
162177
required:

0 commit comments

Comments
 (0)