add lightspeed to internal cluster

This commit is contained in:
2025-07-27 18:36:13 -05:00
parent b09f8e1ad5
commit 6feea89ec1
9 changed files with 145 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: credentials # This is the secret name
namespace: openshift-lightspeed
annotations:
argocd.argoproj.io/sync-wave: "4"
spec:
secretStoreRef:
kind: ClusterSecretStore
name: doppler-cluster
refreshInterval: "1h"
data:
- secretKey: apitoken
remoteRef:
key: OPENAI_TOKEN

View File

@@ -0,0 +1,15 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonAnnotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
resources:
# Operator deployment
- namespace.yaml
- operatorgroup.yaml
- subscription.yaml
- externalsecrets.yaml
# Deploy cluster resources
- olsconfig.yaml

View File

@@ -0,0 +1,15 @@
---
apiVersion: v1
kind: Namespace
metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
labels:
kubernetes.io/metadata.name: openshift-lightspeed
name: openshift-lightspeed
argocd.argoproj.io/managed-by: openshift-gitops-operator
openshift.io/cluster-monitoring: 'true'
name: openshift-lightspeed
spec:
finalizers:
- kubernetes

View File

@@ -0,0 +1,20 @@
---
apiVersion: ols.openshift.io/v1alpha1
kind: OLSConfig
metadata:
name: cluster
annotations:
argocd.argoproj.io/sync-wave: "5"
spec:
llm:
providers:
- name: myOpenai
type: openai
credentialsSecretRef:
name: credentials
url: https://api.openai.com/v1
models:
- name: gpt-3.5-turbo
ols:
defaultModel: gpt-3.5-turbo
defaultProvider: myOpenai

View File

@@ -0,0 +1,8 @@
---
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: openshift-lightspeed-operator
namespace: openshift-lightspeed
annotations:
argocd.argoproj.io/sync-wave: "2"

View File

@@ -0,0 +1,14 @@
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: lightspeed-operator
namespace: openshift-lightspeed
annotations:
argocd.argoproj.io/sync-wave: "3"
spec:
channel: stable
installPlanApproval: Automatic #Manual
name: lightspeed-operator
source: redhat-operators
sourceNamespace: openshift-marketplace

View File

@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonAnnotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
resources:
- ../../base

View File

@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonAnnotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
resources:
- ../../base