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

Fix the nil panic because of am.AccessManagementInterface #10

Closed
wants to merge 1 commit into from

Conversation

LinuxSuRen
Copy link
Contributor

@LinuxSuRen LinuxSuRen commented Aug 3, 2021

fix #9

surenpi/ks-devops-plugin-apiserver:latest

@ks-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: LinuxSuRen

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@JohnNiang
Copy link
Contributor

I've built this ks-devops-plugin as docker image and applied it to my environment. But there is still an error as below:

image

Full log of ks-devops-plugin:

 W0804 03:14:08.776084       1 client_config.go:552] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.

 W0804 03:14:08.778156       1 options.go:107] ks-apiserver starts without redis provided, it will use in memory cache. This may cause inconsistencies when running ks-apiserver with multiple replicas.

 I0804 03:14:08.811598       1 apiserver.go:196] Start cache objects

 I0804 03:14:09.431530       1 apiserver.go:315] Finished caching objects

 I0804 03:14:09.431580       1 apiserver.go:150] Start listening on :9090

 &{test  [system:authenticated] map[]} my-workspace &{0xc0009b7e50 creationTimestamp false map[] }

 E0804 03:15:17.430487       1 devops.go:86] resource is not supported

 E0804 03:15:17.430547       1 utils.go:76] /workspace/pkg/kapis/tenant/v1alpha2/handler.go:71 resource is not supported

 I0804 03:15:17.430732       1 apiserver.go:352] 10.233.66.119 - "GET /kapis/tenant.kubesphere.io/v1alpha2/workspaces/my-workspace/devops?limit=10 HTTP/1.1" 500 26 0ms

 &{test  [system:authenticated] map[]} my-workspace &{0xc000dc9cc0 creationTimestamp false map[] }

 E0804 03:15:18.553306       1 devops.go:86] resource is not supported

 E0804 03:15:18.553329       1 utils.go:76] /workspace/pkg/kapis/tenant/v1alpha2/handler.go:71 resource is not supported

 I0804 03:15:18.553473       1 apiserver.go:352] 10.233.66.119 - "GET /kapis/tenant.kubesphere.io/v1alpha2/workspaces/my-workspace/devops?limit=10 HTTP/1.1" 500 26 0ms

 &{test  [system:authenticated] map[]} my-workspace &{0xc0004123f0 creationTimestamp false map[] }

 E0804 03:15:22.992938       1 devops.go:86] resource is not supported

 E0804 03:15:22.993085       1 utils.go:76] /workspace/pkg/kapis/tenant/v1alpha2/handler.go:71 resource is not supported

 I0804 03:15:22.993228       1 apiserver.go:352] 10.233.66.119 - "GET /kapis/tenant.kubesphere.io/v1alpha2/workspaces/my-workspace/devops?limit=10 HTTP/1.1" 500 26 1ms

 E0804 03:15:24.129815       1 devops.go:86] resource is not supported

 E0804 03:15:24.129848       1 utils.go:76] /workspace/pkg/kapis/tenant/v1alpha2/handler.go:71 resource is not supported

 I0804 03:15:24.129882       1 apiserver.go:352] 10.233.66.119 - "GET /kapis/tenant.kubesphere.io/v1alpha2/workspaces/my-workspace/devops?limit=10 HTTP/1.1" 500 26 0ms

 &{test  [system:authenticated] map[]} my-workspace &{0xc000494170 creationTimestamp false map[] }

@LinuxSuRen , please take a look at it.

@JohnNiang
Copy link
Contributor

If I missed anything, please feel free to correct me or provide some steps to test.

@LinuxSuRen LinuxSuRen closed this Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bad gateway occurred when an account with operator role list DevOps projects
3 participants