Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: bcs-k8s-watch support k8s 1.16+ version, bcs-api compatible … #568

Merged
merged 1 commit into from
Sep 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bcs-k8s/bcs-k8s-driver/kubedriver/versions/metaurls.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ var apiVersionMap = map[string][]string{
"1.13+": apiSetV112,
"1.14": apiSetV112,
"1.14+": apiSetV112,
"1.15": apiSetV112,
"1.16": apiSetV112,
"1.17": apiSetV112,
"1.18": apiSetV112,
"1.19": apiSetV112,
"1.20": apiSetV112,
}

var apiSetV15 = []string{
Expand Down
2 changes: 1 addition & 1 deletion bcs-services/bcs-api/pkg/component/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (a *PaaSAuth) VerifyAccessTokenForIeod(accessToken string) (bool, map[strin

func (a *PaaSAuth) VerifyAccessTokenForEe(accessToken string) (bool, map[string]interface{}, error) {

url := fmt.Sprintf("%s/bkiam/api/v1/auth/access-tokens/verify", a.host)
url := fmt.Sprintf("%s/api/v1/auth/access-tokens/verify", a.host)

data := map[string]interface{}{
"access_token": accessToken,
Expand Down