feat: Add slurm-operator

This commit is contained in:
2025-09-26 14:02:42 +02:00
parent ecfa1ddc7e
commit 7dd73818d6
6 changed files with 136 additions and 0 deletions
@@ -0,0 +1,3 @@
slurm_operator:
enabled: true
autosync: false
+3
View File
@@ -0,0 +1,3 @@
slurm_operator:
enabled: false
autosync: false
@@ -0,0 +1,18 @@
{{- if .Values.clusterConfig.cilium.enabled }}
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-api-server
namespace: cnpg
spec:
egress:
- toEntities:
- kube-apiserver
toPorts:
- ports:
- port: "6443"
protocol: TCP
endpointSelector:
matchLabels:
app.kubernetes.io/instance: postgres-operator
{{- end }}
@@ -0,0 +1,66 @@
{{- if .Values.clusterConfig.argo.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: slurm-operator
namespace: argocd
spec:
destination:
namespace: slinky
server: 'https://kubernetes.default.svc'
sources:
- repoURL: {{ .Values.clusterConfig.manifests }}
targetRevision: HEAD
path: helmfile.d
plugin:
name: helmfile-cmp
env:
- name: CLUSTER_NAME
value: {{ .Values.clusterConfig.cluster }}
- name: HELMFILE_ENVIRONMENT
value: default
- name: HELMFILE_FILE_PATH
value: slurm-operator.yaml.gotmpl
project: sys
syncPolicy:
managedNamespaceMetadata:
labels:
component: sys
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
- ServerSideApply=true
{{- if .Values.slurm_operator.autosync }}
automated:
prune: true
# selfHeal: false
{{- end }}
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: slurm-crd
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-1"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: slinky
server: 'https://kubernetes.default.svc'
source:
repoURL: 'https://ghcr.io/slinkyproject/charts/slurm-operator-crds'
targetRevision: '14.0.0'
chart: slurm-operator-crds
project: sys
syncPolicy:
managedNamespaceMetadata:
labels:
component: sys
automated: {}
syncOptions:
- ServerSideApply=true
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
{{- end }}
@@ -0,0 +1,2 @@
crds:
enabled: false