Skip to content

Commit

Permalink
Code Refactor to update the API's to opensearch.org (removing `opst…
Browse files Browse the repository at this point in the history
…er` reference) (#698)

### Description
Please note this PR is for refactoring the code to update the packages
and remove Opster reference. Once this is merged I will raise a new PR
to update the GitHub workflows and release process to do a minimal
release.

On my local I have tested with `make install ; make run` and was able to
deploy the operator.

### Issues Resolved
Part of
#674

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
  • Loading branch information
prudhvigodithi authored Jan 17, 2024
1 parent f88d40d commit 1c72422
Show file tree
Hide file tree
Showing 143 changed files with 1,304 additions and 1,059 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prepare-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Prepare helm chart
run: |
# Copy CRDs to chart to make sure they are identical
cp opensearch-operator/config/crd/bases/opensearch.opster.io_*.yaml charts/opensearch-operator/files/
cp opensearch-operator/config/crd/bases/opensearch.org_*.yaml charts/opensearch-operator/files/
# Set versions in helm chart
sed -i -e 's/^appVersion:.*/appVersion: '$RELEASE_VERSION'/' charts/opensearch-operator/Chart.yaml
sed -i -e 's/^version:.*/version: '$RELEASE_VERSION'/' charts/opensearch-operator/Chart.yaml
Expand All @@ -50,7 +50,7 @@ jobs:
env:
RELEASE_VERSION: ${{ inputs.version }}

- name: Build and Push docker image
- name: Build and Push docker operator image
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ You may type this line on your own when writing your commit messages. However, i

## Review Process

We deeply appreciate everyone who takes the time to make a contribution. We will review all contributions as quickly as possible. As a reminder, [opening an issue](https://github.com/Opster/opensearch-k8s-operator) discussing your change before you make it is the best way to smooth the PR process. This will prevent a rejection because someone else is already working on the problem, or because the solution is incompatible with the architectural direction.
We deeply appreciate everyone who takes the time to make a contribution. We will review all contributions as quickly as possible. As a reminder, [opening an issue](https://github.com/opensearch-project/opensearch-k8s-operator) discussing your change before you make it is the best way to smooth the PR process. This will prevent a rejection because someone else is already working on the problem, or because the solution is incompatible with the architectural direction.

During the PR process, expect that there will be some back-and-forth. Please try to respond to comments in a timely fashion, and if you don't wish to continue with the PR, let us know. If a PR takes too many iterations for its complexity or size, we may reject it. Additionally, if you stop responding we may close the PR as abandoned. In either case, if you feel this was done in error, please add a comment on the PR.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![build](https://github.com/opster/opensearch-k8s-operator/actions/workflows/docker-build.yaml/badge.svg) ![test](https://github.com/opster/opensearch-k8s-operator/actions/workflows/testing.yaml/badge.svg) ![release](https://img.shields.io/github/v/release/opster/opensearch-k8s-operator) [![Golang Lint](https://github.com/Opster/opensearch-k8s-operator/actions/workflows/linting.yaml/badge.svg)](https://github.com/Opster/opensearch-k8s-operator/actions/workflows/linting.yaml) [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/opensearch-operator)](https://artifacthub.io/packages/search?repo=opensearch-operator)
![build](https://github.com/opensearch-project/opensearch-k8s-operator/actions/workflows/docker-build.yaml/badge.svg) ![test](https://github.com/opster/opensearch-k8s-operator/actions/workflows/testing.yaml/badge.svg) ![release](https://img.shields.io/github/v/release/opster/opensearch-k8s-operator) [![Golang Lint](https://github.com/Opster/opensearch-k8s-operator/actions/workflows/linting.yaml/badge.svg)](https://github.com/Opster/opensearch-k8s-operator/actions/workflows/linting.yaml) [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/opensearch-operator)](https://artifacthub.io/packages/search?repo=opensearch-operator)

# OpenSearch Kubernetes Operator

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if eq .Values.opensearchCluster.enabled true }}
apiVersion: opensearch.opster.io/v1
apiVersion: opensearch.org/v1
kind: OpenSearchCluster
metadata:
name: {{ .Values.clusterName | default .Release.Name}}
Expand Down
8 changes: 4 additions & 4 deletions charts/opensearch-operator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
### Security

[Unreleased]: https://github.com/Opster/opensearch-k8s-operator/compare/opensearch-operator-2.0.0...HEAD
[2.0.0]: https://github.com/Opster/opensearch-k8s-operator/compare/opensearch-operator-1.0.3...opensearch-operator-2.0.0
[1.0.3]: https://github.com/Opster/opensearch-k8s-operator/compare/opensearch-operator-1.0.2...opensearch-operator-1.0.3
[1.0.2]: https://github.com/Opster/opensearch-k8s-operator/compare/opensearch-operator-1.0.1...opensearch-operator-1.0.2
[Unreleased]: https://github.com/opensearch-project/opensearch-k8s-operator/compare/opensearch-operator-2.0.0...HEAD
[2.0.0]: https://github.com/opensearch-project/opensearch-k8s-operator/compare/opensearch-operator-1.0.3...opensearch-operator-2.0.0
[1.0.3]: https://github.com/opensearch-project/opensearch-k8s-operator/compare/opensearch-operator-1.0.2...opensearch-operator-1.0.3
[1.0.2]: https://github.com/opensearch-project/opensearch-k8s-operator/compare/opensearch-operator-1.0.1...opensearch-operator-1.0.2
6 changes: 3 additions & 3 deletions charts/opensearch-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# OpenSearch-k8s-operator

The Kubernetes [OpenSearch Operator](https://github.com/Opster/opensearch-k8s-operator) is used for automating the deployment, provisioning, management, and orchestration of OpenSearch clusters and OpenSearch dashboards.
The Kubernetes [OpenSearch Operator](https://github.com/opensearch-project/opensearch-k8s-operator) is used for automating the deployment, provisioning, management, and orchestration of OpenSearch clusters and OpenSearch dashboards.

## Getting started

The Operator can be easily installed using helm on any CNCF-certified Kubernetes cluster. Please refer to the [User Guide](https://github.com/Opster/opensearch-k8s-operator/blob/main/docs/userguide/main.md) for more information.
The Operator can be easily installed using helm on any CNCF-certified Kubernetes cluster. Please refer to the [User Guide](https://github.com/opensearch-project/opensearch-k8s-operator/blob/main/docs/userguide/main.md) for more information.

### Installation Using Helm

#### Get Repo Info
```
helm repo add opensearch-operator https://opster.github.io/opensearch-k8s-operator/
helm repo add opensearch-operator helm repo add opensearch-charts https://opensearch-project.github.io/opensearch-k8s-operator
helm repo update
```
#### Install Chart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: opensearchactiongroups.opensearch.opster.io
name: opensearchactiongroups.opensearch.org
spec:
group: opensearch.opster.io
group: opensearch.org
names:
kind: OpensearchActionGroup
listKind: OpensearchActionGroupList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: opensearchclusters.opensearch.opster.io
name: opensearchclusters.opensearch.org
spec:
group: opensearch.opster.io
group: opensearch.org
names:
kind: OpenSearchCluster
listKind: OpenSearchClusterList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: opensearchcomponenttemplates.opensearch.opster.io
name: opensearchcomponenttemplates.opensearch.org
spec:
group: opensearch.opster.io
group: opensearch.org
names:
kind: OpensearchComponentTemplate
listKind: OpensearchComponentTemplateList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: opensearchindextemplates.opensearch.opster.io
name: opensearchindextemplates.opensearch.org
spec:
group: opensearch.opster.io
group: opensearch.org
names:
kind: OpensearchIndexTemplate
listKind: OpensearchIndexTemplateList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: opensearchismpolicies.opensearch.opster.io
name: opensearchismpolicies.opensearch.org
spec:
group: opensearch.opster.io
group: opensearch.org
names:
kind: OpenSearchISMPolicy
listKind: OpenSearchISMPolicyList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: opensearchroles.opensearch.opster.io
name: opensearchroles.opensearch.org
spec:
group: opensearch.opster.io
group: opensearch.org
names:
kind: OpensearchRole
listKind: OpensearchRoleList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: opensearchtenants.opensearch.opster.io
name: opensearchtenants.opensearch.org
spec:
group: opensearch.opster.io
group: opensearch.org
names:
kind: OpensearchTenant
listKind: OpensearchTenantList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: opensearchuserrolebindings.opensearch.opster.io
name: opensearchuserrolebindings.opensearch.org
spec:
group: opensearch.opster.io
group: opensearch.org
names:
kind: OpensearchUserRoleBinding
listKind: OpensearchUserRoleBindingList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: opensearchusers.opensearch.opster.io
name: opensearchusers.opensearch.org
spec:
group: opensearch.opster.io
group: opensearch.org
names:
kind: OpensearchUser
listKind: OpensearchUserList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data:
port: 9443
leaderElection:
leaderElect: true
resourceName: a867c7dc.opensearch.opster.io
resourceName: a867c7dc.opensearch.org
kind: ConfigMap
metadata:
name: {{ include "opensearch-operator.fullname" . }}-manager-config
Loading

0 comments on commit 1c72422

Please sign in to comment.