apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

resources:
  - ./resources/deployment.yaml
  - ./resources/service.yaml
  - ./resources/oauth2-client.yaml

configMapGenerator:
  - name: oidc-test-env
    literals:
      - LOG_LEVEL=0
      - HTTP_ADDRESS=0.0.0.0:8080
      - OIDC_CLIENT_ID=oidc-test
      - OIDC_CLIENT_SECRET=NotSoSecret
      - OIDC_ISSUER_URL=http://hydra:4444
      - OIDC_REDIRECT_URL=https://example.net/oauth2/callback
      - OIDC_POST_LOGOUT_REDIRECT_URL=https://example.net
      - OIDC_SKIP_ISSUER_VERIFICATION="true"
      - OIDC_SCOPES="openid profile"
      - OIDC_INSECURE_SKIP_VERIFY="true"