Install ToolHive operator via ArgoCD
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: toolhive
|
||||
namespace: argocd
|
||||
spec:
|
||||
goTemplate: true
|
||||
goTemplateOptions: ["missingkey=error"]
|
||||
generators:
|
||||
- list:
|
||||
elements:
|
||||
- environment: production
|
||||
namespace: toolhive-system
|
||||
overlay: production
|
||||
chartVersion: 0.28.3
|
||||
template:
|
||||
metadata:
|
||||
name: 'toolhive-{{ .environment }}'
|
||||
labels:
|
||||
app.kubernetes.io/managed-by: argocd
|
||||
app.kubernetes.io/name: toolhive
|
||||
spec:
|
||||
project: default
|
||||
sources:
|
||||
# 1. ToolHive CRDs (MCPServer, MCPRegistry, ...). No values needed.
|
||||
- repoURL: ghcr.io/stacklok/toolhive
|
||||
chart: toolhive-operator-crds
|
||||
targetRevision: '{{ .chartVersion }}'
|
||||
# 2. ToolHive operator, values pulled from this repo via $values.
|
||||
- repoURL: ghcr.io/stacklok/toolhive
|
||||
chart: toolhive-operator
|
||||
targetRevision: '{{ .chartVersion }}'
|
||||
helm:
|
||||
releaseName: toolhive-operator
|
||||
valueFiles:
|
||||
- $values/manifest/overlays/{{ .overlay }}/helm-values/values.yaml
|
||||
# 3. Values source ref for the operator chart above.
|
||||
- repoURL: http://gitea-ha-http.apps:3000/olb42/toolhive.git
|
||||
targetRevision: main
|
||||
ref: values
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: '{{ .namespace }}'
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
# CRD schemas are large; SSA avoids the last-applied-config annotation limit.
|
||||
- ServerSideApply=true
|
||||
@@ -0,0 +1,3 @@
|
||||
enabled: false
|
||||
target_namespace: argocd
|
||||
apply_from_branch: main
|
||||
Reference in New Issue
Block a user