mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Fix commitFromGit -> gitCommit in release/build-release.sh
This caused Jenkins break on e2e-test because the version of server and
client did not match exactly, as the server was built without the
version ldflags.
Tested:
- Ran "release/build-release.sh ${instance_name}" and confirmed that
  output/release/master-release/src/saltbase/pillar/common.sls has the
  git version under version.gitCommit no longer version.commitFromGit.
Fixes: b777eb19e2
			
			
This commit is contained in:
		@@ -49,7 +49,7 @@ version=$(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
cat << EOF > $MASTER_RELEASE_DIR/src/saltbase/pillar/common.sls
 | 
					cat << EOF > $MASTER_RELEASE_DIR/src/saltbase/pillar/common.sls
 | 
				
			||||||
instance_prefix: $INSTANCE_PREFIX-minion
 | 
					instance_prefix: $INSTANCE_PREFIX-minion
 | 
				
			||||||
go_opt: -ldflags "-X github.com/GoogleCloudPlatform/kubernetes/pkg/version.commitFromGit '$version'"
 | 
					go_opt: -ldflags "-X github.com/GoogleCloudPlatform/kubernetes/pkg/version.gitCommit '$version'"
 | 
				
			||||||
EOF
 | 
					EOF
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function find_go_files() {
 | 
					function find_go_files() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user