File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,11 @@ async function run() {
4848
4949 core . info ( `Going to install kubebuilder ${ version } for ${ osPlat } -${ osArch } ` ) ;
5050
51- const downloadUrl = `https://go.kubebuilder.io/dl/ ${ version } / ${ osPlat } / ${ osArch } ` ;
51+
5252
5353 if ( majorVersion > 2 ) {
5454 core . debug ( `MajorVersion is greater than 2` ) ;
55+ const downloadUrl = `https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${ version } /kubebuilder_${ osPlat } _${ osArch } ` ;
5556 execSync ( `sudo mkdir -p /usr/local/kubebuilder/bin` ) ;
5657 execSync ( `sudo curl -L ${ downloadUrl } -o /usr/local/kubebuilder/bin/kubebuilder` ) ;
5758 execSync ( `sudo chmod +x /usr/local/kubebuilder/bin/kubebuilder` ) ;
@@ -76,6 +77,7 @@ async function run() {
7677 core . debug ( `No extra binary will be installed.` ) ;
7778 }
7879 } else {
80+ const downloadUrl = `https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${ version } /kubebuilder_${ version } _${ osPlat } _${ osArch } .tar.gz` ;
7981 execSync ( `curl -L ${ downloadUrl } | tar -xz -C /tmp/` ) ;
8082 execSync ( `sudo mv /tmp/kubebuilder_${ version } _${ osPlat } _${ osArch } / /usr/local/kubebuilder/` ) ;
8183 execSync ( `ls -la /usr/local/kubebuilder/bin` ) ;
You can’t perform that action at this time.
0 commit comments