Skip to content

Commit f55469f

Browse files
authored
fix: migrate ExecCredential API from v1beta1 to v1 (#641)
client.authentication.k8s.io/v1beta1 has been deprecated and removed in recent Kubernetes versions. Update to v1 which has an identical response structure.
1 parent 9fd597c commit f55469f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/pomerium-cli/kubernetes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func parseToken(rawjwt string) (*ExecCredential, error) {
115115

116116
return &ExecCredential{
117117
TypeMeta: TypeMeta{
118-
APIVersion: "client.authentication.k8s.io/v1beta1",
118+
APIVersion: "client.authentication.k8s.io/v1",
119119
Kind: "ExecCredential",
120120
},
121121
Status: &ExecCredentialStatus{

0 commit comments

Comments
 (0)