package api

import (
	"github.com/pingcap/schrodinger/util"
	"net/http"
)

// ConfigMap returns configmaps
// TODO: get this from k8s
func (h *ManagerHandler) ConfigMap(w http.ResponseWriter, r *http.Request) {
	conf := []string{"tidb-cluster-config-template", "tidb-cluster-merge-template", "tidb-cluster-stream-template", "tidb-cluster-binlog-template", "tidb-cluster-dm-template"}
	h.rdr.JSON(w, http.StatusOK, util.SuccessResponse(conf))
}
