Browse code

Merge pull request #2006 from smarterclayton/require_go_14

Merged by openshift-bot

OpenShift Bot authored on 2015/05/19 10:04:27
Showing 7 changed files
... ...
@@ -1,18 +1,12 @@
1 1
 language: go
2 2
 
3 3
 go:
4
-  - 1.3
5 4
   - 1.4
6 5
 
7 6
 env:
8 7
  - TEST_ASSETS=true
9 8
  - TEST_ASSETS=false
10 9
 
11
-matrix:
12
-  exclude:
13
-    - go: 1.3
14
-      env: TEST_ASSETS=true
15
-
16 10
 install:
17 11
   - ./hack/verify-jsonformat.sh
18 12
   - ./hack/install-etcd.sh
... ...
@@ -33,7 +33,7 @@ You can develop OpenShift 3 on Windows, Mac, or Linux, but you'll need Docker in
33 33
 Here's how to get set up:
34 34
 
35 35
 1. For Go, Git and optionally also Docker, follow the links below to get to installation information for these tools: +
36
-** http://golang.org/doc/install[Installing Go]
36
+** http://golang.org/doc/install[Installing Go]. You must install Go 1.4.
37 37
 ** http://git-scm.com/book/en/v2/Getting-Started-Installing-Git[Installing Git]
38 38
 ** https://docs.docker.com/installation/#installation[Installing Docker]. NOTE: OpenShift now requires at least Docker 1.6. RPMs for CentOS 7 are not yet available in the default yum repositories. If you're running CentOS, please see the link:README.md#docker-16[README] for information on where to get Docker 1.6 RPMs for your platform.
39 39
 2. Next, create a Go workspace directory: +
... ...
@@ -206,37 +206,7 @@ FAQ
206 206
     iterate through the next few months, you'll see this repository focus more on integration and
207 207
     plugins, with more and more features becoming part of Kubernetes.
208 208
 
209
-2. What about [geard](https://github.com/openshift/geard)?
210
-
211
-    Geard started as a prototype vehicle for the next generation of the OpenShift node - as an
212
-    orchestration endpoint, to offer integration with systemd, and to prototype network abstraction,
213
-    routing, SSH access to containers, and Git hosting.  Its intended goal is to provide a simple
214
-    way of reliably managing containers at scale, and to offer administrators tools for easily
215
-    composing those applications (gear deploy).
216
-
217
-    With the introduction of Kubernetes, the Kubelet, and the pull model it leverages from etcd, we
218
-    believe we can implement the pull-orchestration model described in
219
-    [orchestrating geard](https://github.com/openshift/geard/blob/master/docs/orchestrating_geard.md),
220
-    especially now that we have a path to properly
221
-    [limit host compromises from affecting the cluster](https://github.com/GoogleCloudPlatform/kubernetes/pull/860).  
222
-    The pull-model has many advantages for end clients, not least of which that they are guaranteed
223
-    to eventually converge to the correct state of the server. We expect that the use cases the geard
224
-    endpoint offered will be merged into the Kubelet for consumption by admins.
225
-
226
-    systemd and Docker integration offers efficient and clean process management and secure logging
227
-    aggregation with the system.  We plan on introducing those capabilities into Kubernetes over
228
-    time, especially as we work with the Docker upstream to limit the impact of the Docker daemon's
229
-    parent child process relationship with containers, where death of the Docker daemon terminates
230
-    the containers under it
231
-
232
-    Network links and their ability to simplify how software connects to other containers is planned
233
-    for Docker links v2 and is a capability we believe will be important in Kubernetes as well ([see issue 494 for more details](https://github.com/GoogleCloudPlatform/kubernetes/issues/494)).
234
-
235
-    The geard deployment descriptor describes containers and their relationships and will be mapped
236
-    to deployment on top of Kubernetes.  The geard commandline itself will likely be merged directly
237
-    into the `openshift` command for all-in-one management of a cluster.
238
-
239
-3. What can I run on OpenShift?
209
+2. What can I run on OpenShift?
240 210
 
241 211
     OpenShift is designed to run any existing Docker images.  In addition you can define builds that will produce new Docker images from a Dockerfile.  However the real magic of OpenShift can be seen when using [Source-To-Image](https://github.com/openshift/source-to-image)(STI) builds which allow you to simply supply an application source repository which will be combined with an existing STI-enabled Docker image to produce a new runnable image that runs your application.  We are continuing to grow the ecosystem of STI-enabled images and documenting them [here](https://ci.openshift.redhat.com/openshift-docs-master-testing/latest/openshift_sti_images/overview.html).  We also have a few more experimental images available:
242 212
 
... ...
@@ -208,12 +208,12 @@ EOF
208 208
   if [[ "${TRAVIS:-}" != "true" ]]; then
209 209
     local go_version
210 210
     go_version=($(go version))
211
-    if [[ "${go_version[2]}" < "go1.2" ]]; then
211
+    if [[ "${go_version[2]}" < "go1.4" ]]; then
212 212
       echo <<EOF
213 213
 
214 214
 Detected go version: ${go_version[*]}.
215
-Kubernetes requires go version 1.2 or greater.
216
-Please install Go version 1.2 or later.
215
+OpenShift and Kubernetes requires go version 1.4 or greater.
216
+Please install Go version 1.4 or later.
217 217
 
218 218
 EOF
219 219
       exit 2
... ...
@@ -299,7 +299,7 @@ os::build::place_bins() {
299 299
       if [[ "${OS_RELEASE_ARCHIVE-}" == "" ]]; then
300 300
         continue
301 301
       fi
302
-      
302
+
303 303
       # Create a temporary bin directory containing only the binaries marked for release.
304 304
       local release_binpath=$(mktemp -d openshift.release.${OS_RELEASE_ARCHIVE}.XXX)
305 305
       find "${full_binpath_src}" -maxdepth 1 -type f -exec \
... ...
@@ -10,7 +10,7 @@ GO_VERSION=($(go version))
10 10
 
11 11
 GO_VERSION=($(go version))
12 12
 
13
-if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.2|go1.3') ]]; then
13
+if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.4') ]]; then
14 14
   echo "Unknown go version '${GO_VERSION}', skipping gofmt."
15 15
   exit 0
16 16
 fi
... ...
@@ -11,7 +11,7 @@ fi
11 11
 
12 12
 GO_VERSION=($(go version))
13 13
 
14
-if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.2|go1.3') ]]; then
14
+if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.4') ]]; then
15 15
   echo "Unknown go version '${GO_VERSION}', skipping golint."
16 16
   exit 0
17 17
 fi
... ...
@@ -28,7 +28,7 @@ ExclusiveArch:  x86_64
28 28
 Source0:        https://%{import_path}/archive/%{commit}/%{name}-%{version}.tar.gz
29 29
 
30 30
 BuildRequires:  systemd
31
-BuildRequires:  golang >= 1.2-7
31
+BuildRequires:  golang >= 1.4
32 32
 
33 33
 
34 34
 %description