# Default values for gitops-status-server
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

# Number of replicas for the deployment
replicaCount: 1

# API backend container configuration
api:
  image:
    # Use the gitops-status-api image (Python Flask API)
    # Build from: gitops-status-api/Dockerfile
    # Tag with: docker build -t gitops-status-api:latest gitops-status-api/
    # Can be from Harbor registry or built locally
    repository: gitops-status-api
    pullPolicy: IfNotPresent
    tag: "latest"

# Image pull secrets for private registries
imagePullSecrets: []

# Override the name of the chart
nameOverride: ""
fullnameOverride: ""

# Service configuration
service:
  # Service type - NodePort for external access, ClusterIP for internal-only
  type: ClusterIP
  # Port where the service will be exposed
  port: 5000
  # Target port on the container (API port)
  targetPort: 5000
  # NodePort (30000-32767) for external access when type is NodePort
  nodePort: null
  # Annotations to add to the service
  annotations: {}

# Resource limits and requests
resources:
  limits:
    cpu: 100m
    memory: 128Mi
  requests:
    cpu: 50m
    memory: 64Mi

# Node selector for pod assignment
nodeSelector: {}

# Tolerations for pod assignment
tolerations: []

# Affinity rules for pod assignment
affinity: {}

# Security context for the pod
podSecurityContext:
  runAsNonRoot: true
  runAsUser: 1000
  fsGroup: 1000

# Security context for the container
securityContext:
  allowPrivilegeEscalation: false
  capabilities:
    drop:
    - ALL
  readOnlyRootFilesystem: false

# Labels to add to all resources
labels: {}

# Annotations to add to all resources
annotations: {}

# Pod annotations
podAnnotations: {}

# Service account configuration
serviceAccount:
  # Specifies whether a service account should be created
  create: true
  # Annotations to add to the service account
  annotations: {}
  # The name of the service account to use.
  # If not set and create is true, a name is generated using the fullname template
  name: ""
