Skip to content

Commit

Permalink
Add kube-bind crds
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Feb 17, 2024
1 parent c2de911 commit 8035a70
Show file tree
Hide file tree
Showing 62 changed files with 1,146 additions and 356 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ require (
kmodules.xyz/custom-resources v0.29.1
kmodules.xyz/go-containerregistry v0.0.12
kmodules.xyz/monitoring-agent-api v0.29.0
kmodules.xyz/resource-metadata v0.18.2-0.20240216015113-e3f31f747add
kmodules.xyz/resource-metadata v0.18.2-0.20240217074204-cdb06d82d532
kmodules.xyz/resource-metrics v0.29.0
kmodules.xyz/sets v0.29.0
kubeops.dev/falco-ui-server v0.0.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3478,8 +3478,8 @@ kmodules.xyz/monitoring-agent-api v0.29.0 h1:gpFl6OZrlMLb/ySMHdREI9EwGtnJ91oZBn9
kmodules.xyz/monitoring-agent-api v0.29.0/go.mod h1:iNbvaMTgVFOI5q2LJtGK91j4Dmjv4ZRiRdasGmWLKQI=
kmodules.xyz/offshoot-api v0.29.0 h1:GHLhxxT9jU1N8+FvOCCeJNyU5g0duYS46UGrs6AHNLY=
kmodules.xyz/offshoot-api v0.29.0/go.mod h1:5NxhBblXoDHWStx9HCDJR2KFTwYjEZ7i1Id3jelIunw=
kmodules.xyz/resource-metadata v0.18.2-0.20240216015113-e3f31f747add h1:R4TmoPp/SjbvGPadtffX2JeFPC25pM7whI8B+zZkvag=
kmodules.xyz/resource-metadata v0.18.2-0.20240216015113-e3f31f747add/go.mod h1:nWzNouxIj4fvirSS1mkWO9sm1GHCQLcxJL+IzMCKQgE=
kmodules.xyz/resource-metadata v0.18.2-0.20240217074204-cdb06d82d532 h1:IQ3d6MJwZ71QrY+su4+NF/8jOcjeBudwTse7uqp5mfk=
kmodules.xyz/resource-metadata v0.18.2-0.20240217074204-cdb06d82d532/go.mod h1:nWzNouxIj4fvirSS1mkWO9sm1GHCQLcxJL+IzMCKQgE=
kmodules.xyz/resource-metrics v0.29.0 h1:YBSVCbGdAugUqZK4igHu3fPhxvpYar4xejE6njryNM4=
kmodules.xyz/resource-metrics v0.29.0/go.mod h1:OuG/QobZ7o8GFHl/u3lqaUR0fDZDegxtV8Vdh+MNBD4=
kmodules.xyz/sets v0.29.0 h1:ZX/qOECzUob95JhhRtngJElHSlJ1UNNdwK4hTEy+nl0=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: ResourceDescriptor
metadata:
creationTimestamp: null
labels:
k8s.io/group: catalog.kubeware.dev
k8s.io/group: catalog.appscode.com
k8s.io/kind: ElasticsearchBinding
k8s.io/resource: elasticsearchbindings
k8s.io/version: v1alpha1
name: catalog.kubeware.dev-v1alpha1-elasticsearchbindings
name: catalog.appscode.com-v1alpha1-elasticsearchbindings
spec:
resource:
group: catalog.kubeware.dev
group: catalog.appscode.com
kind: ElasticsearchBinding
name: elasticsearchbindings
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: ResourceDescriptor
metadata:
creationTimestamp: null
labels:
k8s.io/group: catalog.kubeware.dev
k8s.io/group: catalog.appscode.com
k8s.io/kind: KafkaBinding
k8s.io/resource: kafkabindings
k8s.io/version: v1alpha1
name: catalog.kubeware.dev-v1alpha1-kafkabindings
name: catalog.appscode.com-v1alpha1-kafkabindings
spec:
resource:
group: catalog.kubeware.dev
group: catalog.appscode.com
kind: KafkaBinding
name: kafkabindings
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: ResourceDescriptor
metadata:
creationTimestamp: null
labels:
k8s.io/group: catalog.kubeware.dev
k8s.io/group: catalog.appscode.com
k8s.io/kind: MariaDBBinding
k8s.io/resource: mariadbbindings
k8s.io/version: v1alpha1
name: catalog.kubeware.dev-v1alpha1-mariadbbindings
name: catalog.appscode.com-v1alpha1-mariadbbindings
spec:
resource:
group: catalog.kubeware.dev
group: catalog.appscode.com
kind: MariaDBBinding
name: mariadbbindings
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: ResourceDescriptor
metadata:
creationTimestamp: null
labels:
k8s.io/group: catalog.kubeware.dev
k8s.io/group: catalog.appscode.com
k8s.io/kind: MemcachedBinding
k8s.io/resource: memcachedbindings
k8s.io/version: v1alpha1
name: catalog.kubeware.dev-v1alpha1-memcachedbindings
name: catalog.appscode.com-v1alpha1-memcachedbindings
spec:
resource:
group: catalog.kubeware.dev
group: catalog.appscode.com
kind: MemcachedBinding
name: memcachedbindings
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: ResourceDescriptor
metadata:
creationTimestamp: null
labels:
k8s.io/group: catalog.kubeware.dev
k8s.io/group: catalog.appscode.com
k8s.io/kind: MongoDBBinding
k8s.io/resource: mongodbbindings
k8s.io/version: v1alpha1
name: catalog.kubeware.dev-v1alpha1-mongodbbindings
name: catalog.appscode.com-v1alpha1-mongodbbindings
spec:
resource:
group: catalog.kubeware.dev
group: catalog.appscode.com
kind: MongoDBBinding
name: mongodbbindings
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: ResourceDescriptor
metadata:
creationTimestamp: null
labels:
k8s.io/group: catalog.kubeware.dev
k8s.io/group: catalog.appscode.com
k8s.io/kind: MySQLBinding
k8s.io/resource: mysqlbindings
k8s.io/version: v1alpha1
name: catalog.kubeware.dev-v1alpha1-mysqlbindings
name: catalog.appscode.com-v1alpha1-mysqlbindings
spec:
resource:
group: catalog.kubeware.dev
group: catalog.appscode.com
kind: MySQLBinding
name: mysqlbindings
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: ResourceDescriptor
metadata:
creationTimestamp: null
labels:
k8s.io/group: catalog.kubeware.dev
k8s.io/group: catalog.appscode.com
k8s.io/kind: PerconaXtraDBBinding
k8s.io/resource: perconaxtradbbindings
k8s.io/version: v1alpha1
name: catalog.kubeware.dev-v1alpha1-perconaxtradbbindings
name: catalog.appscode.com-v1alpha1-perconaxtradbbindings
spec:
resource:
group: catalog.kubeware.dev
group: catalog.appscode.com
kind: PerconaXtraDBBinding
name: perconaxtradbbindings
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: ResourceDescriptor
metadata:
creationTimestamp: null
labels:
k8s.io/group: catalog.kubeware.dev
k8s.io/group: catalog.appscode.com
k8s.io/kind: PgBouncerBinding
k8s.io/resource: pgbouncerbindings
k8s.io/version: v1alpha1
name: catalog.kubeware.dev-v1alpha1-pgbouncerbindings
name: catalog.appscode.com-v1alpha1-pgbouncerbindings
spec:
resource:
group: catalog.kubeware.dev
group: catalog.appscode.com
kind: PgBouncerBinding
name: pgbouncerbindings
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: ResourceDescriptor
metadata:
creationTimestamp: null
labels:
k8s.io/group: catalog.kubeware.dev
k8s.io/group: catalog.appscode.com
k8s.io/kind: PostgresBinding
k8s.io/resource: postgresbindings
k8s.io/version: v1alpha1
name: catalog.kubeware.dev-v1alpha1-postgresbindings
name: catalog.appscode.com-v1alpha1-postgresbindings
spec:
resource:
group: catalog.kubeware.dev
group: catalog.appscode.com
kind: PostgresBinding
name: postgresbindings
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: ResourceDescriptor
metadata:
creationTimestamp: null
labels:
k8s.io/group: catalog.kubeware.dev
k8s.io/group: catalog.appscode.com
k8s.io/kind: ProxySQLBinding
k8s.io/resource: proxysqlbindings
k8s.io/version: v1alpha1
name: catalog.kubeware.dev-v1alpha1-proxysqlbindings
name: catalog.appscode.com-v1alpha1-proxysqlbindings
spec:
resource:
group: catalog.kubeware.dev
group: catalog.appscode.com
kind: ProxySQLBinding
name: proxysqlbindings
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: ResourceDescriptor
metadata:
creationTimestamp: null
labels:
k8s.io/group: catalog.kubeware.dev
k8s.io/group: catalog.appscode.com
k8s.io/kind: RedisBinding
k8s.io/resource: redisbindings
k8s.io/version: v1alpha1
name: catalog.kubeware.dev-v1alpha1-redisbindings
name: catalog.appscode.com-v1alpha1-redisbindings
spec:
resource:
group: catalog.kubeware.dev
group: catalog.appscode.com
kind: RedisBinding
name: redisbindings
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
apiVersion: meta.k8s.appscode.com/v1alpha1
kind: ResourceDescriptor
metadata:
creationTimestamp: null
labels:
k8s.io/group: kube-bind.appscode.com
k8s.io/kind: APIServiceBinding
k8s.io/resource: apiservicebindings
k8s.io/version: v1alpha1
name: kube-bind.appscode.com-v1alpha1-apiservicebindings
spec:
resource:
group: kube-bind.appscode.com
kind: APIServiceBinding
name: apiservicebindings
scope: Cluster
version: v1alpha1
validation:
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.
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'
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'
type: string
metadata:
properties:
name:
description: 'Name must be unique within a namespace. Is required when
creating resources, although some resources may allow a client to
request the generation of an appropriate name automatically. Name
is primarily intended for creation idempotence and configuration definition.
Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names'
type: string
labels:
additionalProperties:
type: string
description: 'Map of string keys and values that can be used to organize
and categorize (scope and select) objects. May match selectors of
replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels'
type: object
annotations:
additionalProperties:
type: string
description: 'Annotations is an unstructured key value map stored with
a resource that may be set by external tools to store and retrieve
arbitrary metadata. They are not queryable and should be preserved
when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations'
type: object
type: object
spec:
description: spec specifies how an API service from a service provider should
be bound in the local consumer cluster.
properties:
kubeconfigSecretRefs:
description: kubeconfigSecretName is the secret ref that contains the
kubeconfig of the service cluster.
items:
properties:
key:
description: The key of the secret to select from. Must be "kubeconfig".
enum:
- kubeconfig
type: string
name:
description: Name of the referent.
minLength: 1
type: string
namespace:
description: Namespace of the referent.
minLength: 1
type: string
required:
- key
- name
- namespace
type: object
type: array
required:
- kubeconfigSecretRefs
type: object
type: object
Loading

0 comments on commit 8035a70

Please sign in to comment.