Skip to content

[bug]: UHE when starting without connection to Kubernetes API server #558

@vvitkovsky

Description

@vvitkovsky

Describe the bug

If I start app with KubeOps while I don't have a connection to Kubernetes API server app just crash.

To reproduce

Start app with KubOps without a connection to Kubernetes API server

Expected behavior

Try to reconnect after some time

Screenshots

No response

Additional Context

UHE is here:
LeaderElector.cs

public async Task StartAsync(CancellationToken cancellationToken)
{
...
_operatorDeployment = (await _client.List<V1Deployment>(
            _namespace,
            new EqualsSelector("operator-deployment", _settings.Name))).FirstOrDefault();
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions