-
Notifications
You must be signed in to change notification settings - Fork 56
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
feat: DSPO handle db tls connections and configs (v2) #577
Merged
HumairAK
merged 8 commits into
opendatahub-io:main
from
HumairAK:v2-RHOAIENG-1690-and-2385
Mar 11, 2024
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
55fdadd
feat: dspo to reconcile on odh ca events.
HumairAK fdb1804
feat: use odh global config when provided.
HumairAK 6433d51
feat: correct logger messages in dspa params
HumairAK 2600ac9
feat: allow dspo to verify tls secured mysql
HumairAK 531c957
chore: mount ca bundle to mlmd
HumairAK 49207eb
chore: allow dspo to handle multiple ca bundles
HumairAK 7ade9ee
chore: add more cert tests.
HumairAK 1a30d8d
chore: clarify cabundle comments and error descriptions
HumairAK 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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,33 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: pipeline-server-config-{{.Name}} | ||
namespace: {{.Namespace}} | ||
labels: | ||
app: {{.APIServerDefaultResourceName}} | ||
component: data-science-pipelines | ||
data: | ||
config.json: | | ||
{{ if eq .DSPVersion "v2" }} | ||
{ | ||
"DBConfig": { | ||
"MySQLConfig": { | ||
"ExtraParams": {{ .DBConnection.ExtraParams }}, | ||
"GroupConcatMaxLen": "4194304" | ||
}, | ||
"PostgreSQLConfig": {}, | ||
"ConMaxLifeTime": "120s" | ||
}, | ||
"DBDriverName": "mysql", | ||
"InitConnectionTimeout": "6m" | ||
} | ||
{{ else }} | ||
{ | ||
"DBConfig": { | ||
"DriverName": "mysql", | ||
"ConMaxLifeTime": "120s", | ||
"ExtraParams": {{ .DBConnection.ExtraParams }} | ||
}, | ||
"InitConnectionTimeout": "6m" | ||
} | ||
{{ end }} |
This file contains 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as in the v1 patch -- I would prefer a type safe way of doing this / not using string templating. This seems like not idiomatic go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can open a "would be nice to refactor this" ticket for this and add it to our backlog. Not really a big deal / definitely no need to block merge.