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() {
48
48
49
49
core . info ( `Going to install kubebuilder ${ version } for ${ osPlat } -${ osArch } ` ) ;
50
50
51
- const downloadUrl = `https://go.kubebuilder.io/dl/ ${ version } / ${ osPlat } / ${ osArch } ` ;
51
+
52
52
53
53
if ( majorVersion > 2 ) {
54
54
core . debug ( `MajorVersion is greater than 2` ) ;
55
+ const downloadUrl = `https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${ version } /kubebuilder_${ osPlat } _${ osArch } ` ;
55
56
execSync ( `sudo mkdir -p /usr/local/kubebuilder/bin` ) ;
56
57
execSync ( `sudo curl -L ${ downloadUrl } -o /usr/local/kubebuilder/bin/kubebuilder` ) ;
57
58
execSync ( `sudo chmod +x /usr/local/kubebuilder/bin/kubebuilder` ) ;
@@ -76,6 +77,7 @@ async function run() {
76
77
core . debug ( `No extra binary will be installed.` ) ;
77
78
}
78
79
} else {
80
+ const downloadUrl = `https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${ version } /kubebuilder_${ version } _${ osPlat } _${ osArch } .tar.gz` ;
79
81
execSync ( `curl -L ${ downloadUrl } | tar -xz -C /tmp/` ) ;
80
82
execSync ( `sudo mv /tmp/kubebuilder_${ version } _${ osPlat } _${ osArch } / /usr/local/kubebuilder/` ) ;
81
83
execSync ( `ls -la /usr/local/kubebuilder/bin` ) ;
You can’t perform that action at this time.
0 commit comments