Skip to content

Commit

Permalink
Merge branch 'sebastian/prod-2981-set-up-catalog-pipeline' of github.…
Browse files Browse the repository at this point in the history
…com:pluralsh/scaffolds into sebastian/prod-2981-set-up-catalog-pipeline
  • Loading branch information
floreks committed Dec 17, 2024
2 parents a59bfb0 + bd3ca6d commit 2eaf0f7
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 2 deletions.
2 changes: 1 addition & 1 deletion catalogs/data/dagster/dagster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
imports:
- stackRef:
name: dagster-{{ context.cluster }}
namespace: infra
namespace: apps
configuration:
cluster: {{ context.cluster }}
hostname: {{ context.hostname }}
Expand Down
28 changes: 28 additions & 0 deletions catalogs/data/dagster/helm/oauth-proxy-config.yaml.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{% raw %}
{% assign imports_dagster_key = 'dagster-' | append: configuration.cluster %}
service:
name: dagster-oauth2-proxy
selector:
app.kubernetes.io/instance: dagster
app.kubernetes.io/name: webapp
secret:
clientID: {{ imports[imports_dagster_key].oidc_client_id }}
clientSecret: {{ imports[imports_dagster_key].oidc_client_secret }}
cookieSecret: {{ imports[imports_dagster_key].oidc_cookie_secret }}
issuer: https://oidc.plural.sh/
upstream: http://localhost:8080
name: dagster-proxy-config
env:
OAUTH2_PROXY_UPSTREAM_TIMEOUT: '120s'
{% if configuration["basicAuth"] %}
{% assign basicAuth = configuration["basicAuth"] | from_json %}
users:
{% for user in basicAuth %}
{{ user[0] }}: {{ user[1] }}
{% endfor %}
{% endif %}
{% endraw %}
31 changes: 31 additions & 0 deletions catalogs/data/dagster/oauth-proxy-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: deployments.plural.sh/v1alpha1
kind: ServiceDeployment
metadata:
name: dagster-oauth-proxy-config-{{ context.cluster }}
namespace: apps
spec:
namespace: dagster
git:
folder: helm/dagster/{{ context.cluster }}
ref: main
repositoryRef:
kind: GitRepository
name: infra
namespace: infra
helm:
version: "x.x.x"
chart: oidc-config
url: https://pluralsh.github.io/module-library
valuesFiles:
- oauth-proxy-config.yaml.liquid
imports:
- stackRef:
name: dagster-{{ context.cluster }}
namespace: apps
configuration:
cluster: {{ context.cluster }}
hostname: {{ context.hostname }}
clusterRef:
kind: Cluster
name: {{ context.cluster }}
namespace: infra
2 changes: 1 addition & 1 deletion catalogs/devops/grafana/grafana.yaml.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ingress:
tls:
- hosts:
- {{ context.hostname }}
secretName: monitoring-tls
secretName: grafana-{{ context.cluster }}-tls

persistence:
enabled: true
Expand Down
3 changes: 3 additions & 0 deletions setup/catalogs/data/dagster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
- source: "terraform/{{ context.cloud }}"
destination: "terraform/apps/dagster/{{ context.cluster }}"
external: true
- source: oauth-proxy-config.yaml
destination: "bootstrap/apps/dagster/{{ context.cluster }}/oauth-proxy-config.yaml"
external: true
repositoryRef:
name: scaffolds
catalogRef:
Expand Down

0 comments on commit 2eaf0f7

Please sign in to comment.