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

Add eck-operator with stable overlay #256

Merged
merged 2 commits into from
Nov 3, 2023
Merged
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
4 changes: 4 additions & 0 deletions .wordlist-md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ ACK
ACM
ACS
APIs
APM
ARN
AdoptedResource
AmazonS
Expand All @@ -24,6 +25,7 @@ DevWorkspace
DevWorkspaces
Devfile
DotNET
ECK
Eventing
FullAccess
GPUs
Expand All @@ -37,6 +39,7 @@ IgnoreExtraneous
Jaeger
Jenkins
Kafka
Kibana
KieApp
Koku
KokuMetricsConfig
Expand All @@ -45,6 +48,7 @@ Kyverno
LDAP
LVM
Lifecycle
Logstash
MTA
MachineConfig
MultiClusterHub
Expand Down
30 changes: 30 additions & 0 deletions eck-operator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Elastic Cloud on Kubernetes Operator

Install Elastic Cloud on Kubernetes (ECK) Operator to support the setup and management of Elasticsearch, Kibana, APM Server, Enterprise Search, Beats, Elastic Agent, Elastic Maps Server, and Logstash.

The current *overlays* available are for the following channels:

* [stable](overlays/stable)

## Usage

If you have cloned the `gitops-catalog` repository, you can install the ECK operator based on the overlay of your choice by running from the root (`gitops-catalog`) directory.

```
oc apply -k eck-operator/overlays/<channel>
```

Or, without cloning:

```
oc apply -k https://github.com/redhat-cop/gitops-catalog/eck-operator/overlays/<channel>
```

As part of a different overlay in your own GitOps repo:

```
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/redhat-cop/gitops-catalog/eck-operator/overlays/<channel>?ref=main
```
7 changes: 7 additions & 0 deletions eck-operator/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- namespace.yaml
- operatorgroup.yaml
- subscription.yaml
4 changes: 4 additions & 0 deletions eck-operator/base/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: elastic-system
8 changes: 8 additions & 0 deletions eck-operator/base/operatorgroup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: elastic-system
namespace: elastic-system
spec:
targetNamespaces:
- elastic-system
13 changes: 13 additions & 0 deletions eck-operator/base/subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
labels:
operators.coreos.com/elasticsearch-eck-operator-certified.elastic: ""
name: elasticsearch-eck-operator-certified
namespace: elastic-system
spec:
channel: patch_me_in_overlays
installPlanApproval: Automatic
name: elasticsearch-eck-operator-certified
source: certified-operators
sourceNamespace: openshift-marketplace
15 changes: 15 additions & 0 deletions eck-operator/overlays/stable/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

patches:
- patch: |-
- op: replace
path: /spec/channel
value: 'stable'
target:
kind: Subscription
name: elasticsearch-eck-operator-certified
namespace: elastic-system
Loading