We are running on Kyma using github action pipelines with piper.
Our yaml chart contains sth. like this:
apiVersion: services.cloud.sap.com/v1
kind: ServiceInstance
metadata:
name: {{ .Values.btpservice.destination.name }}-{{ .Release.Namespace }}
namespace: {{ .Release.Namespace }}
spec:
serviceOfferingName: {{ .Values.btpservice.destination.name }}
servicePlanName: {{ .Values.btpservice.destination.planname }}
---
apiVersion: services.cloud.sap.com/v1
kind: ServiceBinding
metadata:
name: {{ .Values.btpservice.destination.name }}-{{ .Release.Namespace }}
namespace: {{ .Release.Namespace }}
spec:
serviceInstanceName: {{ .Values.btpservice.destination.name }}-{{ .Release.Namespace }}
serviceInstanceNamespace: {{ .Release.Namespace }}
secretName: {{ .Values.btpservice.destination.name }}-{{ .Release.Namespace }}
---
We are uninstall it in our piper script via:
helm uninstall namespace-config --kube-context rcdev --namespace ns-test --wait --timeout 300s
Afterwards we are deleting the namespace in the script.
Sometimes one of the following two issues occur:
- The uninstall-command run into the 300s timeout: In the cluster everything is gone then, however in the BTP cockpit the instance (without the bindings) are still present
- The instance and secrets are gone, but the binding remains in the cluster, keeping the namespace in "Terminating"-state. In BTP cockpit both still exist.
How to solve this properly for both cases?
Issue 2 is I guess somehow an order problem, how can helm handle this correctly?
To get out of issue 1 I found some documentation, but how to avoid it at all?
We are running on Kyma using github action pipelines with piper.
Our yaml chart contains sth. like this:
We are uninstall it in our piper script via:
Afterwards we are deleting the namespace in the script.
Sometimes one of the following two issues occur:
How to solve this properly for both cases?
Issue 2 is I guess somehow an order problem, how can helm handle this correctly?
To get out of issue 1 I found some documentation, but how to avoid it at all?