Skip to content

Commit 5d8f1f8

Browse files
Merge pull request #9 from sttts/sttts-add-cluster-header
Add ClusterHeader constant
2 parents 37e70ed + 0d69c82 commit 5d8f1f8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

name.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ import (
2323
"strings"
2424
)
2525

26+
27+
// ClusterHeader set to "<lcluster>" on a request is an alternative to accessing the
28+
// cluster via /clusters/<lcluster>. With that the <lcluster> can be access via normal kube-like
29+
// /api and /apis endpoints.
30+
const ClusterHeader = "X-Kubernetes-Cluster"
31+
2632
// Name is the name of a logical cluster. A logical cluster is
2733
// 1. a (part of) etcd prefix to store objects in that cluster
2834
// 2. a (part of) a http path which serves a Kubernetes-cluster-like API with

0 commit comments

Comments
 (0)