-
Notifications
You must be signed in to change notification settings - Fork 0
[ENG-715] feat: Update workflows and add SAML SSO support #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
30e5de2
feat: Update workflows and add SAML SSO support
twk3 79db2b8
chore: Add MongoDB and ClickHouse dependencies for CI testing
twk3 cb74b09
chore: Add Redis dependency and update CI configurations
twk3 45f6e91
chore: Refactor CI workflow and enhance image pulling mechanism
twk3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,137 @@ | ||
| # Ephemeral MongoDB (single-node replica set) + ClickHouse for the chart-testing | ||
| # install gate. Applied into the `currents-ci` namespace by lint-test.yaml; the | ||
| # chart's pods reach them via cluster DNS. NOT for production use — no auth on | ||
| # MongoDB, throwaway ClickHouse credentials. | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: mongodb | ||
| labels: | ||
| app: mongodb | ||
| spec: | ||
| replicas: 1 | ||
| selector: | ||
| matchLabels: | ||
| app: mongodb | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: mongodb | ||
| spec: | ||
| containers: | ||
| - name: mongodb | ||
| image: mongo:8 | ||
| args: ["--replSet", "rs0", "--bind_ip_all"] | ||
| ports: | ||
| - containerPort: 27017 | ||
| readinessProbe: | ||
| exec: | ||
| command: ["mongosh", "--quiet", "--eval", "db.adminCommand('ping').ok"] | ||
| initialDelaySeconds: 5 | ||
| periodSeconds: 5 | ||
| timeoutSeconds: 5 | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: mongodb | ||
| spec: | ||
| selector: | ||
| app: mongodb | ||
| ports: | ||
| - port: 27017 | ||
| targetPort: 27017 | ||
| --- | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: clickhouse | ||
| labels: | ||
| app: clickhouse | ||
| spec: | ||
| replicas: 1 | ||
| selector: | ||
| matchLabels: | ||
| app: clickhouse | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: clickhouse | ||
| spec: | ||
| containers: | ||
| - name: clickhouse | ||
| image: clickhouse/clickhouse-server:25.6 | ||
| env: | ||
| - name: CLICKHOUSE_USER | ||
| value: currents | ||
| - name: CLICKHOUSE_PASSWORD | ||
| value: currents | ||
| - name: CLICKHOUSE_DB | ||
| value: currents | ||
| - name: CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT | ||
| value: "1" | ||
| ports: | ||
| - containerPort: 8123 | ||
| - containerPort: 9000 | ||
| readinessProbe: | ||
| httpGet: | ||
| path: /ping | ||
| port: 8123 | ||
| initialDelaySeconds: 5 | ||
| periodSeconds: 5 | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: clickhouse | ||
| spec: | ||
| selector: | ||
| app: clickhouse | ||
| ports: | ||
| - name: http | ||
| port: 8123 | ||
| targetPort: 8123 | ||
| - name: native | ||
| port: 9000 | ||
| targetPort: 9000 | ||
| --- | ||
| # redis-stack-server (the app uses RedisJSON). Pre-started here — instead of the | ||
| # Bitnami subchart — so it is Ready before the app pods start, avoiding the | ||
| # crash-loop race while the app retries an unavailable Redis. | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: redis | ||
| labels: | ||
| app: redis | ||
| spec: | ||
| replicas: 1 | ||
| selector: | ||
| matchLabels: | ||
| app: redis | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: redis | ||
| spec: | ||
| containers: | ||
| - name: redis | ||
| image: redis/redis-stack-server:7.4.0-v8 | ||
| ports: | ||
| - containerPort: 6379 | ||
| readinessProbe: | ||
| exec: | ||
| command: ["redis-cli", "ping"] | ||
| initialDelaySeconds: 3 | ||
| periodSeconds: 3 | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: redis | ||
| spec: | ||
| selector: | ||
| app: redis | ||
| ports: | ||
| - port: 6379 | ||
| targetPort: 6379 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,55 @@ | ||
| # Values used by chart-testing for BOTH `ct lint` and the `ct install` gate. | ||
| # The install gate (.github/workflows/lint-test.yaml) deploys MongoDB + ClickHouse | ||
| # and creates the referenced secrets in the `currents-ci` namespace before running | ||
| # `ct install --namespace currents-ci`, so these point at those in-cluster deps. | ||
| currents: | ||
| # The API validates SMTP config exists; a dummy host is enough to boot. | ||
| email: | ||
| smtp: | ||
| host: localhost | ||
| rootUser: | ||
| password: | ||
| secretName: currents-root-user | ||
| key: password | ||
| betterAuth: | ||
| secretName: currents-better-auth | ||
| key: secret | ||
| apiInternalToken: | ||
| secretName: currents-api-internal-token | ||
| key: token | ||
| # The director validates GITLAB_STATE_SECRET is present at boot. | ||
| gitlab: | ||
| state: | ||
| secretName: currents-gitlab-key | ||
| secretKey: gitlab-key.pem | ||
| mongoConnection: | ||
| secretName: mongodb-currents-currents-user | ||
| key: connectionString.standardSrv | ||
| clickhouse: | ||
| host: clickhouse.currents-ci.svc.cluster.local | ||
| port: 8123 | ||
| tls: | ||
| enabled: false | ||
| user: | ||
| username: currents | ||
| secretName: clickhouse-currents-pass | ||
| secretPasswordKey: password | ||
| # Use the pre-started in-cluster Redis (see .github/ci/dependencies.yaml) rather | ||
| # than the Bitnami subchart, so Redis is Ready before the app pods start. | ||
| redis: | ||
| host: redis.currents-ci.svc.cluster.local | ||
|
|
||
| # Reaches every component (all deployments append global.env); the chart only sets | ||
| # MONGODB_URI, so name the database explicitly. | ||
| global: | ||
| # kind pulls the private ECR images directly using this pre-created secret | ||
| # (see the "Create chart secrets" step in .github/workflows/lint-test.yaml). | ||
| imagePullSecrets: | ||
| - name: ecr-creds | ||
| env: | ||
| - name: MONGODB_DATABASE | ||
| value: currents | ||
|
|
||
| # Subchart Redis disabled — we run our own (deployed and waited-for before install). | ||
| redis: | ||
| enabled: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.