# Helm values for an in-cluster AlmaForge agent (Kubernetes, App, and Database services).
# Issue a join token on the AlmaForge control plane first:
#   alma create token --services=kubernetes --format=text
env:
  ALMA_PROXY: 'almaforge.example.com:443'
  # Pass credentials via env, or comment out and use tokenSecret below for GitOps:
  ALMA_CLIENT_ID: '[client-id]'
  ALMA_CLIENT_SECRET: '[client-secret]'

# For GitOps (Vault, ExternalSecrets, SealedSecrets), load credentials from a Secret:
# tokenSecret:
#   name: almaforge-agent-token
#   clientIdKey: ALMA_CLIENT_ID
#   clientSecretKey: ALMA_CLIENT_SECRET

# Registers this Kubernetes cluster as a target in AlmaForge.
clusterName: prod-cluster
labels:
  env: prod

# RBAC configuration for the agent and impersonated users:
rbac:
  # User access bindings deployed alongside the agent to grant permissions
  # to impersonated AlmaForge groups or users:
  bindings:
    - name: almaforge-developers
      roleRef:
        kind: ClusterRole
        name: view
      subjects:
        - kind: Group
          name: developers
