Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): add OpenSearch Operator Helm chart #513

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions opensearch/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: OpenSearch
---

An OpenSearch plugin that sets up an OpenSearch environment using the OpenSearch Operator to automate deployment, provisioning, management, and orchestration of OpenSearch clusters and dashboards.
It functions as the backend for logs gathered by collectors such as the OpenTelemetry collectors, enabling storage and visualization of logs for Greenhouse-onboarded Kubernetes clusters.

The main terminologies used in this document can be found in [core-concepts](https://cloudoperators.github.io/greenhouse/docs/getting-started/core-concepts).

## Overview

Components included in this Plugin:

- [Operator](https://github.com/opensearch-project/opensearch-k8s-operator)

## Architecture

TBD

## Note

It is the intention to add more configuration over time and contributions of your very own configuration is highly appreciated. If you discover bugs or want to add functionality to the plugin, feel free to create a pull request.

## Quick Start

TBD

### Prerequisites

TBD

### Configuration

TBD

### Examples

TBD
9 changes: 9 additions & 0 deletions opensearch/chart/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies:
- name: opensearch-operator
repository: https://opensearch-project.github.io/opensearch-k8s-operator/
version: 2.7.0
- name: opensearch-cluster
repository: https://opensearch-project.github.io/opensearch-k8s-operator/
version: 3.0.0
digest: sha256:90fbf8efd069b35ea52d4fd9babec479debcca1c199383a7f587f8720756743d
generated: "2024-11-27T15:48:06.046957+01:00"
23 changes: 23 additions & 0 deletions opensearch/chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors
# SPDX-License-Identifier: Apache-2.0

apiVersion: v2
name: opensearch-operator
version: 2.6.0
description: A Helm chart for the OpenSearch operator
type: application
maintainers:
- name: timojohlo
- name: kuckkuck
- name: joluc
home: https://github.com/sapcc/helm-charts/tree/master/system/opensearch-operator
sources:
- https://github.com/opensearch-project/opensearch-k8s-operator
appVersion: 2.6.0
dependencies:
- name: opensearch-operator
repository: https://opensearch-project.github.io/opensearch-k8s-operator/ # TODO: Move to -> oci://ghcr.io/cloudoperators/greenhouse-extensions/charts
version: 2.7.0
- name: opensearch-cluster
repository: https://opensearch-project.github.io/opensearch-k8s-operator/ # TODO: Move to -> oci://ghcr.io/cloudoperators/greenhouse-extensions/charts
version: 3.0.0
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors
# SPDX-License-Identifier: Apache-2.0

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: opensearchactiongroups.opensearch.opster.io
spec:
group: opensearch.opster.io
names:
kind: OpensearchActionGroup
listKind: OpensearchActionGroupList
plural: opensearchactiongroups
shortNames:
- opensearchactiongroup
singular: opensearchactiongroup
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
description: OpensearchActionGroup is the Schema for the opensearchactiongroups
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: OpensearchActionGroupSpec defines the desired state of OpensearchActionGroup
properties:
allowedActions:
items:
type: string
type: array
description:
type: string
opensearchCluster:
description: |-
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace.
properties:
name:
description: |-
Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?
type: string
type: object
x-kubernetes-map-type: atomic
type:
type: string
required:
- allowedActions
- opensearchCluster
type: object
status:
description: OpensearchActionGroupStatus defines the observed state of
OpensearchActionGroup
properties:
existingActionGroup:
type: boolean
managedCluster:
description: |-
UID is a type that holds unique ID values, including UUIDs. Because we
don't ONLY use UUIDs, this is an alias to string. Being a type captures
intent and helps make sure that UIDs and names do not get conflated.
type: string
reason:
type: string
state:
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
Loading