Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/keda/deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ func (d *Deployer) Deploy(ctx context.Context, f fn.Function) (fn.DeploymentResu
}

func (d *Deployer) httpScaledObject(f fn.Function, namespace string, deployment *v1.Deployment, service *corev1.Service, hosts []string) (*httpv1alpha1.HTTPScaledObject, error) {
if len(service.Spec.Ports) == 0 {
return nil, fmt.Errorf("service %s has no ports defined", service.Name)
}

labels, err := deployer.GenerateCommonLabels(f, d.decorator)
if err != nil {
return nil, fmt.Errorf("failed to generate common labels: %w", err)
Expand Down
Loading