-
Notifications
You must be signed in to change notification settings - Fork 140
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
fix: makes default knative secret local for serverless #1067
fix: makes default knative secret local for serverless #1067
Conversation
PR opendatahub-io#1022 promoted knative default secret name as the default for entire platform. This can be confusing, therefore this change makes it local to kserve again.
e78802b
to
e3c9182
Compare
// Get default name if newSecretName is empty | ||
if newSecretName == "" { | ||
newSecretName = DefaultCertificateSecretName | ||
} |
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.
I am not sure we need to default this to anything. I would assume the caller does due diligence.
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.
If line 142 is the only usage, I think it is always going to be populated...
// GetDefaultIngressCertificate copies ingress cert secrets from openshift-ingress ns to given namespace. | ||
func GetDefaultIngressCertificate(ctx context.Context, c client.Client, knativeSecret, namespace string) error { | ||
// PropagateDefaultIngressCertificate copies ingress cert secrets from openshift-ingress ns to given namespace. | ||
func PropagateDefaultIngressCertificate(ctx context.Context, c client.Client, secretName, namespace 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.
I think this reflects the effect of this function a bit more accurately.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zdtsw 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 |
686b195
into
opendatahub-io:incubation
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.
Well... I also approve :-)
…#1067) PR opendatahub-io#1022 promoted knative default secret name as the default for entire platform. This can be confusing, therefore this change makes it local to kserve again.
…#1067) PR opendatahub-io#1022 promoted knative default secret name as the default for entire platform. This can be confusing, therefore this change makes it local to kserve again.
Description
PR #1022 promoted knative default secret name as the default for the entire platform as part of the
cert.go
move. This can be confusing, therefore this change makes it local to kserve again.JIRA issue:
Follow-up to #1022
ref: https://issues.redhat.com/browse/RHOAIENG-4221
How Has This Been Tested?
Screenshot or short clip:
Merge criteria: