mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 02:08:13 +00:00 
			
		
		
		
	verify-openapi-spec.sh should not ignore extra file in the spec folder api/openapi-spec
This commit is contained in:
		| @@ -32,14 +32,15 @@ TMP_SPECROOT="${KUBE_ROOT}/_tmp/openapi-spec" | |||||||
| _tmp="${KUBE_ROOT}/_tmp" | _tmp="${KUBE_ROOT}/_tmp" | ||||||
|  |  | ||||||
| mkdir -p "${_tmp}" | mkdir -p "${_tmp}" | ||||||
| trap "rm -rf ${_tmp}" EXIT SIGINT |  | ||||||
| cp -a "${SPECROOT}" "${TMP_SPECROOT}" | cp -a "${SPECROOT}" "${TMP_SPECROOT}" | ||||||
|  | trap "cp -a ${TMP_SPECROOT} ${SPECROOT}/..; rm -rf ${_tmp}" EXIT SIGINT | ||||||
|  | rm ${SPECROOT}/* | ||||||
|  | cp ${TMP_SPECROOT}/BUILD ${SPECROOT}/BUILD  | ||||||
|  |  | ||||||
| "${KUBE_ROOT}/hack/update-openapi-spec.sh" | "${KUBE_ROOT}/hack/update-openapi-spec.sh" | ||||||
| echo "diffing ${SPECROOT} against freshly generated openapi spec" | echo "diffing ${SPECROOT} against freshly generated openapi spec" | ||||||
| ret=0 | ret=0 | ||||||
| diff -Naupr -I 'Auto generated by' "${SPECROOT}" "${TMP_SPECROOT}" || ret=$? | diff -Naupr -I 'Auto generated by' "${SPECROOT}" "${TMP_SPECROOT}" || ret=$? | ||||||
| cp -a ${TMP_SPECROOT} "${KUBE_ROOT}/api" |  | ||||||
| if [[ $ret -eq 0 ]] | if [[ $ret -eq 0 ]] | ||||||
| then | then | ||||||
|   echo "${SPECROOT} up to date." |   echo "${SPECROOT} up to date." | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 mbohlool
					mbohlool