Azure / Azure/azure-functions-core-tools

func kubernetes deploy erroneously creates multiple deployments for a single project

Open
#3,365 3 comments 0 reactions 0 assignees View on GitHub
area: kubernetes bug needs-investigation Needs: Attention :wave:
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
4d 20h
Merged PRs (30d)
14

Description

Example:

I have a single project that exposes a http trigger for healthcheck/readiness check (for k8s), and an event hub trigger to consume messages from an event hub.

Running func kubernetes deploy will generate 2 x deployment manifests: one for each trigger, even though both are in the same binary - obviously this results in duplicate instances of the triggers, as each deployment will have both. The tool should be generating a single deployment.

Contributor guide

Open the contributing guide

Research direction

Start at the `func kubernetes deploy` command and trace how one project’s HTTP and Event Hub triggers are converted into deployment manifests. Reproduce the example with both triggers; done means one deployment manifest is generated for the binary and duplicate trigger instances are not created.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, kubernetes
Domain
cli, cloud, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.