Change-Id: I318ef19cc420ea55ef377bb27699a28f5ff9097a
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4345
Reviewed-by: gerrit-photon <photon-checkins@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
| ... | ... |
@@ -1,15 +1,17 @@ |
| 1 | 1 |
Summary: Calico Network Policy for Kubernetes |
| 2 | 2 |
Name: calico-k8s-policy |
| 3 |
-Version: 0.7.0 |
|
| 3 |
+Version: 1.0.0 |
|
| 4 | 4 |
Release: 1%{?dist}
|
| 5 | 5 |
License: Apache-2.0 |
| 6 | 6 |
URL: https://github.com/projectcalico/k8s-policy |
| 7 | 7 |
Source0: %{name}-%{version}.tar.gz
|
| 8 |
-%define sha1 calico-k8s-policy=4a2fb4a877c130a14e7836ea75e27397aa9f6fbc |
|
| 8 |
+%define sha1 calico-k8s-policy=612eafdb2afee6ffbfc432e0110c787823b66ccc |
|
| 9 | 9 |
Group: Development/Tools |
| 10 | 10 |
Vendor: VMware, Inc. |
| 11 | 11 |
Distribution: Photon |
| 12 | 12 |
BuildRequires: git |
| 13 |
+BuildRequires: glide |
|
| 14 |
+BuildRequires: go >= 1.8 |
|
| 13 | 15 |
BuildRequires: libcalico |
| 14 | 16 |
BuildRequires: libffi-devel |
| 15 | 17 |
BuildRequires: openssl-devel |
| ... | ... |
@@ -61,9 +63,16 @@ Calico Network Policy enables Calico to enforce network policy on top of Calico |
| 61 | 61 |
echo "VERSION='`git describe --tags --dirty`'" > version.py |
| 62 | 62 |
|
| 63 | 63 |
%build |
| 64 |
-pyinstaller controller.py -ayF |
|
| 64 |
+mkdir -p /root/.glide |
|
| 65 |
+mkdir -p ${GOPATH}/src/github.com/projectcalico/k8s-policy
|
|
| 66 |
+cp -r * ${GOPATH}/src/github.com/projectcalico/k8s-policy
|
|
| 67 |
+pushd ${GOPATH}/src/github.com/projectcalico/k8s-policy
|
|
| 68 |
+glide install -strip-vendor |
|
| 69 |
+mkdir -p dist |
|
| 70 |
+CGO_ENABLED=0 go build -v -o dist/controller -ldflags "-X main.VERSION=%{version}" ./main.go
|
|
| 65 | 71 |
|
| 66 | 72 |
%install |
| 73 |
+pushd ${GOPATH}/src/github.com/projectcalico/k8s-policy
|
|
| 67 | 74 |
install -vdm 755 %{buildroot}%{_bindir}
|
| 68 | 75 |
install -vpm 0755 -t %{buildroot}%{_bindir}/ dist/controller
|
| 69 | 76 |
|
| ... | ... |
@@ -72,6 +81,8 @@ install -vpm 0755 -t %{buildroot}%{_bindir}/ dist/controller
|
| 72 | 72 |
%{_bindir}/controller
|
| 73 | 73 |
|
| 74 | 74 |
%changelog |
| 75 |
+* Tue Nov 14 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.0.0-1 |
|
| 76 |
+- Calico kubernetes policy v1.0.0. |
|
| 75 | 77 |
* Tue Nov 07 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.7.0-1 |
| 76 | 78 |
- Calico kubernetes policy v0.7.0. |
| 77 | 79 |
* Tue Aug 22 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.5.4-1 |
| ... | ... |
@@ -1,11 +1,11 @@ |
| 1 | 1 |
Summary: Overlay network for containers based on etcd |
| 2 | 2 |
Name: flannel |
| 3 |
-Version: 0.8.0 |
|
| 4 |
-Release: 2%{?dist}
|
|
| 3 |
+Version: 0.9.0 |
|
| 4 |
+Release: 1%{?dist}
|
|
| 5 | 5 |
License: ASL 2.0 |
| 6 | 6 |
URL: https://github.com/coreos/flannel |
| 7 | 7 |
Source0: https://github.com/coreos/flannel/archive/%{name}-%{version}.tar.gz
|
| 8 |
-%define sha1 flannel=d8eb057233de1babd306297d4fc3af098ccbea16 |
|
| 8 |
+%define sha1 flannel=3d27b1d1747b9c3706a711955b0f9a67046b0841 |
|
| 9 | 9 |
Group: Development/Tools |
| 10 | 10 |
Vendor: VMware, Inc. |
| 11 | 11 |
Distribution: Photon |
| ... | ... |
@@ -93,6 +93,8 @@ GOPATH=%{_builddir} make test
|
| 93 | 93 |
%config(noreplace) %{_sysconfdir}/flannel/flanneld.conf
|
| 94 | 94 |
|
| 95 | 95 |
%changelog |
| 96 |
+* Tue Nov 14 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.9.0-1 |
|
| 97 |
+- Flannel 0.9.0. |
|
| 96 | 98 |
* Fri Sep 01 2017 Chang Lee <changlee@vmware.com> 0.8.0-2 |
| 97 | 99 |
- Fixed %check according to version upgrade |
| 98 | 100 |
* Tue Aug 08 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.8.0-1 |