Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: SpiritZhou <[email protected]>
  • Loading branch information
SpiritZhou committed Apr 16, 2024
1 parent cfafeae commit 77eec43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/eventemitter/azure_event_grid_topic_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ func NewAzureEventGridTopicHandler(context context.Context, clusterName string,

switch podIdentity.Provider {
case "", kedav1alpha1.PodIdentityProviderNone:
if authParams["key"] == "" {
err = fmt.Errorf("no key provided")
if authParams["azureEventGridAcceessKey"] == "" {
err = fmt.Errorf("no azure event grid access key provided")
break
}
client, err = publisher.NewClientWithSharedKeyCredential(spec.Endpoint, azcore.NewKeyCredential(authParams["key"]), nil)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ metadata:
name: {{.SecretName}}
namespace: {{.TestNamespace}}
data:
key: {{.EventGridKey}}
azureEventGridAcceessKey: {{.EventGridKey}}
`

triggerAuthTemplate = `
Expand Down Expand Up @@ -204,8 +204,6 @@ func testEventSourceEmitValue(t *testing.T, _ *kubernetes.Clientset, data templa
// help function to load template data
func getTemplateData() (templateData, []Template) {
base64EventGridKey := base64.StdEncoding.EncodeToString([]byte(eventGridKey))
fmt.Printf("eventGridKey: %s\n", eventGridKey)
fmt.Printf("base64EventGridKey: %s\n", base64EventGridKey)
return templateData{
TestNamespace: namespace,
ClientName: clientName,
Expand Down

0 comments on commit 77eec43

Please sign in to comment.