# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 {{- include "openshell.validateValues" . }} {{- if eq (include "openshell.workloadKind" .) "statefulset" }} apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "openshell.fullname" . }} labels: {{- include "openshell.labels" . | nindent 4 }} spec: serviceName: {{ include "openshell.peerServiceName" . }} {{- if ne (include "openshell.autoscalingEnabled" .) "true" }} replicas: {{ .Values.replicaCount }} {{- end }} selector: matchLabels: {{- include "openshell.selectorLabels" . | nindent 6 }} template: {{- include "openshell.gatewayPodTemplate" . | nindent 4 }} volumeClaimTemplates: - metadata: name: openshell-data spec: accessModes: ["ReadWriteOnce"] {{- with .Values.server.dataStorageClass }} storageClassName: {{ . | quote }} {{- end }} resources: requests: storage: {{ .Values.server.dataStorageSize | default "1Gi" | quote }} {{- end }}