feat(oauth2-proxy): setting skip auth routes

This commit is contained in:
Masaki Yatsu
2025-10-02 15:40:07 +09:00
parent c0739bd9c0
commit e4d5e3f618
2 changed files with 7 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ default:
@just --list --unsorted --list-submodules
# Setup OAuth2 Proxy for an application
setup-for-app app_name app_host app_namespace="default" upstream_service="":
setup-for-app app_name app_host app_namespace="default" upstream_service="" skip_auth_routes="":
#!/bin/bash
set -euo pipefail
@@ -81,6 +81,7 @@ setup-for-app app_name app_host app_namespace="default" upstream_service="":
export APP_HOST="{{ app_host }}"
export APP_NAMESPACE="{{ app_namespace }}"
export UPSTREAM_SERVICE="${upstream_service}"
export SKIP_AUTH_ROUTES="{{ skip_auth_routes }}"
gomplate -f oauth2-proxy-deployment.gomplate.yaml | kubectl apply -f -
gomplate -f oauth2-proxy-service.gomplate.yaml | kubectl apply -f -