Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ BIN := $(if $(EXTBIN),$(EXTBIN),kubectl-connect)
COMPRESS ?= no

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

# Where to push the docker image.
Expand Down
74 changes: 41 additions & 33 deletions crds/kube-bind.appscode.com_apiservicebindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,32 @@ spec:
name: v1alpha1
schema:
openAPIV3Schema:
description: APIServiceBinding binds an API service represented by a APIServiceExport
in a service provider cluster into a consumer cluster. This object lives
in the consumer cluster.
description: |-
APIServiceBinding binds an API service represented by a APIServiceExport
in a service provider cluster into a consumer cluster. This object lives in
the consumer cluster.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: spec specifies how an API service from a service provider
should be bound in the local consumer cluster.
description: |-
spec specifies how an API service from a service provider should be bound in the
local consumer cluster.
properties:
providers:
description: Providers contains the provider ClusterIdentity and KubeconfigSecretRef
Expand Down Expand Up @@ -104,43 +111,44 @@ spec:
state.
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
to another. This should be when the underlying condition changed.
If that is not known, then using the time when the API field
changed is acceptable.
description: |-
Last time the condition transitioned from one status to another.
This should be when the underlying condition changed. If that is not known, then using the time when
the API field changed is acceptable.
format: date-time
type: string
message:
description: A human-readable message indicating details about
the transition. This field may be empty.
description: |-
A human-readable message indicating details about the transition.
This field may be empty.
type: string
observedGeneration:
description: If set, this represents the .metadata.generation
that the condition was set based upon. For instance, if .metadata.generation
is currently 12, but the .status.condition[x].observedGeneration
is 9, the condition is out of date with respect to the current
state of the instance.
description: |-
If set, this represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
format: int64
type: integer
reason:
description: The reason for the condition's last transition
in CamelCase. The specific API may choose whether this field
is considered a guaranteed API. This field may not be empty.
description: |-
The reason for the condition's last transition in CamelCase.
The specific API may choose whether this field is considered a guaranteed API.
This field may not be empty.
type: string
severity:
description: Severity provides an explicit classification of
Reason code, so the users or machines can immediately understand
the current situation and act accordingly. The Severity field
MUST be set only when Status=False.
description: |-
Severity provides an explicit classification of Reason code, so the users or machines can immediately
understand the current situation and act accordingly.
The Severity field MUST be set only when Status=False.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of condition in CamelCase or in foo.example.com/CamelCase.
Many .condition.type values are consistent across resources
like Available, but because arbitrary util can be useful (see
.node.status.util), the ability to deconflict is important.
description: |-
Type of condition in CamelCase or in foo.example.com/CamelCase.
Many .condition.type values are consistent across resources like Available, but because arbitrary util
can be useful (see .node.status.util), the ability to deconflict is important.
type: string
required:
- lastTransitionTime
Expand Down
113 changes: 64 additions & 49 deletions crds/kube-bind.appscode.com_apiserviceexportrequests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,37 @@ spec:
name: v1alpha1
schema:
openAPIV3Schema:
description: "APIServiceExportRequest is represents a request session of kubectl-bind-apiservice.
\n The service provider can prune these objects after some time."
description: |-
APIServiceExportRequest is represents a request session of kubectl-bind-apiservice.

The service provider can prune these objects after some time.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: spec specifies how an API service from a service provider
should be bound in the local consumer cluster.
description: |-
spec specifies how an API service from a service provider should be bound in the
local consumer cluster.
properties:
parameters:
description: parameters holds service provider specific parameters
for this binding request.
description: |-
parameters holds service provider specific parameters for this binding
request.
type: object
x-kubernetes-preserve-unknown-fields: true
x-kubernetes-validations:
Expand All @@ -59,20 +68,22 @@ spec:
properties:
group:
default: ""
description: group is the name of an API group. For core groups
this is the empty string '""'.
description: |-
group is the name of an API group.
For core groups this is the empty string '""'.
pattern: ^(|[a-z0-9]([-a-z0-9]*[a-z0-9](\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)?)$
type: string
resource:
description: 'resource is the name of the resource. Note: it
is worth noting that you can not ask for permissions for resource
provided by a CRD not provided by an service binding export.'
description: |-
resource is the name of the resource.
Note: it is worth noting that you can not ask for permissions for resource provided by a CRD
not provided by an service binding export.
pattern: ^[a-z][-a-z0-9]*[a-z0-9]$
type: string
versions:
description: versions is a list of versions that should be exported.
If this is empty a sensible default is chosen by the service
provider.
description: |-
versions is a list of versions that should be exported. If this is empty
a sensible default is chosen by the service provider.
items:
type: string
type: array
Expand All @@ -93,50 +104,52 @@ spec:
binding.
properties:
conditions:
description: conditions is a list of conditions that apply to the
ClusterBinding. It is updated by the konnector and the service provider.
description: |-
conditions is a list of conditions that apply to the ClusterBinding. It is
updated by the konnector and the service provider.
items:
description: Condition defines an observation of a object operational
state.
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
to another. This should be when the underlying condition changed.
If that is not known, then using the time when the API field
changed is acceptable.
description: |-
Last time the condition transitioned from one status to another.
This should be when the underlying condition changed. If that is not known, then using the time when
the API field changed is acceptable.
format: date-time
type: string
message:
description: A human-readable message indicating details about
the transition. This field may be empty.
description: |-
A human-readable message indicating details about the transition.
This field may be empty.
type: string
observedGeneration:
description: If set, this represents the .metadata.generation
that the condition was set based upon. For instance, if .metadata.generation
is currently 12, but the .status.condition[x].observedGeneration
is 9, the condition is out of date with respect to the current
state of the instance.
description: |-
If set, this represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
format: int64
type: integer
reason:
description: The reason for the condition's last transition
in CamelCase. The specific API may choose whether this field
is considered a guaranteed API. This field may not be empty.
description: |-
The reason for the condition's last transition in CamelCase.
The specific API may choose whether this field is considered a guaranteed API.
This field may not be empty.
type: string
severity:
description: Severity provides an explicit classification of
Reason code, so the users or machines can immediately understand
the current situation and act accordingly. The Severity field
MUST be set only when Status=False.
description: |-
Severity provides an explicit classification of Reason code, so the users or machines can immediately
understand the current situation and act accordingly.
The Severity field MUST be set only when Status=False.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of condition in CamelCase or in foo.example.com/CamelCase.
Many .condition.type values are consistent across resources
like Available, but because arbitrary util can be useful (see
.node.status.util), the ability to deconflict is important.
description: |-
Type of condition in CamelCase or in foo.example.com/CamelCase.
Many .condition.type values are consistent across resources like Available, but because arbitrary util
can be useful (see .node.status.util), the ability to deconflict is important.
type: string
required:
- lastTransitionTime
Expand All @@ -146,17 +159,19 @@ spec:
type: array
phase:
default: Pending
description: phase is the current phase of the binding request. It
starts in Pending and transitions to Succeeded or Failed. See the
condition for detailed information.
description: |-
phase is the current phase of the binding request. It starts in Pending
and transitions to Succeeded or Failed. See the condition for detailed
information.
enum:
- Pending
- Failed
- Succeeded
type: string
terminalMessage:
description: terminalMessage is a human readable message that describes
the reason for the current phase.
description: |-
terminalMessage is a human readable message that describes the reason
for the current phase.
type: string
type: object
required:
Expand Down
Loading
Loading