Commit Graph
206 Commits
Author SHA1 Message Date
travisn 81f55a12eb build: promote builds only to master and release
The alpha, beta, and stable channels do not match the rook release process.
Each storage provider defines their own stability based on the CRDs
rather than defining it with the release process. Rook really
only has two release streams: master and the official releases.
Master is published with each merge, while releases go through
a signoff process to ensure quality. Thus, the alpha, beta,
and stable channels are removed and replaced with a
single release channel.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-04-27 22:49:11 -06:00
Anton Skriptsov 5746c03446 v1beta1 api's and codegenerated files
Signed-off-by: Anton Skriptsov <sabbotagge@gmail.com>
2019-04-24 16:32:47 -07:00
travisn ecdb55b2be ceph: correct code generation for plural CephNFSes
Signed-off-by: travisn <tnielsen@redhat.com>
2019-04-23 13:36:45 -06:00
Alexander Trost a33503493b Added Golang v1.12 to supported versions
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2019-03-14 09:45:45 +01:00
John Mulligan c3e863d1a9 build: support specifying custom 'docker' command in run script
Allow the default 'docker' command to be overridden by an environment
variable in the "build/run" shell script and the supporting library
file.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2019-02-25 18:49:11 -05:00
John Mulligan 49f3b68dea build: support specifying custom sha-256 hash command
Create a makefile (and shell) variable that can be used to invoke a
different command line, such as 'sha256sum' instead of the default
'shasum -a 256'. The shasum tool is left as the default but, at least on
fedora, this comes from a perl package and it may be that sha256sum,
which comes from coreutils would allow building on a more minimal
install.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2019-02-25 18:49:11 -05:00
Michael Goff f88a9b78ba docs: Update the build process to use the new docs build process
Signed-off-by: Michael Goff <thephred@gmail.com>
2019-02-13 11:20:41 -08:00
Dmitry Yusupov 18634ccb87 Edgefs codegen and clientset
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2018-12-05 23:05:43 -08:00
Dmitry Yusupov 4f958162e1 Edgefs Image
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2018-12-05 23:05:42 -08:00
travisn df78f6ad6e remove obsolete rook v1alpha1 types
Signed-off-by: travisn <tnielsen@redhat.com>
2018-12-05 14:33:10 -07:00
travisn 501c3a6681 codegen for the ceph v1 types
Signed-off-by: travisn <tnielsen@redhat.com>
2018-12-05 14:33:00 -07:00
Yannis Zarkadas 0ccc04cccd cassandra: controller scaffolding, image build and manifests
Scaffolding of a Kubernetes controller using the informer-workqueue
pattern.
Dockerfiles and Makefiles to build the cassandra operator image.
Manifests to deploy the Cassandra operator and create a Cluster CRD.

Signed-off-by: Yannis Zarkadas <yanniszarkadas@gmail.com>
2018-12-05 12:44:29 +02:00
Yannis Zarkadas 2b0614a77c cassandra: code generation
Edited codegen.sh to include cassandra.
Then, run make codegen to generate the rest of the files.

Signed-off-by: Yannis Zarkadas <yanniszarkadas@gmail.com>
2018-12-05 12:41:27 +02:00
Alexander Trost ac19f85fbb Allow specifying custom Ceph user and secret name for mounting
Introduce mount security mode for basic multi tenancy

Fixes #2164.

This adds three new parameters/options to StorageClass/flexvolume entry:
* `mountUser`
* `mountSecret`
* `mountSecretNamespace`

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-12-04 20:17:15 +01:00
travisn efd581e7ed start toolbox pod with the ceph image instead of a separate image
Signed-off-by: travisn <tnielsen@redhat.com>
2018-10-02 15:43:53 -06:00
Bassam Tabbara eabc9bde1a simplify dependencies and add vendor.update target
remove all cosntraints that are not really needed from Gopkg.toml.
we should only be adding constraints that are direct dependencies
of the project and we require a specific version/revision of.

added a vendor.update makefile target that can be used to update
dependencies to the latest.

Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2018-09-30 16:01:43 -07:00
Bassam Tabbara 2464e32857 add vendor checks
this commit updates dep to version 0.5, and adds a check during
CI runs that enforces that the vendor dependencies have not changed.
There is a now a makefile target `make vendor.check` that performs
this check. Also removed the requirement that PR run make vendor as
this will be done by CI.

Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2018-09-30 08:10:42 -07:00
Bassam Tabbara 1503484ce9 fix the check for dep ensure
the exit code from dep ensure --dry-run was not being checked
correctly resulting a lots of false negatives.

Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2018-09-19 07:41:36 -07:00
Bassam Tabbara 98cefc66de use a consistent version of gofmt
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
2018-09-12 10:53:53 -07:00
Ganesh Maharaj Mahalingam 92f91ab156 golang 1.11 support
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
2018-09-12 10:53:53 -07:00
Dennis Chen 1c2de4b55d Add golang 1.11 version support
Now the golang version 1.1 has been released by the official
website[1], so let's add support for this version, else we'll
get below build error when using golang 1.11:

```
build/makelib/golang.mk:103: *** unsupported go version. Please
make install one of the following supported version: '1.7|1.8|1.9|1.10'.  Stop.
```

[1] https://golang.org/dl/

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-09-12 17:55:02 +08:00
Bassam Tabbara e2fd1eb8e6 Merge pull request #2054 from SUSE/ceph-makefiles-skip-image-save
Image build/release: do not save image for builds; save only for release
2018-08-23 10:09:19 -07:00
Blaine Gardner 60b4a1e4d3 Image make: Move save image step to release builds
The image save step in the image build makefiles takes half or more of
the time of builds, and this step is not necessary for development
builds. Move this functionality to the `build/release/Makefile` so that
images are saved during release builds but not during dev builds. This
will allow developers to iterate more quickly on their builds.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-08-23 09:49:56 -06:00
rohan47 8d85b6f4a8 nfs: rook/nfs image build
Signed-off-by: rohan47 <rohanrgupta1996@gmail.com>
2018-08-22 10:34:40 +00:00
Jared Watts dd948b155a build: remove support for quay.io
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-08-17 14:03:55 -07:00
ichekrygin 09e99df974 Update version generation to produce a valid semver value
Adjust `sed` command for BSD version, which does not support '/x/y/2g'

Signed-off-by: ichekrygin <illya.chekrygin@gmail.com>
2018-08-14 23:53:45 -07:00
Jared Watts 31d29fe4e7 release: update release approval policy to be in accordance with governance
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-08-02 16:24:44 -07:00
Bassam Tabbara d898618dd9 Merge pull request #1912 from SUSE/make-allow-building-select-images
make: Allow building select images
2018-07-23 10:00:34 -07:00
Alexander Trost ae3563caa6 Fix codegen script replace
This was a tab at some point and was accidentally replaced by spaces.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-07-21 19:55:39 +02:00
Blaine Gardner 483163fc21 make: Allow building select images
Raise the scope of the `IMAGES` config variable in the
`build/release/Makefile` to the `build/makelib/common.mk` file, and use
the `IMAGES` variable in the `images/Makefile` to allow users to build
only select images.

Examples of new use:
  make IMAGES='ceph ceph-toolbox' build
  make -C build/release IMAGES='ceph ceph-toolbox' publish

The 'images/image.mk' clean.build target was changed to use
`CLEAN_IMAGES` instead of `IMAGES`, as it was conflicting with use of
the parameter in image builds.

Added IMAGES option to top-level make's help text. The text for this
option exceeded 80 lines in the `Makefile` itself, so the help text was
refactored to eliminate `    @echo '<text>'`. The `Makefile` text should
now match exactly what is output to the user including line length.

Added IMAGES option to `INSTALL.md` file's "Build" section and also
moved some text around and added a few extra points of clarification
there to hopefully improve readability, especially for first-time
readers.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-07-20 15:49:46 -06:00
Jared Watts 088278d28e Define release criteria and checklist
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-07-11 17:40:54 -07:00
Jared Watts 2a6813bc4e build: add ceph.rook.io/v1beta1 to codegen
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-07-11 09:23:46 -07:00
Alexander Trost 869173718e build: Removed unnecessary whitespaces/new lines in scripts/docs
cluster: Removed unnecessary whitespaces/new lines in scripts/docs

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-06-24 18:39:37 +02:00
Tony Allen 7442f8713b Implement Minio operator w/ tests.
Signed-off-by: Tony Allen <tony@upbound.io>
2018-06-21 16:41:30 -07:00
Jared Watts a80f05cf51 cockroachdb: rook/cockroachdb image build
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-06-18 17:09:45 -07:00
Alexander Trost 239bb98f36 build: Make codegen sed usage compatible with GNU and BSD
Fix issues with sed usage with GNU and BSD sed.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-06-06 19:17:30 +02:00
Blaine Gardner 2a872bf1cd images: Use ceph daemon-base as rook base
Instead of adding Ceph packages to Rook's base image, use
ceph-container's base image, which has Ceph packages preinstalled. Rook
now benefits from the testing the ceph-container project does, and the
scope of the Rook project no longer has to maintain builds of base
images containing Ceph packages.

The only ARM builds of ceph-container are CentOS, and as switching to
CentOS was already a thought, that is easily done at the same time as
this change.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-05-23 15:37:31 -06:00
Jared Watts e48e951d1c Rename toolbox to make it Ceph specific, short names for CRDs, upgrade guide tweaks
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-05-22 12:31:38 -07:00
Jared Watts 3a2a2d2021 build: rook/ceph image build
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-05-18 14:25:39 -07:00
Dennis Chen 4679fe5694 Disable the 'cross' build on AArch64
AArch64 platform doesn't support the `build.all` command due to the
`hypriot/qemu-register` issue, so we disable this kind of 'cross' build
on AArch64 platform.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-04-26 16:16:12 +08:00
Dennis Chen 31ca7a080d Golang dep tool workaround on AArch64
Currently there's no official `dep` tool release for arm64, so we
use `go get -u github.com/golang/dep/cmd/dep` command instead of
`curl` official release to workaround this issue, order to support
native build on arm64 server. Will remove this once official arm64
release of `dep` announced.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-04-20 16:30:49 +08:00
Dennis Chen f376651f63 Bump golang dep tool to v0.4.1 version
golang dep release v0.4.1 version on Jan 25 [1], this PR
bump its version from v0.3.2 to the latest version.

[1] https://github.com/golang/dep/releases

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-04-18 08:18:35 +00:00
travisn 9e4baf4c96 (ichekrygin) Remove the rook api service from production code
Remove controller api component and api daemon
Remove rookctl and  endpoints from Docker image

Signed-off-by: travisn <tnielsen@redhat.com>
2018-03-16 08:30:54 -07:00
Jared Watts c35754ece8 Add golang 1.10 to supported list, minor updates to dev flow instructions
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-02-26 14:41:28 -08:00
Bassam Tabbara 6b89a8feda build: use new S3 buckets
Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2018-02-26 08:55:50 -08:00
Bassam Tabbara 2b818eefe4 images: use ceph deb packages instead of building from source
Ceph is now installed from deb packages instead of being built from
source. This results in larger images sizes (roughly 60MB increase
compressed) but the maintenance and build burden is reduced. Future
versions of ceph will hopefully optimize for image size.

All support for building native code in containers has been removed,
as it is no longer needed. When we add other backends we will assume
that they can be installed using apt-get too.
2018-01-08 21:06:44 -08:00
Bassam Tabbara 07463fa0dd images: disable armhf image builds
While ceph can build fine on armhf it is not a tested configuration
today nor are debian packages for ceph published. Also ceph requires
more horsepower than is typically available on armhf machines.

We are dropping armhf support for now. arm64 is still supported.
2018-01-08 21:06:11 -08:00
Travis Nielsen e2bd9276bf consume the generated rook clientset 2017-12-11 14:35:07 -08:00
Bassam Tabbara 9b611abda7 inital attempt at upgrading to kubernetes 1.8
Update all K8s dependencies to the release-1.8 branches.

Added build and make file support for generating code.

Fixed our use of client-go to match changes in new release.
2017-12-11 14:34:24 -08:00
Wil Reichert bf891be243 use BSD / GNU agnotic sed & date params 2017-11-17 17:24:02 -07:00