Add support for deleting namespaces (users, organizations)
Fixes #102 Fixes #105
This commit is contained in:
		
							parent
							
								
									a74e94fb67
								
							
						
					
					
						commit
						73eb66eac5
					
				
					 23 changed files with 407 additions and 33 deletions
				
			
		
							
								
								
									
										14
									
								
								app.py
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								app.py
									
										
									
									
									
								
							|  | @ -208,11 +208,17 @@ dex_login = DexOAuthConfig(app.config, 'DEX_LOGIN_CONFIG') | |||
| 
 | ||||
| oauth_apps = [github_login, github_trigger, gitlab_trigger, google_login, dex_login] | ||||
| 
 | ||||
| image_replication_queue = WorkQueue(app.config['REPLICATION_QUEUE_NAME'], tf) | ||||
| image_replication_queue = WorkQueue(app.config['REPLICATION_QUEUE_NAME'], tf, has_namespace=False) | ||||
| dockerfile_build_queue = WorkQueue(app.config['DOCKERFILE_BUILD_QUEUE_NAME'], tf, | ||||
|                                    reporter=BuildMetricQueueReporter(metric_queue)) | ||||
| notification_queue = WorkQueue(app.config['NOTIFICATION_QUEUE_NAME'], tf) | ||||
| secscan_notification_queue = WorkQueue(app.config['SECSCAN_NOTIFICATION_QUEUE_NAME'], tf) | ||||
|                                    reporter=BuildMetricQueueReporter(metric_queue), | ||||
|                                    has_namespace=True) | ||||
| notification_queue = WorkQueue(app.config['NOTIFICATION_QUEUE_NAME'], tf, has_namespace=True) | ||||
| secscan_notification_queue = WorkQueue(app.config['SECSCAN_NOTIFICATION_QUEUE_NAME'], tf, | ||||
|                                        has_namespace=False) | ||||
| 
 | ||||
| all_queues = [image_replication_queue, dockerfile_build_queue, notification_queue, | ||||
|               secscan_notification_queue] | ||||
| 
 | ||||
| secscan_api = SecurityScannerAPI(app, app.config, storage) | ||||
| 
 | ||||
| # Check for a key in config. If none found, generate a new signing key for Docker V2 manifests. | ||||
|  |  | |||
		Reference in a new issue