Skip to content

Commit ec94e01

Browse files
authored
Merge pull request #1 from openshift/master
fork the origin
2 parents 85c4140 + a547cf3 commit ec94e01

File tree

4,251 files changed

+186678
-461365
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,251 files changed

+186678
-461365
lines changed

HACKING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ system with Docker, which will create a build environment image and then
88
execute a cross-platform Go build within it. The build output will be copied
99
to `_output/releases` as a set of tars containing each version. It will also
1010
build the `openshift/origin-base` image which is the common parent image for all
11-
OpenShift Docker images.
11+
OpenShift container images.
1212

1313
$ make release
1414

@@ -45,9 +45,9 @@ use:
4545

4646
$ hack/env ${COMMAND}
4747

48-
For instance, to build the `oc` binary:
48+
For instance, to build the `openshift-tests` binary:
4949

50-
$ hack/env make build WHAT=cmd/oc
50+
$ hack/env make build WHAT=cmd/openshift-tests
5151

5252
The release container works by streaming a copy of the repository into a volume,
5353
sharing that volume with the container as its working directory, executing the
@@ -68,7 +68,7 @@ for a full release of OpenShift, it is also possible to build individual
6868
binaries. Binary entry points are kept under the `cmd/` directory and can be
6969
specified to build with the `WHAT` parameter, for instance, to build just `oc`:
7070

71-
$ make build WHAT=cmd/oc
71+
$ make build WHAT=cmd/openshift-tests
7272

7373
### Building Individual Images
7474

@@ -265,7 +265,7 @@ components working together.
265265
All e2e tests are compiled into the `openshift-tests` binary.
266266
To build the test binary, run `make build-extended-test`.
267267

268-
To run a specific test, or an entire suite of tests, read
268+
To run a specific test, or an entire suite of tests, read
269269
[test/extended/README](https://github.com/openshift/origin/blob/master/test/extended/README.md)
270270
for more information.
271271

@@ -701,7 +701,7 @@ On OS X, you can obtain header files via Homebrew:
701701

702702
Once dependencies are in place, build with the `gssapi` tag:
703703

704-
$ hack/build-go.sh cmd/oc -tags=gssapi
704+
$ hack/build-go.sh vendor/github.com/openshift/oc/cmd/oc -tags=gssapi
705705

706706
Verify that the GSSAPI feature is enabled with `oc version`:
707707

Makefile

Lines changed: 5 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ JUNIT_REPORT ?= true
3333
# Example:
3434
# make
3535
# make all
36-
# make all WHAT=cmd/oc GOFLAGS=-v
36+
# make all WHAT=cmd/openshift-tests GOFLAGS=-v
3737
# make all GOGCFLAGS="-N -l"
3838
all build:
3939
hack/build-go.sh $(WHAT) $(GOFLAGS)
@@ -44,28 +44,20 @@ all build:
4444
# Example:
4545
# make build-all
4646
build-all:
47-
hack/build-go.sh cmd/hypershift vendor/k8s.io/kubernetes/cmd/hyperkube cmd/oc vendor/github.com/openshift/sdn/cmd/openshift-sdn vendor/github.com/openshift/oauth-server/cmd/oauth-server cmd/openshift-tests
47+
hack/build-go.sh vendor/k8s.io/kubernetes/cmd/hyperkube vendor/github.com/openshift/oc/cmd/oc cmd/openshift-tests
4848
.PHONY: build-all
4949

5050
# Build the test binaries.
5151
#
5252
# Example:
5353
# make build-tests
54-
build-tests: build-extended-test build-integration-test
54+
build-tests: build-extended-test
5555
.PHONY: build-tests
5656

57-
build-network:
58-
hack/build-go.sh vendor/github.com/openshift/sdn/cmd/openshift-sdn vendor/github.com/openshift/sdn/cmd/sdn-cni-plugin vendor/github.com/containernetworking/plugins/plugins/ipam/host-local vendor/github.com/containernetworking/plugins/plugins/main/loopback
59-
.PHONY: build-network
60-
6157
build-extended-test:
6258
hack/build-go.sh cmd/openshift-tests
6359
.PHONY: build-extended-test
6460

65-
build-integration-test:
66-
hack/build-go.sh test/integration/integration.test
67-
.PHONY: build-integration-test
68-
6961
build-docs:
7062
hack/generate-docs.sh
7163
.PHONY: build-docs
@@ -75,7 +67,7 @@ build-docs:
7567
# Example:
7668
# make check
7769
check: | build verify
78-
$(MAKE) test-unit test-cmd -o build -o verify
70+
$(MAKE) test-unit -o build -o verify
7971
.PHONY: check
8072

8173

@@ -94,12 +86,8 @@ verify: build
9486
hack/verify-govet.sh ||r=1;\
9587
hack/verify-imports.sh ||r=1;\
9688
hack/verify-generated-bindata.sh ||r=1;\
97-
hack/verify-generated-conversions.sh ||r=1;\
9889
hack/verify-generated-deep-copies.sh ||r=1;\
99-
hack/verify-generated-defaulters.sh ||r=1;\
10090
hack/verify-generated-openapi.sh ||r=1;\
101-
hack/verify-generated-completions.sh ||r=1;\
102-
hack/verify-cli-conventions.sh ||r=1;\
10391
hack/verify-generated-json-codecs.sh ||r=1; \
10492
hack/verify-generated-swagger-spec.sh ||r=1;\
10593
exit $$r ;\
@@ -122,21 +110,16 @@ verify-commits:
122110
update:
123111
hack/update-generated-versions.sh
124112
hack/update-generated-bindata.sh
125-
hack/update-generated-conversions.sh
126113
hack/update-generated-deep-copies.sh
127-
hack/update-generated-defaulters.sh
128114
hack/update-generated-openapi.sh
129115
$(MAKE) build
130-
hack/update-generated-completions.sh
131116
.PHONY: update
132117

133118
# Update all generated artifacts for the API
134119
#
135120
# Example:
136121
# make update-api
137122
update-api:
138-
hack/update-generated-conversions.sh
139-
hack/update-generated-defaulters.sh
140123
hack/update-generated-deep-copies.sh
141124
hack/update-generated-openapi.sh
142125
$(MAKE) build
@@ -164,7 +147,7 @@ update-examples:
164147
#
165148
# Example:
166149
# make test
167-
test: test-tools test-integration test-end-to-end
150+
test: test-tools
168151
.PHONY: test
169152

170153
# Run unit tests.
@@ -183,38 +166,6 @@ test-unit:
183166
TEST_KUBE=true GOTEST_FLAGS="$(TESTFLAGS)" hack/test-go.sh $(WHAT) $(TESTS)
184167
.PHONY: test-unit
185168

186-
# Run integration tests. Compiles its own tests, cannot be run
187-
# in parallel with any other go compilation.
188-
#
189-
# Args:
190-
# WHAT: Regular expression that matches the names of all of the
191-
# integration tests to run. If not specified, "everything" will be tested.
192-
#
193-
# Example:
194-
# make test-integration
195-
# make test-integration WHAT=TestProjectRequestError
196-
test-integration:
197-
hack/test-integration.sh $(WHAT)
198-
.PHONY: test-integration
199-
200-
# Run command tests. Uses whatever binaries are currently built.
201-
#
202-
# Example:
203-
# make test-cmd
204-
test-cmd: build
205-
hack/test-util.sh
206-
hack/test-cmd.sh
207-
.PHONY: test-cmd
208-
209-
# Run end to end tests. Uses whatever binaries are currently built.
210-
#
211-
# Example:
212-
# make test-end-to-end
213-
# TODO restore COVERAGE_SPEC=' ' DETECT_RACES='false' TIMEOUT='10m' hack/test-go.sh ./test/end-to-end
214-
test-end-to-end:
215-
hack/test-end-to-end.sh
216-
.PHONY: test-end-to-end
217-
218169
# Run tools tests.
219170
#
220171
# Example:

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ OKD: The Origin Community Distribution of Kubernetes
2626
* Multi-tenancy support, including team and user isolation of containers, builds, and network communication.
2727
* Allow developers to run containers securely with fine-grained controls in production.
2828
* Limit, track, and manage the developers and teams on the platform.
29-
* Integrated Docker registry, automatic edge load balancing, cluster logging, and integrated metrics.
29+
* Integrated container image registry, automatic edge load balancing, cluster logging, and integrated metrics.
3030

3131
**Learn More:**
3232

@@ -50,7 +50,7 @@ The latest OKD Origin images are published to the Docker Hub under the `openshif
5050

5151
### Concepts
5252

53-
OKD builds a developer-centric workflow around containers and Kubernetes runtime concepts. An **Image Stream** lets you easily tag, import, and publish Docker images from the integrated registry. A **Build Config** allows you to launch Docker builds, build directly from source code, or trigger Jenkins Pipeline jobs whenever an image stream tag is updated. A **Deployment Config** allows you to use custom deployment logic to rollout your application, and Kubernetes workflow objects like **DaemonSets**, **Deployments**, or **StatefulSets** are upgraded to automatically trigger when new images are available. **Routes** make it trivial to expose your Kubernetes services via a public DNS name. As an administrator, you can enable your developers to request new **Projects** which come with predefined roles, quotas, and security controls to fairly divide access.
53+
OKD builds a developer-centric workflow around containers and Kubernetes runtime concepts. An **Image Stream** lets you easily tag, import, and publish container images from the integrated registry. A **Build Config** allows you to launch Docker builds, build directly from source code, or trigger Jenkins Pipeline jobs whenever an image stream tag is updated. A **Deployment Config** allows you to use custom deployment logic to rollout your application, and Kubernetes workflow objects like **DaemonSets**, **Deployments**, or **StatefulSets** are upgraded to automatically trigger when new images are available. **Routes** make it trivial to expose your Kubernetes services via a public DNS name. As an administrator, you can enable your developers to request new **Projects** which come with predefined roles, quotas, and security controls to fairly divide access.
5454

5555
For more on the underlying concepts of OKD, please see the [documentation site](https://docs.okd.io/latest/welcome/index.html).
5656

@@ -71,9 +71,9 @@ If you're looking for more information about using Kubernetes or the lower level
7171

7272
### What can I run on OKD?
7373

74-
OKD is designed to run any existing Docker images. Additionally, you can define builds that will produce new Docker images using a `Dockerfile`.
74+
OKD is designed to run any existing container images. Additionally, you can define builds that will produce new container images using a `Dockerfile`.
7575

76-
For an easier experience running your source code, [Source-to-Image (S2I)](https://github.com/openshift/source-to-image) allows developers to simply provide an application source repository containing code to build and run. It works by combining an existing S2I-enabled Docker image with application source to produce a new runnable image for your application.
76+
For an easier experience running your source code, [Source-to-Image (S2I)](https://github.com/openshift/source-to-image) allows developers to simply provide an application source repository containing code to build and run. It works by combining an existing S2I-enabled container image with application source to produce a new runnable image for your application.
7777

7878
You can see the [full list of Source-to-Image builder images](https://docs.okd.io/latest/using_images/s2i_images/overview.html) and it's straightforward to [create your own](https://blog.openshift.com/create-s2i-builder-image/). Some of our available images include:
7979

@@ -206,7 +206,7 @@ You'll need [etcd](https://github.com/coreos/etcd) installed and on your path fo
206206
$ hack/install-etcd.sh
207207
```
208208

209-
Some of the components of Origin run as Docker images, including the builders and deployment tools in `images/builder/docker/*` and `images/deploy/*`. To build them locally run
209+
Some of the components of Origin run as container images, including the builders and deployment tools in `images/builder/docker/*` and `images/deploy/*`. To build them locally run
210210

211211
```
212212
$ hack/build-images.sh

UPGRADE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ when that change will happen.
2323
1. The `/ns/namespace-name/subjectaccessreview` endpoint is deprecated, use `/subjectaccessreview`
2424
(with the `namespace` field set) or `/ns/namespace-name/localsubjectaccessreview`. In
2525
Origin 1.y / OSE 3.y, support for `/ns/namespace-name/subjectaccessreview` will be removed.
26-
At that time, the openshift docker registry image must be upgraded in order to continue functioning.
26+
At that time, the openshift container image registry image must be upgraded in order to continue functioning.
2727

2828
1. The `deploymentConfig.spec.strategy.rollingParams.updatePercent` field is deprecated in
2929
favor of `deploymentConfig.spec.strategy.rollingParams.maxUnavailable` and
@@ -88,8 +88,8 @@ references:
8888
Incorrectly cased field names will now be rejected. Please ensure all `yaml` and `json` files
8989
conform to the naming conventions defined in [REST API](https://docs.okd.io/latest/rest_api/index.html)
9090

91-
1. The existing docker registry images will not be able to support auto-provisioning of image streams based on docker pushes against new API servers.
92-
Upgrade your docker registry image to make auto-provisioning work again.
91+
1. The existing container image registry images will not be able to support auto-provisioning of image streams based on docker pushes against new API servers.
92+
Upgrade your container image registry image to make auto-provisioning work again.
9393
1. New service accounts specific to the PersistentVolume operations of binding, recycling, and provisioning were added. Run `oc adm policy reconcile-sccs --confirm` to update your SecurityContextConstraints.
9494

9595
## Origin 1.3.x / OSE 3.3.x

cmd/doc.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
// Package cmd contains the executables for OpenShift 3.
22
package cmd
3+
4+
import (
5+
// for hyperkube
6+
_ "k8s.io/kubernetes/cmd/cloud-controller-manager/app"
7+
_ "k8s.io/kubernetes/cmd/kube-apiserver/app"
8+
_ "k8s.io/kubernetes/cmd/kube-controller-manager/app"
9+
_ "k8s.io/kubernetes/cmd/kube-proxy/app"
10+
_ "k8s.io/kubernetes/cmd/kube-scheduler/app"
11+
_ "k8s.io/kubernetes/cmd/kubelet/app"
12+
_ "k8s.io/kubernetes/pkg/client/metrics/prometheus" // for client metric registration
13+
_ "k8s.io/kubernetes/pkg/kubectl/cmd"
14+
_ "k8s.io/kubernetes/pkg/version/prometheus" // for version metric registration
15+
16+
_ "github.com/openshift/oc/pkg/cli"
17+
)

cmd/hypershift/main.go

Lines changed: 0 additions & 76 deletions
This file was deleted.

cmd/oc/OWNERS

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)