# nameOverride -- Override the chart name used in names and labels.
nameOverride: ""
# fullnameOverride -- Override the workload name. Names are limited to 43 characters to leave room for resource suffixes.
fullnameOverride: ""
# image.repository -- Resource-pool-manager image repository, including registry.

# image.tag -- Required published image tag. Independent of this chart's appVersion; update explicitly when releasing a new manager image.

# image.pullPolicy -- Resource-pool-manager image pull policy.
image:
  repository: ghcr.io/dynamia-ai/hami-enterprise
  tag: "v2.10.0-r1"
  pullPolicy: IfNotPresent
# imagePullSecrets -- Registry Secret names used by the manager and certificate Jobs.
imagePullSecrets: [] # @schema item:string
# replicas -- Number of manager replicas. Use leader election when running multiple replicas.
replicas: 1 # @schema minimum:1
# leaderElect -- Elect a leader for inventory and status reconcilers.
leaderElect: true
# metricsBindAddress -- Metrics server listen address.
metricsBindAddress: ":8080"
# healthProbeBindAddress -- Health server listen address.
healthProbeBindAddress: ":8081"
# webhookPort -- HTTPS port in the manager container.
webhookPort: 9443
# timeoutSeconds -- Admission webhook timeout in seconds.
timeoutSeconds: 10 # @schema minimum:1;maximum:30

# hami.schedulerName -- Scheduler name used by the existing HAMi installation. The scheduler must use HAMi extender admission and scheduling, not DRA.

# hami.ascendEnabled -- Include Ascend profiles from the scheduler device ConfigMap in resource-pool admission.

# hami.existingConfigMap -- Required name of the scheduler device ConfigMap in this release namespace. Helm reads data.device-config.yaml from the cluster and the manager mounts the same ConfigMap. Inline configuration and overrides are not supported. Upgrade the manager after scheduler device configuration changes.
hami: # @schema additionalProperties:false
  schedulerName: hami-scheduler
  ascendEnabled: false
  existingConfigMap: ""

# config.create -- Initialize the runtime ConfigMap if absent. It is retained outside Helm ownership for external policy updates. For render-and-apply GitOps, precreate the ConfigMap and set this to false.

# config.name -- Runtime ConfigMap name; defaults to <workload name>-config. With config.create=false it must already exist in the manager namespace.

# config.poolSchedulerPolicy -- Initial pool selection policy. Later changes belong in the runtime ConfigMap, not Helm values.
config:
  create: true
  name: "" # @schema maxLength:253;pattern:^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  poolSchedulerPolicy: binpack # @schema enum:[binpack, spread]
# certManager.enabled -- Use cert-manager for serving certificates and CA injection. Otherwise the chart's own certgen Jobs create the Secret and patch both webhook configurations.
certManager:
  enabled: false
# patch.enabled -- Enable certificate hook Jobs when certManager.enabled=false. One certificate mechanism must be enabled.

# patch.image.repository -- Certificate generator image repository, including registry.

# patch.image.tag -- Certificate generator image tag.

# patch.image.pullPolicy -- Certificate generator image pull policy.

# patch.runAsUser -- Non-root UID for certificate Jobs.

# patch.priorityClassName -- Priority class for certificate Jobs.

# patch.podAnnotations -- Additional annotations for certificate Job Pods.

# patch.nodeSelector -- Node selector for certificate Jobs.

# patch.tolerations -- Tolerations for certificate Jobs.
patch:
  enabled: true
  image:
    repository: registry.k8s.io/ingress-nginx/kube-webhook-certgen
    tag: v1.6.9
    pullPolicy: IfNotPresent
  runAsUser: 65532
  priorityClassName: ""
  podAnnotations: {}
  nodeSelector: {}
  tolerations: []
# resources -- Resource requests and limits for the manager.
resources: {}
# podAnnotations -- Additional annotations for manager Pods.
podAnnotations: {}
# nodeSelector -- Node selector for the manager.
nodeSelector: {}
# tolerations -- Tolerations for the manager.
tolerations: []
