Skip to content

Commit

Permalink
feat: slack api resource
Browse files Browse the repository at this point in the history
  • Loading branch information
cbini committed Sep 23, 2024
1 parent 730e27a commit 869de18
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .k8s/1password/items.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -350,3 +350,11 @@ metadata:
namespace: dagster-cloud
spec:
itemPath: vaults/Data Team/items/Overgrad API - Camden
---
apiVersion: onepassword.com/v1
kind: OnePasswordItem
metadata:
name: op-slack-api
namespace: dagster-cloud
spec:
itemPath: vaults/Data Team/items/Slack API - Teamster
5 changes: 5 additions & 0 deletions src/teamster/code_locations/kipptaf/dagster-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -709,3 +709,8 @@ locations:
secretKeyRef:
name: op-overgrad-api-kippnewark
key: credential
- name: SLACK_TOKEN
valueFrom:
secretKeyRef:
name: op-slack-api
key: credential
2 changes: 2 additions & 0 deletions src/teamster/code_locations/kipptaf/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
BIGQUERY_RESOURCE,
GCS_RESOURCE,
OVERGRAD_RESOURCE,
SLACK_RESOURCE,
SSH_COUCHDROP,
get_dbt_cli_resource,
get_io_manager_gcs_avro,
Expand Down Expand Up @@ -110,6 +111,7 @@
"overgrad": OVERGRAD_RESOURCE,
"ps_enrollment": resources.POWERSCHOOL_ENROLLMENT_RESOURCE,
"schoolmint_grow": resources.SCHOOLMINT_GROW_RESOURCE,
"slack": SLACK_RESOURCE,
"smartrecruiters": resources.SMARTRECRUITERS_RESOURCE,
"ssh_adp_workforce_now": resources.SSH_RESOURCE_ADP_WORKFORCE_NOW,
"ssh_clever": resources.SSH_RESOURCE_CLEVER,
Expand Down
3 changes: 3 additions & 0 deletions src/teamster/core/resources.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from dagster import EnvVar
from dagster_dbt import DbtCliResource
from dagster_gcp import BigQueryResource, GCSResource
from dagster_slack import SlackResource

from teamster import GCS_PROJECT_NAME
from teamster.core.io_managers.gcs import GCSIOManager
Expand Down Expand Up @@ -28,6 +29,8 @@

OVERGRAD_RESOURCE = OvergradResource(api_key=EnvVar("OVERGRAD_API_KEY"), page_limit=100)

SLACK_RESOURCE = SlackResource(token=EnvVar("SLACK_TOKEN"))

SSH_COUCHDROP = SSHResource(
remote_host=EnvVar("COUCHDROP_SFTP_HOST"),
username=EnvVar("COUCHDROP_SFTP_USERNAME"),
Expand Down

0 comments on commit 869de18

Please sign in to comment.