# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
existingImagePullSecret: nvcrimagepullsecret

# Global values used across charts
global:
  NGC_API_KEY: ${NGC_TOKEN}

dynamo-operator:
  enabled: true
  natsAddr: "nats://${RELEASE_NAME}-nats:4222"
  etcdAddr: "${RELEASE_NAME}-etcd:2379"
  namespaceRestriction:
    enabled: true
    targetNamespace: ${NAMESPACE}
  controllerManager:
    manager:
      image:
        repository: ${CI_REGISTRY_IMAGE}/dynamo-operator
        tag: ${CI_COMMIT_SHA}
      args:
        - --health-probe-bind-address=:8081
        - --metrics-bind-address=127.0.0.1:8080

  dynamo:
    dynamoIngressSuffix: ${DYNAMO_INGRESS_SUFFIX}
    yatai:
      endpoint: http://dynamo-store
      clusterName: default

    yataiSystem:
      namespace: ""

    internalImages:
      bentoDownloader: quay.io/bentoml/bento-downloader:0.0.5
      kaniko: quay.io/bentoml/kaniko:debug
      buildkit: quay.io/bentoml/buildkit:master
      buildkitRootless: quay.io/bentoml/buildkit:master-rootless
      metricsTransformer: quay.io/bentoml/yatai-bento-metrics-transformer:0.0.4
      debugger: quay.io/bentoml/bento-debugger:0.0.8
      monitorExporter: quay.io/bentoml/bentoml-monitor-exporter:0.0.3
      proxy: quay.io/bentoml/bentoml-proxy:0.0.1

    disableAutomateBentoImageBuilder: false
    enableRestrictedSecurityContext: false
    disableYataiComponentRegistration: false

    dockerRegistry:
      server: 'nvcr.io/nvidian/nim-llm-dev'
      inClusterServer: ''
      username: '$oauthtoken'
      passwordExistingSecretName: 'nvcrimagepullsecret'
      secure: true
      bentoRepositoryName: yatai-bentos

    bentoImageBuildEngine: buildkit
    addNamespacePrefixToImageName: false

    estargz:
      enabled: false

    kaniko:
      cacheRepo: ''
      snapshotMode: ''

dynamo-api-store:
  enabled: true
  namespaceRestriction:
    enabled: true
    targetNamespace: ${NAMESPACE}
  istio:
    host: ${NAMESPACE}.dev.aire.nvidia.com
  dynamo:
    env:
      resource_scope: "user"
  image:
    repository: ${CI_REGISTRY_IMAGE}/dynamo-api-store
    tag: ${CI_COMMIT_SHA}
    pullPolicy: IfNotPresent
  imagePullSecrets:
    - name: nvcrimagepullsecret
    - name: docker-imagepullsecret
    - name: gitlab-imagepull
  ingress:
    enabled: true
    className: nginx
    hosts:
      - host: ${NAMESPACE}.dev.aire.nvidia.com
        paths:
          - path: /
            pathType: Prefix
  postgresql:
    primary:
      persistence:
        enabled: false
  minio:
    persistence:
      enabled: true
      size: 5Gi
      storageClass: "local-path"
    apiIngress:
      enabled: false
      ingressClassName: nginx
      hostname: minio.example.com
      pathType: Prefix

etcd:
  enabled: true
  persistence:
    enabled: true
    storageClass: "local-path"
    size: 1Gi
  preUpgrade:
    enabled: false

nats:
  enabled: true
  config:
    jetstream:
      enabled: true
      fileStore:
        pvc:
          size: 1Gi
          storageClassName: "local-path"