mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 10:18:13 +00:00 
			
		
		
		
	update verify script to check deprecated fields
Signed-off-by: Akhil Mohan <makhil@vmware.com>
This commit is contained in:
		| @@ -80,7 +80,13 @@ def main(): | ||||
|             continue | ||||
|  | ||||
|         for item in rule["branches"]: | ||||
|             if not item["source"]["dir"].endswith(rule["destination"]): | ||||
|             if "dir" in item["source"]: | ||||
|                 raise Exception("use of deprecated `dir` field in rules for `%s`" % (rule["destination"])) | ||||
|             if len(item["source"]["dirs"]) > 1: | ||||
|                 raise Exception("cannot have more than one directory (`%s`) per source branch `%s` of `%s`" % | ||||
|                                 (item["source"]["dirs"], item["source"]["branch"], rule["destination"]) | ||||
|                                 ) | ||||
|             if not item["source"]["dirs"][0].endswith(rule["destination"]): | ||||
|                 raise Exception("copy/paste error `%s` refers to `%s`" % (rule["destination"],item["source"]["dir"])) | ||||
|  | ||||
|         if branch["name"] != "master": | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Akhil Mohan
					Akhil Mohan