Skip to content

Commit 0f1b8ac

Browse files
committed
typo
1 parent 1beb2ef commit 0f1b8ac

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

deploy/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ vm=testvm
9595
ns=default
9696
apigroup=subresources.kubevirt.io
9797
resource=virtualmachineinstances
98+
path=k8s/apis/subresources.kubevirt.io/v1alpha3/namespaces/default/virtualmachineinstances/testvm/vnc
9899
proxyurl=https://kube-gateway.apps-crc.testing
99100

100101
# Use admin token to request a temporary JWT access key

pkg/proxy/token.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ func getTokenData(claims jwt.MapClaims) ocgatev1beta1.GateToken {
3030
var t ocgatev1beta1.GateToken
3131
var ok bool
3232

33+
log.Printf("t.Status.Data [%+v]", t.Status.Data)
34+
3335
if t.Status.Data.Namespace, ok = claims["namespace"].(string); !ok {
3436
t.Status.Data.Namespace = "*"
3537
}
@@ -71,7 +73,7 @@ func getRequstResource(request string) (namespace string, apiGroup string, resou
7173
apiGroup = ""
7274
requestList = requestList[2:]
7375
} else {
74-
apiGroup = requestList[1]
76+
apiGroup = requestList[2]
7577
requestList = requestList[3:]
7678
}
7779

0 commit comments

Comments
 (0)