# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.2.2
  creationTimestamp: null
  name: solrcollectionaliases.solr.bloomberg.com
spec:
  group: solr.bloomberg.com
  names:
    kind: SolrCollectionAlias
    listKind: SolrCollectionAliasList
    plural: solrcollectionaliases
    singular: solrcollectionalias
  scope: ""
  validation:
    openAPIV3Schema:
      description: SolrCollectionAlias is the Schema for the solrcollectionaliases
        API
      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: SolrCollectionAliasSpec defines the desired state of SolrCollectionAlias
          properties:
            aliasType:
              description: AliasType is a either standard or routed, right now we
                support standard
              type: string
            collections:
              description: Collections is a list of collections to apply alias to
              items:
                type: string
              type: array
            solrCloud:
              description: A reference to the SolrCloud to create alias on
              type: string
          required:
          - aliasType
          - collections
          - solrCloud
          type: object
        status:
          description: SolrCollectionAliasStatus defines the observed state of SolrCollectionAlias
          properties:
            collections:
              description: Associated collections to the alias
              items:
                type: string
              type: array
            created:
              description: Created or not status
              type: boolean
            createdTime:
              description: Time the alias was created
              format: date-time
              type: string
          type: object
      type: object
  version: v1beta1
  versions:
  - name: v1beta1
    served: true
    storage: true
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
