# 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: gitlab-master.nvidia.com:5005/aire/microservices/compoundai/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:
    # todo: only use dns name
      endpoint: http://dynamo-server
      clusterName: default

    yataiSystem:
    # can we just infer this, or change scheme to use default until overridden
      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'
      # Password will use global.NGC_API_KEY by default
      # password: ""
      passwordExistingSecretName: 'nvcrimagepullsecret'
      # passwordExistingSecretKey: ''
      secure: true
      bentoRepositoryName: yatai-bentos

    bentoImageBuildEngine: buildkit
    addNamespacePrefixToImageName: false

    estargz:
      enabled: false

    kaniko:
      cacheRepo: ''
      snapshotMode: ''

dynamo-api-server:
  enabled: true
  namespaceRestriction:
    enabled: true
    targetNamespace: ${NAMESPACE}
  istio:
    host:
      ${NAMESPACE}.dev.aire.nvidia.com
  dynamo:
    # need to be set to deployment-management
    env:
      resource_scope: "user"
  image:
    repository: gitlab-master.nvidia.com:5005/aire/microservices/compoundai/dynamo-api-server
    # temporarily force to use old commit for api-server
    tag: fccbb8777fbd2ac11dad4871c8a8ba6884525e07
    #tag: ${CI_COMMIT_SHA}
    pullPolicy: IfNotPresent
  storeImage:
    repository: gitlab-master.nvidia.com:5005/aire/microservices/compoundai/dynamo-api-store
    tag: ${CI_COMMIT_SHA}
    pullPolicy: IfNotPresent
  imagePullSecrets:
    - name: nvcrimagepullsecret
    - name: gitlab-imagepull
  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

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