File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ KUBERNETES_VERSION=1.32.5
33KUSTOMIZE_VERSION  = 5.6.0
44BINDIR  := $(abspath  $(PWD ) /../bin) 
55
6+ ARCH  := $(shell  uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/') 
7+ OS  := $(shell  uname -s | tr '[:upper:]' '[:lower:]') 
68KIND  := $(BINDIR ) /kind
79KUBECTL  := $(BINDIR ) /kubectl
810KUSTOMIZE  := $(BINDIR ) /kustomize
@@ -154,15 +156,15 @@ enable-certs-rotation:
154156
155157$(KIND ) 
156158	mkdir -p $(dir  $@ ) 
157- 	curl -sfL -o $@  https://github.com/kubernetes-sigs/kind/releases/download/v$(KIND_VERSION ) /kind-linux-amd64 
159+ 	curl -sfL -o $@  https://github.com/kubernetes-sigs/kind/releases/download/v$(KIND_VERSION ) /kind-$( OS ) - $( ARCH ) 
158160	chmod a+x $@ 
159161
160162$(KUBECTL ) 
161163	mkdir -p $(dir  $@ ) 
162- 	curl -sfL -o $@  https://dl.k8s.io/release/v$(KUBERNETES_VERSION ) /bin/linux/amd64 /kubectl
164+ 	curl -sfL -o $@  https://dl.k8s.io/release/v$(KUBERNETES_VERSION ) /bin/$( OS ) / $( ARCH ) 
163165	chmod a+x $@ 
164166
165167$(KUSTOMIZE ) 
166168	mkdir -p $(dir  $@ ) 
167- 	curl -sfL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv$(KUSTOMIZE_VERSION ) /kustomize_v$(KUSTOMIZE_VERSION ) _linux_amd64 .tar.gz |  tar -xz -C $(BINDIR ) 
169+ 	curl -sfL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv$(KUSTOMIZE_VERSION ) /kustomize_v$(KUSTOMIZE_VERSION ) _ $( OS ) _ $( ARCH ) |  tar -xz -C $(BINDIR ) 
168170	chmod a+x $@ 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments