35
35
# Git related details
36
36
%global shortcommit %(c= %{commit }; echo ${c:0:7})
37
37
38
+ # Don't build flannel subpackage by default
39
+ %{! ?with_flannel: %global with_flannel 0}
40
+
38
41
Name: microshift
39
42
Version: %{version }
40
43
Release: %{release }%{dist }
@@ -165,6 +168,7 @@ The microshift-multus-release-info package provides release information files fo
165
168
release. These files contain the list of container image references used by
166
169
the Multus CNI for MicroShift and can be used to embed those images into osbuilder blueprints.
167
170
171
+ %if %{with_flannel }
168
172
%package flannel
169
173
Summary: flannel CNI for MicroShift
170
174
ExclusiveArch: x86_64 aarch64
@@ -184,6 +188,7 @@ The microshift-flannel-release-info package provides release information files f
184
188
release. These files contain the list of container image references used by the flannel CNI
185
189
with the dependent kube-proxy for MicroShift and can be used to embed those images
186
190
into osbuilder blueprints.
191
+ %endif
187
192
188
193
%package low-latency
189
194
Summary: Baseline configuration for running low latency workload on MicroShift
@@ -379,6 +384,7 @@ cat assets/optional/multus/kustomization.x86_64.yaml >> %{buildroot}/%{_prefix}/
379
384
mkdir -p -m755 %{buildroot }%{_datadir }/microshift/release
380
385
install -p -m644 assets/optional/multus/release-multus-{x86_64 ,aarch64 }.json %{buildroot }%{_datadir }/microshift/release/
381
386
387
+ %if %{with_flannel }
382
388
# kube-proxy
383
389
install -d -m755 %{buildroot }/%{_prefix }/lib/microshift/manifests.d/000-microshift-kube-proxy
384
390
# Copy all the manifests except the arch specific ones
@@ -417,6 +423,7 @@ cat assets/optional/flannel/kustomization.x86_64.yaml >> %{buildroot}/%{_prefix}
417
423
# flannel-release-info
418
424
mkdir -p -m755 %{buildroot }%{_datadir }/microshift/release
419
425
install -p -m644 assets/optional/flannel/release-flannel-{x86_64 ,aarch64 }.json %{buildroot }%{_datadir }/microshift/release/
426
+ %endif
420
427
421
428
# cleanup kubelet
422
429
install -p -m644 packaging/tuned/microshift-cleanup-kubelet.service %{buildroot }%{_unitdir }/microshift-cleanup-kubelet.service
569
576
%files multus-release-info
570
577
%{_datadir }/microshift/release/release-multus-{x86_64,aarch64}.json
571
578
579
+ %if %{with_flannel }
572
580
%files flannel
573
581
%dir %{_prefix }/lib/microshift/manifests.d/000-microshift-flannel
574
582
%dir %{_prefix }/lib/microshift/manifests.d/000-microshift-kube-proxy
580
588
%files flannel-release-info
581
589
%{_datadir }/microshift/release/release-flannel-{x86_64,aarch64}.json
582
590
%{_datadir }/microshift/release/release-kube-proxy-{x86_64,aarch64}.json
591
+ %endif
583
592
584
593
%files low-latency
585
594
%{_prefix }/lib/tuned/microshift-baseline
0 commit comments