log.Error().Err(err).Str("context","CreateKubernetesNamespace").Str("namespace",namespaceName).Msg("Unable to create the namespace")
returnhttperror.InternalServerError(fmt.Sprintf("an error occurred during the CreateKubernetesNamespace operation, unable to create the namespace: %s",namespaceName),err)
returnhttperror.InternalServerError("an error occurred during the CreateKubernetesNamespace operation, unable to create the namespace: "+namespaceName,err)
log.Error().Err(err).Str("context","DeleteKubernetesNamespace").Str("namespace",namespaceName).Msg("Unable to find the namespace")
returnhttperror.NotFound(fmt.Sprintf("an error occurred during the DeleteKubernetesNamespace operation for the namespace %s, unable to find the namespace. Error: ",namespaceName),err)
returnhttperror.NotFound("an error occurred during the DeleteKubernetesNamespace operation for the namespace "+namespaceName+", unable to find the namespace. Error: ",err)
}
log.Error().Err(err).Str("context","DeleteKubernetesNamespace").Str("namespace",namespaceName).Msg("Unable to delete the namespace")
returnhttperror.InternalServerError(fmt.Sprintf("an error occurred during the DeleteKubernetesNamespace operation for the namespace %s, unable to delete the Kubernetes namespace. Error: ",namespaceName),err)
returnhttperror.InternalServerError("an error occurred during the DeleteKubernetesNamespace operation for the namespace "+namespaceName+", unable to delete the Kubernetes namespace. Error: ",err)