Fixing error from PR testing - nil map issue
@@ -325,6 +325,14 @@ func (r *SqlServerReconciler) GetOrPrepareSecret(instance *azurev1.SqlServer) *v
Name: name,
Namespace: instance.Namespace,
},
+ // Needed to avoid nil map error
+ Data: map[string][]byte{
+ "username": []byte(""),
+ "fullyqualifiedusername": []byte(""),
+ "password": []byte(""),
+ "sqlservername": []byte(""),
+ "fullyqualifiedservername": []byte(""),
+ },
Type: "Opaque",
}
