mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Link apiextensions-apiserver binary statically
				
					
				
			The apiextensions-apiserver itself only depends on the following runtime
libraries when linking dynamically:
```
> ldd _output/bin/apiextensions-apiserver
        linux-vdso.so.1 (0x00007ffd1b39f000)
        libpthread.so.0 => /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/libpthread.so.0 (0x00007fe836022000)
        libc.so.6 => /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/libc.so.6 (0x00007fe835e00000)
        /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/ld-linux-x86-64.so.2 => /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib64/ld-linux-x86-64.so.2 (0x00007fe836029000)
```
We now move the apiextensions-apiserver to become a static binary as
well to achieve maximum portability.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
			
			
This commit is contained in:
		@@ -324,6 +324,7 @@ readonly KUBE_ALL_TARGETS=(
 | 
				
			|||||||
readonly KUBE_ALL_BINARIES=("${KUBE_ALL_TARGETS[@]##*/}")
 | 
					readonly KUBE_ALL_BINARIES=("${KUBE_ALL_TARGETS[@]##*/}")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
readonly KUBE_STATIC_LIBRARIES=(
 | 
					readonly KUBE_STATIC_LIBRARIES=(
 | 
				
			||||||
 | 
					  apiextensions-apiserver
 | 
				
			||||||
  kube-aggregator
 | 
					  kube-aggregator
 | 
				
			||||||
  kube-apiserver
 | 
					  kube-apiserver
 | 
				
			||||||
  kube-controller-manager
 | 
					  kube-controller-manager
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user