create admin ns for devops project

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2020-03-23 15:56:37 +08:00
parent 0ac15ea744
commit e06a1a8335
5 changed files with 278 additions and 21 deletions

View File

@@ -86,6 +86,7 @@ func AddControllers(
kubesphereInformer.Devops().V1alpha1().S2iRuns())
devopsProjectController := devopsproject.NewController(client.Kubernetes(),
client.KubeSphere(), devopsClient,
informerFactory.KubernetesSharedInformerFactory().Core().V1().Namespaces(),
informerFactory.KubeSphereSharedInformerFactory().Devops().V1alpha3().DevOpsProjects(),
)