File tree Expand file tree Collapse file tree 2 files changed +36
-24
lines changed Expand file tree Collapse file tree 2 files changed +36
-24
lines changed Original file line number Diff line number Diff line change @@ -21,32 +21,38 @@ release_filegroup(
21
21
name = "debs" ,
22
22
conditioned_srcs = for_platforms (
23
23
default = [],
24
- for_client = [":kubectl-{ARCH} .deb" ],
24
+ for_client = [":kubectl.deb" ],
25
25
for_node = [
26
- ":cri-tools-{ARCH} .deb" ,
27
- ":kubeadm-{ARCH} .deb" ,
28
- ":kubelet-{ARCH} .deb" ,
29
- ":kubernetes-cni-{ARCH} .deb" ,
26
+ ":cri-tools.deb" ,
27
+ ":kubeadm.deb" ,
28
+ ":kubelet.deb" ,
29
+ ":kubernetes-cni.deb" ,
30
30
],
31
31
only_os = "linux" ,
32
32
),
33
33
)
34
34
35
- # Create aliases from the non- arch names to the arch-specific names for backwards compatibility
36
- alias (
35
+ # Create genrules to copy the arch-specific debs to debs without the arch in their filename.
36
+ genrule (
37
37
name = "kubectl" ,
38
- actual = select (for_platforms (
39
- for_client = ":kubectl-{ARCH}" ,
38
+ srcs = select (for_platforms (
39
+ for_client = [ ":kubectl-{ARCH}.deb" ] ,
40
40
only_os = "linux" ,
41
41
)),
42
+ outs = ["kubectl.deb" ],
43
+ cmd = "cp $< $@" ,
44
+ output_to_bindir = True ,
42
45
)
43
46
44
- [alias (
47
+ [genrule (
45
48
name = pkg ,
46
- actual = select (for_platforms (
47
- for_node = ":%s-{ARCH}" % pkg ,
49
+ srcs = select (for_platforms (
50
+ for_node = [ ":%s-{ARCH}.deb " % pkg ] ,
48
51
only_os = "linux" ,
49
52
)),
53
+ outs = ["%s.deb" % pkg ],
54
+ cmd = "cp $< $@" ,
55
+ output_to_bindir = True ,
50
56
) for pkg in [
51
57
"cri-tools" ,
52
58
"kubeadm" ,
Original file line number Diff line number Diff line change @@ -9,34 +9,40 @@ release_filegroup(
9
9
name = "rpms" ,
10
10
conditioned_srcs = for_platforms (
11
11
default = [],
12
- for_client = [":kubectl-{ARCH} " ],
12
+ for_client = [":kubectl.rpm " ],
13
13
for_node = [
14
- ":cri-tools-{ARCH} " ,
15
- ":kubeadm-{ARCH} " ,
16
- ":kubelet-{ARCH} " ,
17
- ":kubernetes-cni-{ARCH} " ,
14
+ ":cri-tools.rpm " ,
15
+ ":kubeadm.rpm " ,
16
+ ":kubelet.rpm " ,
17
+ ":kubernetes-cni.rpm " ,
18
18
],
19
19
only_os = "linux" ,
20
20
),
21
21
tags = ["manual" ],
22
22
visibility = ["//visibility:public" ],
23
23
)
24
24
25
- # Create aliases from the non- arch names to the arch-specific names for backwards compatibility
26
- alias (
25
+ # Create genrules to copy the arch-specific RPMs to RPMs without the arch in their filename.
26
+ genrule (
27
27
name = "kubectl" ,
28
- actual = select (for_platforms (
29
- for_client = ":kubectl-{ARCH}" ,
28
+ srcs = select (for_platforms (
29
+ for_client = [ ":kubectl-{ARCH}.rpm" ] ,
30
30
only_os = "linux" ,
31
31
)),
32
+ outs = ["kubectl.rpm" ],
33
+ cmd = "cp $< $@" ,
34
+ output_to_bindir = True ,
32
35
)
33
36
34
- [alias (
37
+ [genrule (
35
38
name = pkg ,
36
- actual = select (for_platforms (
37
- for_client = ":%s-{ARCH}" % pkg ,
39
+ srcs = select (for_platforms (
40
+ for_client = [ ":%s-{ARCH}.rpm " % pkg ] ,
38
41
only_os = "linux" ,
39
42
)),
43
+ outs = ["%s.rpm" % pkg ],
44
+ cmd = "cp $< $@" ,
45
+ output_to_bindir = True ,
40
46
) for pkg in [
41
47
"cri-tools" ,
42
48
"kubeadm" ,
You can’t perform that action at this time.
0 commit comments