mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	middleware/kubernetes: Implement current federation beta (#723)
* federation initial commit * UTs/bugfixes * federation bits * polish, cover UT gaps * add TODO * go fmt & todo note * remove unrelated change * pr changes * start node watcher * get real node name * remove unused case
This commit is contained in:
		
				
					committed by
					
						 John Belamaric
						John Belamaric
					
				
			
			
				
	
			
			
			
						parent
						
							8e86fa6f23
						
					
				
				
					commit
					930c54ef62
				
			| @@ -177,6 +177,19 @@ func kubernetesParse(c *caddy.Controller) (*Kubernetes, error) { | ||||
| 						return nil, err | ||||
| 					} | ||||
| 					k8s.Proxy = proxy.NewLookup(ups) | ||||
| 				case "federation": // name zone | ||||
| 					args := c.RemainingArgs() | ||||
| 					if len(args) == 2 { | ||||
| 						k8s.Federations = append(k8s.Federations, Federation{ | ||||
| 							name: args[0], | ||||
| 							zone: args[1], | ||||
| 						}) | ||||
| 						continue | ||||
| 					} else { | ||||
| 						return nil, fmt.Errorf("Incorrect number of arguments for federation. Got %v, expect 2.", len(args)) | ||||
| 					} | ||||
| 					return nil, c.ArgErr() | ||||
|  | ||||
| 				} | ||||
| 			} | ||||
| 			return k8s, nil | ||||
|   | ||||
		Reference in New Issue
	
	Block a user