File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ install::kubectl(){
5050 local temp
5151 temp=" $( fs::mktemp " install" ) "
5252
53- http::get " $temp " /kubectl " https://storage.googleapis.com/kubernetes-release/release/$version /bin/linux/${GOARCH:- amd64} /kubectl"
53+ http::get " $temp " /kubectl " https://dl.k8s.io/release/$version /bin/linux/${GOARCH:- amd64} /kubectl"
54+
5455 host::install " $temp " /kubectl
5556}
5657
Original file line number Diff line number Diff line change @@ -65,7 +65,10 @@ func (ir *ImageReference) FamiliarName() string {
6565}
6666
6767func (ir * ImageReference ) FamiliarMatch (pattern string ) (bool , error ) {
68- return reference .FamiliarMatch (pattern , ir .nn )
68+ if ir .nn != nil {
69+ return reference .FamiliarMatch (pattern , ir .nn )
70+ }
71+ return false , nil
6972}
7073
7174func (ir * ImageReference ) String () string {
You can’t perform that action at this time.
0 commit comments