-
Notifications
You must be signed in to change notification settings - Fork 403
Fixed EventMesh subscription deletion when OAuth not initialized #17781
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
Conversation
✅ Deploy Preview for kyma-project-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/test all |
Skipping CI for Draft Pull Request. |
/test all |
/test all |
/test all |
/test pre-main-kyma-gardener-gcp-eventing-upgrade |
/test all |
/test all |
@@ -1000,6 +1000,10 @@ func (r *Reconciler) getMutatingAndValidatingWebHookConfig(ctx context.Context) | |||
return &mutatingWH, &validatingWH, nil | |||
} | |||
|
|||
func (r *Reconciler) isOauth2CredentialsInitialized() bool { | |||
return len(r.credentials.clientID) > 0 && len(r.credentials.clientSecret) > 0 |
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.
Does it make sense to also check the tokenURL and certsURL?
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.
Also please write a unit test for this function.
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.
Not sure atm, that certsURL
would be non-empty when oauth2 feature flag is disabled. Thats why I only checked the fields which are used in both cases (i.e. oauth2 feature flag enabled/disabled)
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 will add unit test in the next PR.
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.
Please also check the tokenURL and certsURL (if possible) in the followup PR.
/retest |
/test pull-eventing-controller-lint |
…a-project#17781) * Fixed EventMesh subscription deletion when OAuth not initialized * image bump * added init * updated tests
Description
Changes proposed in this pull request:
Related issue(s)