kyma-project / hydroform

Infrastructure SDK for provisioning and managing Kubernetes cluster based on Terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPE when observing status of Shoot while waiting for Shoot to become Ready during Provisioning

jakobmoellerdev opened this issue · comments

Description

When deploying a cluster via the Deploy of hydroform with gardener, the wait for the shoot is accessing a field called LastOperation: https://github.com/kyma-project/hydroform/blob/main/provision/internal/operator/native/gardener/gardener.go#L93

Sample Execution: https://storage.googleapis.com/kyma-prow-logs/pr-logs/pull/kyma-project_kyma/16522/pre-main-kyma-gardener-gcp-subscription-upgrade/1625871702548287488/build-log.txt

Expected result

The Check for the Shoot should always succeed, even if the controller did not pick it up yet

Actual result

The LastOperation might not be set by the controller yet and can cause a NPE that has to be avoided

`kyma provision gardener gcp ..." and retry a few times
Steps to reproduce

Troubleshooting