Removed code related to mqtrigger (#1680)

This commit is contained in:
Rahul Bhati
2020-08-06 20:59:08 +05:30
committed by GitHub
parent 587b166a4e
commit f751546913
9 changed files with 23 additions and 533 deletions
+3 -3
View File
@@ -54,7 +54,7 @@ func getAuthTriggerClient(namespace string) (dynamic.ResourceInterface, error) {
if err != nil {
return nil, err
}
return dynamicClient.Resource(scaledObjectGVR).Namespace(namespace), nil
return dynamicClient.Resource(authTriggerGVR).Namespace(namespace), nil
}
// StartScalerManager watches for changes in MessageQueueTrigger and,
@@ -166,7 +166,7 @@ func getEnvVarlist(mqt *fv1.MessageQueueTrigger, routerURL string, kubeClient ku
Value: mqt.Spec.Topic,
},
{
Name: "FUNCTION_URL",
Name: "HTTP_ENDPOINT",
Value: url,
},
{
@@ -178,7 +178,7 @@ func getEnvVarlist(mqt *fv1.MessageQueueTrigger, routerURL string, kubeClient ku
Value: mqt.Spec.ResponseTopic,
},
{
Name: "TRIGGER_NAME",
Name: "SOURCE_NAME",
Value: mqt.ObjectMeta.Name,
},
{