apiVersion: v1
kind: ConfigMap
metadata:
  name: pipeline-config
  namespace: {{ .Release.Namespace }}
  labels:
    app.kubernetes.io/name: {{ .Values.labels.app.name }}
    app.kubernetes.io/component: config
data:
  # Container Registry Configuration
  REGISTRY_URL: "{{ .Values.global.registry.url }}"

  # Git Configuration
  GIT_BRANCH: "{{ .Values.global.git.branch }}"
  GIT_USER_NAME: "{{ .Values.global.git.userName }}"
  GIT_USER_EMAIL: "{{ .Values.global.git.userEmail }}"

  # Build Configuration
  BUILD_CACHE_TTL: "{{ .Values.pipeline.build.cacheTTL }}"
  BUILD_VERBOSITY: "{{ .Values.pipeline.build.verbosity }}"

  # Test Configuration
  SKIP_TESTS: "{{ .Values.pipeline.test.skipTests }}"
  SKIP_LINT: "{{ .Values.pipeline.test.skipLint }}"

  # Deployment Configuration
  DEPLOY_NAMESPACE: "{{ .Values.pipeline.deployment.namespace }}"
  FLUX_NAMESPACE: "{{ .Values.pipeline.deployment.fluxNamespace }}"

  # Workspace Configuration
  WORKSPACE_SIZE: "{{ .Values.pipeline.workspace.size }}"
  WORKSPACE_STORAGE_CLASS: "{{ .Values.pipeline.workspace.storageClass }}"