apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "qa-app.fullname" . }}-config
  labels: {{- include "qa-app.labels" . | nindent 4 }}
data:
  index.html: |
    <!DOCTYPE html>
    <html>
    <head>
      <title>{{ .Values.siteTitle | default "QA WP" }}</title>
    </head>
    <body>
      <h1>{{ .Values.siteTitle | default "QA WP" }}</h1>
      <p>WordPress test fixture installed via Catalyst Application CR.</p>
      <p>This is a real workload — nginx serving real HTTP from the
         qa-loop matrix's test rig.</p>
    </body>
    </html>
  default.conf: |
    server {
      listen 8080;
      server_name _;
      root /usr/share/nginx/html;
      index index.html;
      location / {
        try_files $uri $uri/ =404;
      }
      location /health {
        access_log off;
        return 200 "ok\n";
        add_header Content-Type text/plain;
      }
    }
