You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a mutating webhook which adds an annotation to deployment spec template when a deployment is applied. When the webhook adds the annotation the vminsert deployment created by the operator, the operator crashes when trying to reconcile because of line 298
newDeployment.Spec.Template.Annotations[annotation] = value
A quick fix was to check if Annotation is nil and then initialize a map
if newDeployment.Spec.Template.Annotations == nil {
newDeployment.Spec.Template.Annotations = make(map[string]string)
}
for annotation, value := range currentDeployment.Spec.Template.Annotations {
newDeployment.Spec.Template.Annotations[annotation] = value
}
I have created PR , adding the if condition to check the Annotation is nil at all the required placed - #148
The text was updated successfully, but these errors were encountered:
First of all great work.
We are using the operator to create VM components. We have seen the operator crashing when trying to reconcile/create
vminsert
. Please see the logsWe have a mutating webhook which adds an annotation to deployment spec template when a deployment is applied. When the webhook adds the annotation the
vminsert
deployment created by the operator, the operator crashes when trying to reconcile because of line 298A quick fix was to check if Annotation is nil and then initialize a map
I have created PR , adding the if condition to check the Annotation is nil at all the required placed - #148
The text was updated successfully, but these errors were encountered: