mirror of
				https://github.com/honestbee/drone-kubernetes.git
				synced 2025-11-04 09:08:07 +00:00 
			
		
		
		
	Refactor stateful plugin name
This commit is contained in:
		
							parent
							
								
									f9a988af29
								
							
						
					
					
						commit
						ceababa555
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -38,10 +38,10 @@ kubectl config use-context default
 | 
			
		|||
if [ ! -z ${PLUGIN_USE_STATEFULSET} ]; then
 | 
			
		||||
    echo "WARNING: Currently updating statefulset ${PLUGIN_STATEFULSET}."
 | 
			
		||||
 | 
			
		||||
    IFS=',' read -r -a DEPLOYMENTS <<< "${PLUGIN_STATEFULSET}"
 | 
			
		||||
    IFS=',' read -r -a STATEFULSETS <<< "${PLUGIN_STATEFULSET}"
 | 
			
		||||
    IFS=',' read -r -a CONTAINERS <<< "${PLUGIN_CONTAINER}"
 | 
			
		||||
    for DEPLOY in ${DEPLOYMENTS[@]}; do
 | 
			
		||||
      echo Deploying to $KUBERNETES_SERVER
 | 
			
		||||
    for DEPLOY in ${STATEFULSETS[@]}; do
 | 
			
		||||
      echo Deploying statefulset to $KUBERNETES_SERVER
 | 
			
		||||
      for CONTAINER in ${CONTAINERS[@]}; do
 | 
			
		||||
        if [[ ${PLUGIN_FORCE} == "true" ]]; then
 | 
			
		||||
          kubectl -n ${PLUGIN_NAMESPACE} set image statefulset/${DEPLOY} \
 | 
			
		||||
| 
						 | 
				
			
			@ -69,5 +69,4 @@ else
 | 
			
		|||
      done
 | 
			
		||||
    done
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue