-
Notifications
You must be signed in to change notification settings - Fork 49
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
Expose API Server and Envoy endpoints and add a new Envoy condition #669
Conversation
A new image has been built to help with testing out this PR: To use this image run the following: cd $(mktemp -d)
git clone git@github.com:opendatahub-io/data-science-pipelines-operator.git
cd data-science-pipelines-operator/
git fetch origin pull/669/head
git checkout -b pullrequest 21e6dfedf811fabf84f8d812edf727e53f528d6b
oc new-project opendatahub
make deploy IMG="quay.io/opendatahub/data-science-pipelines-operator:pr-669" More instructions here on how to deploy and test a Data Science Pipelines Application. |
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
21e6dfe
to
20c64e0
Compare
Change to PR detected. A new PR build was completed. |
2 similar comments
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
Change to PR detected. A new PR build was completed. |
Signed-off-by: Ricardo M. Oliveira <rmartine@redhat.com>
Change to PR detected. A new PR build was completed. |
/lgtm |
@@ -118,6 +119,7 @@ spec: | |||
volumeMounts: | |||
- mountPath: /etc/tls/private | |||
name: proxy-tls | |||
{{ end }} |
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.
(code cleanliness) I think this is one indent off from its matching conditional above (6 vs 8 whitespaces)
controllers/dspipeline_controller.go
Outdated
return ctrl.Result{}, err | ||
} else { | ||
r.setStatus(ctx, "ds-pipeline-metadata-envoy-"+dspa.Name, config.MLMDProxyReady, dspa, |
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.
Can we extract "ds-pipeline-metadata-envoy-"+dspa.Name to a variable to avoid Magic Keywords in-code? (assuming the Envoy analog of params.XYZCompoenentName
like the other components doesn't exist). Also, add spaces around the concating +
for code cleanliness
controllers/dspipeline_controller.go
Outdated
log.Error(err, "Error retrieving MLMD Proxy Service endpoint") | ||
} | ||
|
||
mlmdProxyExternalUrl, err := util.GetRouteHostname(ctx, "ds-pipeline-md-"+dspa.Name, dspa.Namespace, r.Client) |
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.
Similar to above: extract to parameter and/or add whitespace around +
, etc
controllers/dspipeline_controller.go
Outdated
log.Error(err, "Error retrieving MLMD Proxy Route endpoint") | ||
} | ||
|
||
apiServerUrl, err := util.GetServiceHostname(ctx, "ds-pipeline-"+dspa.Name, dspa.Namespace, r.Client) |
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.
Similar to above: extract to parameter and/or add whitespace around +
, etc
controllers/dspipeline_controller.go
Outdated
log.Error(err, "Error retrieving API Server Service endpoint") | ||
} | ||
|
||
apiServerExternalUrl, err := util.GetRouteHostname(ctx, "ds-pipeline-"+dspa.Name, dspa.Namespace, r.Client) |
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.
Similar to above: extract to parameter and/or add whitespace around +
, etc
tests/suite_test.go
Outdated
@@ -194,6 +197,22 @@ func (suite *IntegrationTestSuite) SetupSuite() { | |||
loggr.Info("Portforwarding service Successfully set up.") | |||
} | |||
|
|||
func printConditions(ctx context.Context, dspa *v1alpha1.DataSciencePipelinesApplication, namespace string, client client.Client) string { |
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.
think this is related to above, but we shouldn't have functional non-test code in *_test.go
Change to PR detected. A new PR build was completed. |
/lgtm |
Change to PR detected. A new PR build was completed. |
Signed-off-by: Ricardo M. Oliveira <rmartine@redhat.com>
Change to PR detected. A new PR build was completed. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gmfrasca The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
The issue resolved by this Pull Request:
Resolves RHOAIENG-7929
Description of your changes:
This PR will introduce a new condition to check if MLMD Envoy is ready (EnvoyReady) and add the DSPA endpoints (API Server and MLMD Envoy) to the status field.
Testing instructions
oc login
first):Checklist