Skip to content

Commit d768a55

Browse files
Remove allow_auto_create option
Signed-off-by: Prudhvi Godithi <[email protected]>
1 parent fb50c19 commit d768a55

31 files changed

+2235
-2323
lines changed

.github/workflows/docker-build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Setup go
1414
uses: actions/setup-go@v3
1515
with:
16-
go-version: '1.19'
16+
go-version: '1.22'
1717
- name: Set up Docker Buildx
1818
uses: docker/setup-buildx-action@v2
1919
- name: Docker Build

.github/workflows/functional-tests.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Setup go
1111
uses: actions/setup-go@v3
1212
with:
13-
go-version: '1.19'
13+
go-version: '1.22'
1414
- uses: nolar/setup-k3d-k3s@v1
1515
with:
1616
version: v1
@@ -49,7 +49,7 @@ jobs:
4949
- name: Setup go
5050
uses: actions/setup-go@v3
5151
with:
52-
go-version: '1.19'
52+
go-version: '1.22'
5353
- uses: nolar/setup-k3d-k3s@v1
5454
with:
5555
version: v1

.github/workflows/linting.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
- name: Setup go
1111
uses: actions/setup-go@v3
1212
with:
13-
go-version: '1.19'
13+
go-version: '1.22'
1414
- name: golangci-lint go
1515
uses: golangci/golangci-lint-action@v3
1616
with:
1717
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
18-
version: v1.48.0
18+
version: v1.54
1919
working-directory: opensearch-operator
2020
args: --timeout=6m --skip-dirs="(^|/)responses($|/)" -v
2121

.github/workflows/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup go
1616
uses: actions/setup-go@v3
1717
with:
18-
go-version: '1.19'
18+
go-version: '1.22'
1919
- name: Set up Docker Buildx
2020
uses: docker/setup-buildx-action@v2
2121
- name: set Env

.github/workflows/testing.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Setup go
1111
uses: actions/setup-go@v3
1212
with:
13-
go-version: '1.19'
13+
go-version: '1.22'
1414
- name: Test
1515
run: |
1616
cd opensearch-operator

charts/opensearch-operator/files/opensearch.opster.io_opensearchcomponenttemplates.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ spec:
4040
_meta:
4141
description: Optional user metadata about the component template
4242
x-kubernetes-preserve-unknown-fields: true
43-
allowAutoCreate:
44-
description: If true, then indices can be automatically created using
45-
this template
46-
type: boolean
4743
name:
4844
description: The name of the component template. Defaults to metadata.name
4945
type: string

docs/developing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This page provides information how to develop changes for the operator code. Ple
44

55
## Needed environment and tools
66

7-
The operator is developed in Go, as such you need a current Go toolkit (for Linux most distributions provide packages, otherwise get it from the [go homepage](https://go.dev/)). Please use version 1.19 (at least 1.18 is required) as this version is used by the CI pipelines. You also need an editor/IDE, ideally with Go support. We recommend either [VS Code](https://code.visualstudio.com/) with the official Go extension or [GoLand](https://www.jetbrains.com/go/).
7+
The operator is developed in Go, as such you need a current Go toolkit (for Linux most distributions provide packages, otherwise get it from the [go homepage](https://go.dev/)). Please use version 1.22 as this version is used by the CI pipelines. You also need an editor/IDE, ideally with Go support. We recommend either [VS Code](https://code.visualstudio.com/) with the official Go extension or [GoLand](https://www.jetbrains.com/go/).
88

99
Additional tools you will need:
1010

docs/userguide/main.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ The namespace of the `OpensearchISMPolicy` must be the namespace the OpenSearch
12831283
The operator provides the OpensearchIndexTemplate and OpensearchComponentTemplate CRDs, which is used for managing index and component templates respectively.
12841284

12851285
The two CRD specifications attempts to be as close as possible to what the OpenSearch API expects, with some changes from snake_case to camelCase.
1286-
The fields that have been changed, is `index_patterns` to `indexPatterns` (OpensearchIndexTemplate only), `composed_of` to `composedOf` (OpensearchIndexTemplate only), `allow_auto_create` to `allowAutoCreate` (OpensearchComponentTemplate only), and `template.aliases.<alias>.is_write_index` to `template.aliases.<alias>.isWriteIndex`.
1286+
The fields that have been changed, is `index_patterns` to `indexPatterns` (OpensearchIndexTemplate only), `composed_of` to `composedOf` (OpensearchIndexTemplate only) and `template.aliases.<alias>.is_write_index` to `template.aliases.<alias>.isWriteIndex`.
12871287

12881288
The following example creates a component template for setting the number of shards and replicas, together with specifying a specific time format for documents:
12891289

@@ -1310,7 +1310,6 @@ spec:
13101310
value:
13111311
type: double
13121312
version: 1 # optional
1313-
allowAutoCreate: false # optional
13141313
_meta: # optional
13151314
description: example description
13161315
```

go.work

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
go 1.19
1+
go 1.22
22

33
use (
44
./opensearch-operator

0 commit comments

Comments
 (0)