Skip to content

Commit c702955

Browse files
committed
Rename authentication.{kubernetes=>kcp}.io/cluster-name
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
1 parent 001b47b commit c702955

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/authorization/resolver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func TestResolverWithWarrants(t *testing.T) {
177177
},
178178
{
179179
name: "base with foreign service account warrant",
180-
user: &user.DefaultInfo{Name: "user-a", Extra: map[string][]string{rbacregistryvalidation.WarrantExtraKey: {`{"user":"system:serviceaccount:default:foo","extra":{"authentication.kubernetes.io/cluster-name": ["another"]}}`}}},
180+
user: &user.DefaultInfo{Name: "user-a", Extra: map[string][]string{rbacregistryvalidation.WarrantExtraKey: {`{"user":"system:serviceaccount:default:foo","extra":{"authentication.kcp.io/cluster-name": ["another"]}}`}}},
181181
wantResourceRules: []authorizer.ResourceRuleInfo{getPods, getNodes},
182182
wantNonResourceRules: []authorizer.NonResourceRuleInfo{getRoot, getHealthz},
183183
},

pkg/proxy/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func appendClientCertAuthHeaders(header http.Header, user userinfo.Info, userHea
7575
}
7676

7777
for k, values := range user.GetExtra() {
78-
// Key must be encoded to enable e.g authentication.kubernetes.io/cluster-name
78+
// Key must be encoded to enable e.g authentication.kcp.io/cluster-name
7979
// This is decoded in the RequestHeader auth handler
8080
encodedKey := url.PathEscape(k)
8181
for _, v := range values {

pkg/server/localproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ func appendClientCertAuthHeaders(header http.Header, user userinfo.Info, userHea
320320
}
321321

322322
for k, values := range user.GetExtra() {
323-
// Key must be encoded to enable e.g authentication.kubernetes.io/cluster-name
323+
// Key must be encoded to enable e.g authentication.kcp.io/cluster-name
324324
// This is decoded in the RequestHeader auth handler
325325
encodedKey := url.PathEscape(k)
326326
for _, v := range values {

0 commit comments

Comments
 (0)