mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	fix rsync err when make release
This commit is contained in:
		@@ -19,6 +19,9 @@ set -o errexit
 | 
				
			|||||||
set -o nounset
 | 
					set -o nounset
 | 
				
			||||||
set -o pipefail
 | 
					set -o pipefail
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					USER_ID=$(id -u)
 | 
				
			||||||
 | 
					GROUP_ID=$(id -g)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
DOCKER_OPTS=${DOCKER_OPTS:-""}
 | 
					DOCKER_OPTS=${DOCKER_OPTS:-""}
 | 
				
			||||||
DOCKER=(docker ${DOCKER_OPTS})
 | 
					DOCKER=(docker ${DOCKER_OPTS})
 | 
				
			||||||
DOCKER_HOST=${DOCKER_HOST:-""}
 | 
					DOCKER_HOST=${DOCKER_HOST:-""}
 | 
				
			||||||
@@ -407,6 +410,8 @@ function kube::build::clean() {
 | 
				
			|||||||
# Set up the context directory for the kube-build image and build it.
 | 
					# Set up the context directory for the kube-build image and build it.
 | 
				
			||||||
function kube::build::build_image() {
 | 
					function kube::build::build_image() {
 | 
				
			||||||
  mkdir -p "${LOCAL_OUTPUT_BUILD_CONTEXT}"
 | 
					  mkdir -p "${LOCAL_OUTPUT_BUILD_CONTEXT}"
 | 
				
			||||||
 | 
					  # Make sure the context directory owned by the right user for syncing sources to container.
 | 
				
			||||||
 | 
					  chown -R ${USER_ID}.${GROUP_ID} "${LOCAL_OUTPUT_BUILD_CONTEXT}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  cp /etc/localtime "${LOCAL_OUTPUT_BUILD_CONTEXT}/"
 | 
					  cp /etc/localtime "${LOCAL_OUTPUT_BUILD_CONTEXT}/"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -494,7 +499,7 @@ function kube::build::ensure_data_container() {
 | 
				
			|||||||
      --name "${KUBE_DATA_CONTAINER_NAME}"
 | 
					      --name "${KUBE_DATA_CONTAINER_NAME}"
 | 
				
			||||||
      --hostname "${HOSTNAME}"
 | 
					      --hostname "${HOSTNAME}"
 | 
				
			||||||
      "${KUBE_BUILD_IMAGE}"
 | 
					      "${KUBE_BUILD_IMAGE}"
 | 
				
			||||||
      chown -R $(id -u).$(id -g)
 | 
					      chown -R ${USER_ID}.${GROUP_ID}
 | 
				
			||||||
        "${REMOTE_ROOT}"
 | 
					        "${REMOTE_ROOT}"
 | 
				
			||||||
        /usr/local/go/pkg/
 | 
					        /usr/local/go/pkg/
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user