Skip to content

Commit

Permalink
update dagster
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Dec 17, 2024
1 parent 321e175 commit bd3ca6d
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
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
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 bd3ca6d

Please sign in to comment.