Skip to content

Commit

Permalink
update descriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Groschupp <[email protected]>
  • Loading branch information
Christian Groschupp committed Feb 22, 2024
1 parent f5b16ca commit 33cddae
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion opensearch-operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ run: manifests generate fmt vet ## Run a controller from your host.
go run ./main.go --loglevel debug

docker-build: generate fmt vet ## Build docker image with the manager.
DOCKER_BUILDKIT=1 docker build -t ${IMG} .
DOCKER_BUILDKIT=1 podman build --arch amd64 -t ${IMG} .

docker-build-multiarch: ## Build docker image with the manager for all supported architectures
DOCKER_BUILDKIT=1 docker buildx build --platform="linux/amd64,linux/arm,linux/arm64" -t ${IMG} .
Expand Down
2 changes: 2 additions & 0 deletions opensearch-operator/api/v1/opensearch_index_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ import (
)

type OpensearchDatastreamTimestampFieldSpec struct {
// Name of the field that are used for the DataStream
Name string `json:"name"`
}

type OpensearchDatastreamSpec struct {
// TimestampField for dataStream
TimestampField OpensearchDatastreamTimestampFieldSpec `json:"timestamp_field,omitempty"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type OpensearchIndexTemplateSpec struct {
// Array of wildcard expressions used to match the names of indices during creation
IndexPatterns []string `json:"indexPatterns"`

// Array of wildcard expressions used to match the names of indices during creation
// The dataStream config that should be applied
DataStream *OpensearchDatastreamSpec `json:"dataStream,omitempty"`

// The template that should be applied
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ spec:
type: string
type: array
dataStream:
description: Array of wildcard expressions used to match the names
of indices during creation
description: The dataStream config that should be applied
properties:
timestamp_field:
description: TimestampField for dataStream
properties:
name:
description: Name of the field that are used for the DataStream
type: string
required:
- name
Expand Down
1 change: 1 addition & 0 deletions opensearch-operator/pkg/helpers/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func TranslateComponentTemplateToRequest(spec v1.OpensearchComponentTemplateSpec
return request
}

// TranslateDatastreamToRequest rewrites the CRD format to the gateway format
func TranslateDatastreamToRequest(spec *v1.OpensearchDatastreamSpec) *requests.Datastream {
if spec == nil {
return nil
Expand Down

0 comments on commit 33cddae

Please sign in to comment.