---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.2.8
  name: couchbaserolebindings.couchbase.com
spec:
  group: couchbase.com
  names:
    kind: CouchbaseRoleBinding
    listKind: CouchbaseRoleBindingList
    plural: couchbaserolebindings
    singular: couchbaserolebinding
  scope: Namespaced
  versions:
  - name: v2
    schema:
      openAPIV3Schema:
        description: CouchbaseRoleBinding allows association of Couchbase users with groups.
        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:
            type: object
          spec:
            description: CouchbaseRoleBindingSpec defines the group of subjects i.e. users, and the role i.e. group they are a member of.
            properties:
              roleRef:
                description: CouchbaseGroup being bound to subjects.
                properties:
                  kind:
                    description: Kind of role to use for binding.
                    enum:
                    - CouchbaseGroup
                    type: string
                  name:
                    description: Name of role resource to use for binding.
                    type: string
                required:
                - kind
                - name
                type: object
              subjects:
                description: List of users to bind a role to.
                items:
                  properties:
                    kind:
                      description: Couchbase user/group kind.
                      enum:
                      - CouchbaseUser
                      type: string
                    name:
                      description: Name of Couchbase user resource.
                      type: string
                  required:
                  - kind
                  - name
                  type: object
                type: array
            required:
            - roleRef
            - subjects
            type: object
        required:
        - spec
        type: object
    served: true
    storage: true
