Skip to content

Commit

Permalink
Refactored Atlas Search Index CRDs
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-karpukhin committed Apr 4, 2024
1 parent fc26e21 commit f1b4076
Show file tree
Hide file tree
Showing 11 changed files with 1,357 additions and 792 deletions.
63 changes: 45 additions & 18 deletions config/crd/bases/atlas.mongodb.com_atlasdeployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ spec:
rootCertType:
type: string
searchIndexes:
description: A list of atlas search indexes configurations
description: A list of atlas search indexes configuration for
the current deployment
items:
properties:
DBName:
Expand All @@ -375,31 +376,45 @@ spec:
description: Human-readable label that identifies the collection
that contains one or more Atlas Search indexes
type: string
indexConfigRef:
description: A name and a namespace of the AtlasSearchIndexConfig
resource
properties:
name:
description: Name is the name of the Kubernetes Resource
type: string
namespace:
description: Namespace is the namespace of the Kubernetes
Resource
type: string
required:
- name
type: object
name:
description: Human-readable label that identifies this index.
Within each namespace, names of all indexes in the namespace
must be unique
Must be unique for a deployment
type: string
search:
description: Atlas search index configuration
properties:
mappings:
description: Index specifications for the collection's
fields
items:
properties:
dynamic:
description: Flag that indicates whether the index
uses dynamic or static mappings. Required if
mapping.fields is omitted.
type: boolean
fields:
description: One or more field specifications
for the Atlas Search index. Required if mapping.dynamic
is omitted or set to false.
type: string
type: object
type: array
properties:
dynamic:
description: Flag that indicates whether the index
uses dynamic or static mappings. Required if mapping.fields
is omitted.
type: boolean
fields:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
description: One or more field specifications for
the Atlas Search index. Required if mapping.dynamic
is omitted or set to false. Fields map[string]runtime.RawExtension
`json:"fields,omitempty"`
type: object
type: object
searchConfigurationRef:
description: A reference to the AtlasSearchIndexConfig
custom resource
Expand Down Expand Up @@ -510,7 +525,19 @@ spec:
properties:
fields:
description: Array of JSON objects. See examples https://dochub.mongodb.org/core/avs-vector-type
type: string
items:
properties:
dimensions:
type: integer
path:
type: string
similarity:
type: string
type:
default: vector
type: string
type: object
type: array
type: object
required:
- DBName
Expand Down
Loading

0 comments on commit f1b4076

Please sign in to comment.