# Development environment values
# Use with: helm install flow ./helm/flow -f ./helm/flow/values-dev.yaml
#
# PREREQUISITES:
# Deploy RabbitMQ and PostgreSQL separately before installing this chart.
# Example using Helm:
#   helm install rabbitmq oci://registry-1.docker.io/bitnamicharts/rabbitmq -n flow
#   helm install postgresql oci://registry-1.docker.io/bitnamicharts/postgresql -n flow
#
# Or use your own deployments/operators.
#
# HARBOR CREDENTIALS:
# Pass Harbor credentials during install:
#   helm install flow ./helm/flow -f values-dev.yaml \
#     --set global.imageCredentials.enabled=true \
#     --set global.imageCredentials.username=$HARBOR_USER \
#     --set global.imageCredentials.password=$HARBOR_PASSWORD

global:
  imageRegistry: "cr.kn.entit.eu"
  
  # Harbor registry credentials - creates dockerconfigjson secret automatically
  # Harbor requires authentication even for public repositories
  # Enable and set credentials via --set flags during install:
  #   --set global.imageCredentials.enabled=true
  #   --set global.imageCredentials.username=$HARBOR_USER
  #   --set global.imageCredentials.password=$HARBOR_PASSWORD
  imageCredentials:
    enabled: false  # Set to true and provide credentials during install
    username: ""
    password: ""
  
  azureAd:
    enabled: false  # Disable auth for local development
  
  database:
    provider: "Postgres"
    postgres:
      host: "postgresql"  # Update to match your PostgreSQL service name
      database: "flow"
      username: "flow"
      password: "devpassword123"
      # Or use existing secret:
      # existingSecret: "postgresql-credentials"
      # existingSecretKey: "password"

  rabbitmq:
    host: "rabbitmq"  # Update to match your RabbitMQ service name
    username: "flow"
    password: "devpassword123"
    # Or use existing secret:
    # existingSecret: "rabbitmq-credentials"
    # existingSecretKey: "password"

# Core services - minimal replicas for dev
workflowEngine:
  replicaCount: 1
  resources:
    limits:
      cpu: 250m
      memory: 256Mi
    requests:
      cpu: 50m
      memory: 128Mi

aiAssistant:
  replicaCount: 1

activityRegistry:
  replicaCount: 1

definitionStore:
  replicaCount: 1

workflowLogging:
  replicaCount: 1

connectionStore:
  replicaCount: 1

tenantRegistry:
  replicaCount: 1

frontendWeb:
  replicaCount: 1
  ingress:
    enabled: true
    hosts:
      - host: flow.local
        paths:
          - path: /
            pathType: Prefix

# Enable only essential activities for dev
httpRequestActivity:
  enabled: true
  replicaCount: 1

sqlActivity:
  enabled: true
  replicaCount: 1

# Disable non-essential activities
redisActivity:
  enabled: false

blobStorageActivity:
  enabled: false

queueActivity:
  enabled: false

cosmosDbActivity:
  enabled: false

mongoDbActivity:
  enabled: false

emailActivity:
  enabled: false

slackActivity:
  enabled: false

teamsActivity:
  enabled: false

twilioActivity:
  enabled: false

ftpActivity:
  enabled: false

graphqlActivity:
  enabled: false

soapActivity:
  enabled: false

pdfActivity:
  enabled: false

csvActivity:
  enabled: false

excelActivity:
  enabled: false

oauthActivity:
  enabled: false

keyVaultActivity:
  enabled: false

eventHubActivity:
  enabled: false

eventGridActivity:
  enabled: false

awsS3Activity:
  enabled: false

awsSqsActivity:
  enabled: false

# External infrastructure - not deployed by this chart
rabbitmq:
  enabled: false

postgresql:
  enabled: false

redis:
  enabled: false

# Relaxed security for development
securityContext:
  runAsNonRoot: false
  readOnlyRootFilesystem: false
