Merge pull request 'lint' (#4) from lint into master
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
						commit
						57b67e2132
					
				
					 6 changed files with 37 additions and 3 deletions
				
			
		
							
								
								
									
										23
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										23
									
								
								.drone.yml
									
									
									
									
									
								
							| 
						 | 
					@ -1,3 +1,23 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					kind: pipeline
 | 
				
			||||||
 | 
					name: lint
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					steps:
 | 
				
			||||||
 | 
					- name: yaml lint
 | 
				
			||||||
 | 
					  image: cytopia/yamllint
 | 
				
			||||||
 | 
					  commands:
 | 
				
			||||||
 | 
					  - yamllint .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: docker lint
 | 
				
			||||||
 | 
					  image: hadolint/hadolint
 | 
				
			||||||
 | 
					  commands:
 | 
				
			||||||
 | 
					  - hadolint Dockerfile  # ignore pinning version in pip
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: markdown lint
 | 
				
			||||||
 | 
					  image: pipelinecomponents/markdownlint:latest
 | 
				
			||||||
 | 
					  commands:
 | 
				
			||||||
 | 
					  - mdl --style all --warnings .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
kind: pipeline
 | 
					kind: pipeline
 | 
				
			||||||
name: build
 | 
					name: build
 | 
				
			||||||
| 
						 | 
					@ -16,6 +36,8 @@ steps:
 | 
				
			||||||
    event:
 | 
					    event:
 | 
				
			||||||
      exclude:
 | 
					      exclude:
 | 
				
			||||||
      - pull_request
 | 
					      - pull_request
 | 
				
			||||||
 | 
					depends_on:
 | 
				
			||||||
 | 
					- lint
 | 
				
			||||||
 | 
					
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
deploy_commands_alias:
 | 
					deploy_commands_alias:
 | 
				
			||||||
| 
						 | 
					@ -82,4 +104,3 @@ steps:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
depends_on:
 | 
					depends_on:
 | 
				
			||||||
- build
 | 
					- build
 | 
				
			||||||
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										3
									
								
								.hadolint.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.hadolint.yaml
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					ignored:
 | 
				
			||||||
 | 
					- DL3013
 | 
				
			||||||
							
								
								
									
										9
									
								
								.yamllint
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								.yamllint
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,9 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					extends: default
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					rules:
 | 
				
			||||||
 | 
					  indentation:
 | 
				
			||||||
 | 
					    indent-sequences: consistent
 | 
				
			||||||
 | 
					  line-length:
 | 
				
			||||||
 | 
					    max: 170
 | 
				
			||||||
 | 
					    level: warning
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
# q3_server_status
 | 
					# q3_server_status
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[](https://drone.kleph.eu/kleph/q3_server_status)
 | 
					[](https://drone.kleph.eu/kleph/q3_server_status)
 | 
				
			||||||
Q3 communication module is taken from here : https://github.com/gak/pyquake3
 | 
					Q3 communication module is taken from here : <https://github.com/gak/pyquake3>
 | 
				
			||||||
(thanks ! :) )
 | 
					(thanks ! :) )
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ apiVersion: rbac.authorization.k8s.io/v1
 | 
				
			||||||
kind: Role
 | 
					kind: Role
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: q3-deploy-role
 | 
					  name: q3-deploy-role
 | 
				
			||||||
  namespace: q3 # Should be namespace you are granting access to
 | 
					  namespace: q3
 | 
				
			||||||
rules:
 | 
					rules:
 | 
				
			||||||
- apiGroups: ["*"]
 | 
					- apiGroups: ["*"]
 | 
				
			||||||
  resources: ["*"]
 | 
					  resources: ["*"]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,4 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
apiVersion: v1
 | 
					apiVersion: v1
 | 
				
			||||||
kind: Service
 | 
					kind: Service
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue