Merge pull request #78 from ggriffiths/fix_csi_snapshotter_rbac_version_set
Fix csi-snapshotter RBAC yaml version
This commit is contained in:
		
						commit
						0fcc3b1bc9
					
				
							
								
								
									
										20
									
								
								prow.sh
								
								
								
								
							
							
						
						
									
										20
									
								
								prow.sh
								
								
								
								
							|  | @ -1064,18 +1064,24 @@ main () { | ||||||
|                 # always pulling the image |                 # always pulling the image | ||||||
|                 # (https://github.com/kubernetes-sigs/kind/issues/328). |                 # (https://github.com/kubernetes-sigs/kind/issues/328). | ||||||
|                 docker tag "$i:latest" "$i:csiprow" || die "tagging the locally built container image for $i failed" |                 docker tag "$i:latest" "$i:csiprow" || die "tagging the locally built container image for $i failed" | ||||||
|             done |  | ||||||
| 
 | 
 | ||||||
|             if [ -e deploy/kubernetes/rbac.yaml ]; then |                 # For components with multiple cmds, the RBAC file should be in the following format: | ||||||
|  |                 #   rbac-$cmd.yaml | ||||||
|  |                 # If this file cannot be found, we can default to the standard location: | ||||||
|  |                 #   deploy/kubernetes/rbac.yaml | ||||||
|  |                 rbac_file_path=$(find . -type f -name "rbac-$i.yaml") | ||||||
|  |                 if [ "$rbac_file_path" == "" ]; then | ||||||
|  |                     rbac_file_path="$(pwd)/deploy/kubernetes/rbac.yaml" | ||||||
|  |                 fi | ||||||
|  |                  | ||||||
|  |                 if [ -e "$rbac_file_path" ]; then | ||||||
|                     # This is one of those components which has its own RBAC rules (like external-provisioner). |                     # This is one of those components which has its own RBAC rules (like external-provisioner). | ||||||
|                     # We are testing a locally built image and also want to test with the the current, |                     # We are testing a locally built image and also want to test with the the current, | ||||||
|                     # potentially modified RBAC rules. |                     # potentially modified RBAC rules. | ||||||
|                 if [ "$(echo "$cmds" | wc -w)" != 1 ]; then |                     e=$(echo "$i" | tr '[:lower:]' '[:upper:]' | tr - _) | ||||||
|                     die "ambiguous deploy/kubernetes/rbac.yaml: need exactly one command, got: $cmds" |                     images="$images ${e}_RBAC=$rbac_file_path" | ||||||
|                 fi |  | ||||||
|                 e=$(echo "$cmds" | tr '[:lower:]' '[:upper:]' | tr - _) |  | ||||||
|                 images="$images ${e}_RBAC=$(pwd)/deploy/kubernetes/rbac.yaml" |  | ||||||
|                 fi |                 fi | ||||||
|  |             done | ||||||
|         fi |         fi | ||||||
| 
 | 
 | ||||||
|         if tests_need_non_alpha_cluster; then |         if tests_need_non_alpha_cluster; then | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue