-
Notifications
You must be signed in to change notification settings - Fork 107
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
chore: passing down ctx in the chain than placeholder TODO() #990
chore: passing down ctx in the chain than placeholder TODO() #990
Conversation
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
components/dashboard/dashboard.go
Outdated
@@ -276,7 +276,7 @@ func (d *Dashboard) deployConsoleLink(cli client.Client, owner metav1.Object, pl | |||
pathConsoleLink := filepath.Join(manifestsPath, "consolelink.yaml") | |||
|
|||
consoleRoute := &routev1.Route{} | |||
if err := cli.Get(context.TODO(), client.ObjectKey{Name: NameConsoleLink, Namespace: NamespaceConsoleLink}, consoleRoute); err != nil { | |||
if err := cli.Get(context.Background(), client.ObjectKey{Name: NameConsoleLink, Namespace: NamespaceConsoleLink}, consoleRoute); err != nil { |
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.
Why not here?
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.
missed it, updated
pkg/cluster/cluster_config.go
Outdated
@@ -17,11 +17,11 @@ import ( | |||
|
|||
// +kubebuilder:rbac:groups="config.openshift.io",resources=ingresses,verbs=get | |||
|
|||
func GetDomain(c client.Client) (string, error) { |
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.
Actually, unrelated change.
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.
reverted
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ykaliuta 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 |
ec07da3
into
opendatahub-io:incubation
…ahub-io#990) * chore: passing down ctx in the chain than placeholder TODO() Signed-off-by: Wen Zhou <wenzhou@redhat.com> * update: add missing one Signed-off-by: Wen Zhou <wenzhou@redhat.com> * update: revert name back Signed-off-by: Wen Zhou <wenzhou@redhat.com> --------- Signed-off-by: Wen Zhou <wenzhou@redhat.com>
we have context defined and pass from upper caller, this is just to make sure the ones we set to TODO can be using ctx
Description
How Has This Been Tested?
Merge criteria: