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

Added Elasticsearch Operator #29

Merged
merged 4 commits into from
Dec 5, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
project: cluster-config
source:
path: patch-me-see-overlays
repoURL: https://github.com/redhat-composer-ai/cluster-gitops.git # Update me on fork
repoURL: https://github.com/redhat-composer-ai/cluster-gitops.git # Update me on fork
targetRevision: main
syncPolicy:
automated:
Expand Down
2 changes: 1 addition & 1 deletion components/argocd/apps/base/tenants-applicationset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
spec:
generators:
- git:
repoURL: 'https://github.com/redhat-ai-services/ai-accelerator.git' # Update me on fork
repoURL: 'https://github.com/redhat-composer-ai/cluster-gitops.git' # Update me on fork
revision: main
directories:
- path: tenants/*/*/overlays/patch-me-see-overlay
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ spec:
values:
name: authorino-operator
path: components/operators/authorino-operator/operator/overlays/managed-services
- cluster: local
url: https://kubernetes.default.svc
values:
name: elasticsearch-operator
path: components/operators/elasticsearch/operator/overlays/stable
- cluster: local
url: https://kubernetes.default.svc
values:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ spec:
values:
name: authorino-operator
path: components/operators/authorino-operator/operator/overlays/managed-services
- cluster: local
url: https://kubernetes.default.svc
values:
name: elasticsearch-operator
path: components/operators/elasticsearch/operator/overlays/stable
- cluster: local
url: https://kubernetes.default.svc
values:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: elasticsearch-operator

resources:
- namespace.yaml
- operator-group.yaml
- subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
name: elasticsearch-operator
annotations:
openshift.io/node-selector: ""
labels:
openshift.io/cluster-monitoring: "true"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: elasticsearch-eck-operator-certified
namespace: elasticsearch-operator
spec: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: elasticsearch-eck-operator-certified
namespace: elasticsearch-operator
spec:
channel: patch-me-see-overlays-dir
installPlanApproval: Automatic
name: elasticsearch-eck-operator-certified
source: certified-operators
sourceNamespace: openshift-marketplace
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

patches:
- target:
kind: Subscription
name: elasticsearch-eck-operator-certified
path: patch-channel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- op: replace
path: /spec/channel
value: stable
2 changes: 1 addition & 1 deletion scripts/reset_git.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ source "$(dirname "$0")/functions.sh"
# Reset Git Values
echo "Resetting Git Values"
patch_file "components/argocd/apps/base/cluster-config-app-of-apps.yaml" "main" ".spec.source.targetRevision"
patch_file "components/argocd/apps/base/cluster-config-app-of-apps.yaml" "https://github.com/redhat-ai-services/ai-accelerator.git" ".spec.source.repoURL"
patch_file "components/argocd/apps/base/cluster-config-app-of-apps.yaml" "https://github.com/redhat-composer-ai/cluster-gitops.git" ".spec.source.repoURL"

echo -e "\e[32mValues reset locally. Please commit and push changes to the repository.\e[0m"
2 changes: 1 addition & 1 deletion scripts/validate_git_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ do
esac
done

EXPECTED_REPO=${EXPECTED_REPO:-"https://github.com/redhat-ai-services/ai-accelerator.git"}
EXPECTED_REPO=${EXPECTED_REPO:-"https://github.com/redhat-composer-ai/cluster-gitops.git"}
EXPECTED_BRANCH=${EXPECTED_BRANCH:-"main"}

DEBUG=${DEBUG:-false}
Expand Down
Loading