skeeey / aggregator-proxy-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create and query a configmap

# create a configmap
curl -v \
    -X POST \
    -d @- \
    -H 'Content-Type: application/json' \
    http://localhost:8001/apis/aggregation.open-cluster-management.io/v1/clusterstatuses/spokecluster1/aggregator/v1/namespaces/default/configmaps <<'EOF'
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "metadata": {
      "name": "mytestcm"
  },
  "data": {
      "test-key": "test-val"
  }
}
EOF

# query the configmap
curl -v http://localhost:8001/apis/aggregation.open-cluster-management.io/v1/clusterstatuses/spokecluster1/aggregator/v1/namespaces/default/configmaps/mytestcm

About


Languages

Language:Go 95.3%Language:Shell 3.3%Language:Makefile 1.2%Language:Dockerfile 0.2%