Skip to content
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 GSSAPI Service name configuration of Kafka Scaler #5483

Merged
merged 2 commits into from
Mar 10, 2024

Conversation

ArunYogesh
Copy link
Contributor

@ArunYogesh ArunYogesh commented Feb 5, 2024

The current GSSAPI configuration for Kafka scaler has a hard coded service name. The service name can be different in some Kafka configurations, hence exposing it to be configurable.

Checklist

Fixes #5474

@ArunYogesh ArunYogesh requested a review from a team as a code owner February 5, 2024 13:36
Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!
We need to parse the value from triggerMetadata because currently serviceName is always "" . A unit test to cover this would be nice too.
Last but not least, we have to open another PR to docs repo adding the info: https://github.com/kedacore/keda-docs/blob/main/content/docs/2.14/scalers/apache-kafka.md

CHANGELOG.md Show resolved Hide resolved
@ArunYogesh
Copy link
Contributor Author

ArunYogesh commented Feb 6, 2024

Thank you for the hint, I have now updated the code to read from the base configuration. I believe it should be part of the auth params and not trigger Metadata, since it is a Kerberos configuration? Please correct me if my understanding is incorrect. As per your request, I have raised a separate pull request for the documentation .

@JorTurFer
Copy link
Member

Could you solve DCO check please?
image

@JorTurFer
Copy link
Member

JorTurFer commented Feb 6, 2024

/run-e2e kafka
Update: You can check the progress here

@ArunYogesh ArunYogesh force-pushed the fix/5477/expose-service-name branch 4 times, most recently from 015fd23 to 6834379 Compare February 7, 2024 13:08
@ArunYogesh
Copy link
Contributor Author

ArunYogesh commented Feb 7, 2024

Could you solve DCO check please?

Sorry, Done.

@JorTurFer
Copy link
Member

JorTurFer commented Feb 7, 2024

/run-e2e kafka
Update: You can check the progress here

@JorTurFer
Copy link
Member

@dttung2905 @zroubalik , WDYT?

Copy link
Contributor

@dttung2905 dttung2905 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ArunYogesh , thanks for the PR. Overall I think its a good change. I have a few nits:

pkg/scalers/kafka_scaler.go Outdated Show resolved Hide resolved
@ArunYogesh ArunYogesh force-pushed the fix/5477/expose-service-name branch 2 times, most recently from 19a07cf to b1da4a8 Compare March 1, 2024 14:33
@JorTurFer
Copy link
Member

I guess that we can continue with the current implementation without adding the support to the experimental, as after the last community call we plan to deprecate and remove the experimental one. WDYT @zroubalik @tomkerkhove @dttung2905 ?

For me, once the tests' requirement is done we can merge this if you agree

@ArunYogesh ArunYogesh force-pushed the fix/5477/expose-service-name branch from b1da4a8 to dca7209 Compare March 4, 2024 11:43
Signed-off-by: Arun Yogesh <6723526+ArunYogesh@users.noreply.github.com>
@ArunYogesh ArunYogesh force-pushed the fix/5477/expose-service-name branch from dca7209 to c9b0502 Compare March 4, 2024 11:44
Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@JorTurFer
Copy link
Member

JorTurFer commented Mar 10, 2024

/run-e2e kafka
Update: You can check the progress here

@JorTurFer JorTurFer merged commit 689959f into kedacore:main Mar 10, 2024
20 checks passed
@JorTurFer
Copy link
Member

Thanks for the contribution!

@hayscoder
Copy link

Thank you all!

@ArunYogesh ArunYogesh deleted the fix/5477/expose-service-name branch March 12, 2024 06:33
SpiritZhou pushed a commit to SpiritZhou/keda that referenced this pull request Mar 15, 2024
Signed-off-by: Arun Yogesh <6723526+ArunYogesh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kafka ServiceName hard-coded instead of a config metadata item
5 participants