Azure / Azure/azure-functions-core-tools
func kubernetes deploy completes with "Object reference not set to an instance of an object."
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 14
Description
### Core tools version
3.0.3442 (latest as of today)
I'm also seeing this on 3.0.3477 (latest preview release)
### Repro steps
1. Deploy Functions app with HTTP triggers to an AKS cluster using `func kubernetes deploy`.
2. Make changes to the set of HTTP triggers in the app
3. Re-deploy the app again a second time (the problem happens on the second deployment):
```powershell
func kubernetes deploy --name "durabletask-mssql-app" --image-name "$repo/mssql-durable-functions:latest" --secret-name "mssql-secrets" --max-replicas 10
```
Output:
```
secret/func-keys-kube-secret-durabletask-mssql-app configured
serviceaccount/durabletask-mssql-app-function-keys-identity-svc-act unchanged
role.rbac.authorization.k8s.io/functions-keys-manager-role unchanged
rolebinding.rbac.authorization.k8s.io/durabletask-mssql-app-function-keys-identity-svc-act-functions-keys-manager-rolebinding unchanged
service/durabletask-mssql-app-http unchanged
deployment.apps/durabletask-mssql-app-http configured
deployment.apps/durabletask-mssql-app configured
scaledobject.keda.sh/durabletask-mssql-app configured
Waiting for deployment "durabletask-mssql-app-http" rollout to finish: 1 old replicas are pending termination...
Waiting for deployment "durabletask-mssql-app-http" rollout to finish: 1 old replicas are pending termination...
deployment "durabletask-mssql-app-http" successfully rolled out
Object reference not set to an instance of an object.
```
I don't know what the impact of this null-ref is, but regardless it isn't a good look.
I also don't know if this is at all related to Durable Functions. That just happened to be the scenario I was testing.
FYI @ahmelsayed
Contributor guide
Assessment
This issue has not been assessed yet.