-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat(event-hubs-scaler): Add pod/workload identity support to checkpoint in Azure Blob Storage #3573
feat(event-hubs-scaler): Add pod/workload identity support to checkpoint in Azure Blob Storage #3573
Conversation
acc7995
to
e3d2a52
Compare
I checked this PR out and tested it. Confirmed that it works with Workload Identity as well @tomkerkhove @andyatwork apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 0
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
---
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
name: eventhub-ta
spec:
podIdentity:
provider: azure-workload
---
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: eventhub-so
spec:
scaleTargetRef:
name: nginx-deployment
minReplicaCount: 0
maxReplicaCount: 5
triggers:
- type: azure-eventhub
metadata:
storageAccountName: testhubstorage
checkpointStrategy: azureFunction
eventHubNamespace: test-hub-ns
eventHubName: hub-1
authenticationRef:
name: eventhub-ta |
... Excellent, thanks for testing this! |
@tomkerkhove , can you follow up on the change request above? |
Not from my side |
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.
Looking good, some comments inline.
Should we add an e2e test checking this?
Thanks for this contribution! ❤️
Sorry, I had responded to your comment inline above and realized I hadn't published my comments yet. They remained "pending", so I guess you hadn't actually seen my response. Hope the replies addresses your concerns. |
58e4ca2
to
5ec4e02
Compare
@JorTurFer Any changes here after upgrading the event hubs SDK? |
I didn't touch the eventhub sdk, only the service-bus sdk which I'd say is different |
I have checked the SDK for this and, oh surprise, uses other authentication mechanism different from the service-bus SDK... |
I thought you upgraded it to v3, which is why I was wondering if anything broke over there that would require changes here. |
Lol, let me check because I didn't notice that |
did you mean with this PR? |
No no, it's a minor version, but that minor version created conflicts I think because it uses generics somewhere. That's why I created the issue to remember bumping it after update golang version |
BTW; I have checked and there is a |
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 have to apologize @andyatwork because I missed this PR...
Let's check if @tomkerkhove has anything to say
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.
LGTM, @v-shenoy any concerns from your side?
@andyatwork , could you rebase your branch? 🙏 We added e2e test for event hub some weeks ago and rebasing the branch we can execute them before merging the PR |
Yes, will rebase and update the PR. |
ff8eafd
to
8b3bfa8
Compare
Signed-off-by: Andy Petralli <andres.petralli@microsoft.com>
Signed-off-by: Andy Petralli <andres.petralli@microsoft.com>
Co-authored-by: Vighnesh Shenoy <vighneshq@gmail.com> Signed-off-by: Andy Petralli <andres.petralli@microsoft.com>
Signed-off-by: Andres Petralli <andres.petralli@microsoft.com>
Signed-off-by: Andres Petralli <andres.petralli@microsoft.com>
Signed-off-by: Andres Petralli <andres.petralli@microsoft.com>
Signed-off-by: Andres Petralli <andres.petralli@microsoft.com>
8b3bfa8
to
6a5c91b
Compare
/run-e2e event_hub* |
…int in Azure Blob Storage (kedacore#3573) Co-authored-by: Vighnesh Shenoy <vighneshq@gmail.com> Signed-off-by: 26tanishabanik <26tanishabanik@gmail.com>
Add support for pod identity based authentication to blob storage accounts in Event Hub scaler
Checklist
Relates to #3569
Relates to kedacore/keda-docs#905