-
Notifications
You must be signed in to change notification settings - Fork 602
cri-o: Replace openSUSE systemd macros with Mariner's #2874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,7 @@ Summary: OCI-based implementation of Kubernetes Container Runtime Interfa | |
| # Define macros for further referenced sources | ||
| Name: cri-o | ||
| Version: 1.21.2 | ||
| Release: 3%{?dist} | ||
| Release: 4%{?dist} | ||
| License: ASL 2.0 | ||
| Vendor: Microsoft Corporation | ||
| Distribution: Mariner | ||
|
|
@@ -114,24 +114,6 @@ cd $HOME/go/src/%{project} | |
| # Build crio | ||
| GO_BUILD="go build -mod vendor" make | ||
|
|
||
| %pre | ||
| %service_add_pre crio.service | ||
|
|
||
| %post | ||
| %service_add_post crio.service | ||
| # This is the additional directory where cri-o is going to look up for CNI | ||
| # plugins installed by DaemonSets running on Kubernetes (i.e. Cilium). | ||
| mkdir -p /opt/cni/bin | ||
|
|
||
| %post kubeadm-criconfig | ||
| %fillup_only -n kubelet | ||
|
|
||
| %preun | ||
| %service_del_preun crio.service | ||
|
|
||
| %postun | ||
| %service_del_postun crio.service | ||
|
|
||
| %install | ||
| cd $HOME/go/src/%{project} | ||
|
|
||
|
|
@@ -167,6 +149,21 @@ ln -sf service %{buildroot}%{_sbindir}/rccrio | |
|
|
||
| %fdupes %{buildroot}/%{_prefix} | ||
|
|
||
| %post | ||
| %systemd_post crio.service | ||
| # This is the additional directory where cri-o is going to look up for CNI | ||
| # plugins installed by DaemonSets running on Kubernetes (i.e. Cilium). | ||
| mkdir -p /opt/cni/bin | ||
|
|
||
| %post kubeadm-criconfig | ||
| %fillup_only -n kubelet | ||
|
|
||
| %preun | ||
| %systemd_preun crio.service | ||
|
|
||
| %postun | ||
| %systemd_postun_with_restart crio.service | ||
|
|
||
| %files | ||
| # Binaries | ||
| %{_bindir}/crio | ||
|
|
@@ -206,6 +203,9 @@ ln -sf service %{buildroot}%{_sbindir}/rccrio | |
| %{_fillupdir}/sysconfig.kubelet | ||
|
|
||
| %changelog | ||
| * Mon Apr 25 2022 Olivia Crain <[email protected]> - 1.21.2-4 | ||
| - Replace openSUSE systemd macros with upstream systemd macros | ||
|
|
||
| * Wed Sep 29 2021 Pawel Winogrodzki <[email protected]> - 1.21.2-3 | ||
| - Added missing BR on "systemd-rpm-macros". | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.