Commit Graph
7802 Commits
Author SHA1 Message Date
Sébastien Han 2db8288564 Merge pull request #9063 from leseb/fix-9062
mgr: do not set the balancer mode on pacific
2021-10-29 16:52:04 +02:00
Satoru Takeuchi e60e970c15 Merge pull request #9070 from cybozu-go/test-remove-unnecessary-check-in-rgw-multisite-testing
test: remove an unnecessary check in rgw-multisite-testing
2021-10-29 23:25:31 +09:00
Satoru Takeuchi 79571d860a test: remove an unnecessary check in rgw-multisite-testing
The deployment of the OSD is already confirmed at the end of
`deploy first cluster rook' step.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2021-10-29 13:52:35 +00:00
Sébastien Han bccc84efa2 mgr: do not set the balancer mode on pacific
On Pacific, Ceph's default is "upmap", so we should let it be
like this.
This lets the user change the mode is desired.
On Octopus though, Rook continues to force the mode to "upmap".

Closes: https://github.com/rook/rook/issues/9062
Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-29 15:43:29 +02:00
Sébastien Han c3d4ead6d6 Merge pull request #9040 from leseb/fix-9034
nfs: add pool setting CR option
2021-10-29 15:42:48 +02:00
Travis Nielsen 9e492bb5b3 Merge pull request #9065 from degorenko/doc-fix-for-objectstore
docs: add doc note for caBundleRef for cephobjectstore
2021-10-29 07:26:15 -06:00
Satoru Takeuchi f46e5ffe3a Merge pull request #9064 from leseb/update-toolbox-example
docs: stop pasting toolbox yaml in doc
2021-10-29 20:01:39 +09:00
Denis Egorenko 7f9f760d70 docs: add doc note for caBundleRef for cephobjectstore
Add missed doc note for caBundleRef added as fix for issue
https://github.com/rook/rook/issues/8490

Related-Issue: https://github.com/rook/rook/issues/8490
Signed-off-by: Denis Egorenko <degorenko@mirantis.com>
2021-10-29 14:19:35 +04:00
Sébastien Han ffd6ff3154 docs: stop pasting toolbox yaml in doc
We should only rely on the content of the repo and not copy YAML
examples into the documentation as it forces us to keep all versions in
sync all the time. The examples directory is the only source of truth.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-29 10:51:07 +02:00
Sébastien Han e0145b9643 nfs: add pool setting CR option
Ths NFS spec now supports the CephBlockPool spec which means that it can
take advantage of all the known settings like compression, size, failure
domain etc.

Closes: https://github.com/rook/rook/issues/9034
Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-29 09:04:31 +02:00
Satoru Takeuchi 737567937a Merge pull request #9047 from cybozu-go/build-fix-the-default-target
build: fix the default target of Makefile
2021-10-29 09:27:31 +09:00
Travis Nielsen 71683917fd Merge pull request #9051 from travisn/helm-app-version
helm: Add appVersion property to the charts
2021-10-28 11:01:27 -06:00
Travis Nielsen 1514c1de7d Merge pull request #9059 from subhamkrai/add-scc-allowHostPID
security: validate operator-openshift.yaml file
2021-10-28 10:04:55 -06:00
subhamkrai 2cb90be600 bot: add security and operator as commitlint tags
add `security` and `operator` as commitlint tags

Signed-off-by: subhamkrai <srai@redhat.com>
2021-10-28 20:58:24 +05:30
subhamkrai cb0e2405fd security: validate operator-openshift.yaml file
add `allowHostPID: false` field in SCC of
operator-openshift.yaml file.

Closes: https://github.com/rook/rook/issues/9048
Signed-off-by: subhamkrai <srai@redhat.com>
2021-10-28 20:57:56 +05:30
Travis Nielsen bffe99c39d helm: add appversion property to the charts
The appVersion should be set to the version of the application. Since the helm
charts are built by Rook in the same release version as Rook itself, the
version and appVersion values will be the same.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-10-28 09:26:18 -06:00
Sébastien Han 3621fd3829 Merge pull request #9015 from BlaineEXE/add-more-commitlint-tags
bot: add more commitlint tags, remove ceph
2021-10-28 16:05:31 +02:00
Travis Nielsen 01cb5c37d8 Merge pull request #9016 from travisn/release-docs
docs: Update release process for github actions
2021-10-28 07:50:07 -06:00
Sébastien Han 7fbc298498 Merge pull request #9049 from leseb/fix-8683
rgw: add support for updating user caps
2021-10-28 15:07:18 +02:00
Sébastien Han ecd01bb452 Merge pull request #9020 from leseb/fix-8993
rgw: read tls secret hint for insecure tls
2021-10-28 15:07:07 +02:00
Sébastien Han f2cb792e9f rgw: add support for updating user caps
User's capabilities can now be updated from the admin ops API.

Closes: https://github.com/rook/rook/issues/8683
Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-28 14:17:13 +02:00
Sébastien Han 86c9a8f3de rgw: read tls secret hint for insecure tls
If the admin wants to use insecure TLS to validate connections to rgw
internally, the TLS secret can have another entry "insecureSkipVerify"
and set it to "true".

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-28 11:27:00 +02:00
Travis Nielsen 33072bf2a7 Merge pull request #9041 from travisn/cluster-cleanup
core: Treat cluster as not existing if the cleanup policy is set
2021-10-27 14:06:35 -06:00
Sébastien Han f55479ba72 Merge pull request #9044 from leseb/fix-9039
ceph: ability to set label to crash collector
2021-10-27 18:40:52 +02:00
Travis Nielsen fd10d98dc6 core: treat cluster as not existing if the cleanup policy is set
The cluster CR can be forcefully deleted and cleanup the
cluster resources if the yes-really-destroy-data policy
is set on the CR. In this case, the other controllers should
treat the cluster CR as not existing and allow the finalizers
to be removed on those resources if they are requested for
deletion.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-10-27 10:25:06 -06:00
Satoru Takeuchi 98a4049fae build: fix the default target of Makefile
The current default target of Makefile is "_output/charts".

```
$ make -d
...
Successfully remade target file '/home/sat/go/src/github.com/rook/rook/_output/charts'.
```

It's because Makefile first includes "build/makelib/helm.mk", this file defines
some targets, and the first entry is regarded as the default target.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2021-10-27 13:38:54 +00:00
Sébastien Han 4f2c685ad9 ceph: ability to set label to crash collector
We can now set labels to the crash collector deployment by editing the
CephCluster CR with:

```yaml
spec:
  labels:
    crashcollector:
```

Closes: https://github.com/rook/rook/issues/9039
Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-27 12:29:50 +02:00
Sébastien Han c54a5556f3 rgw: stop using context.TODO() and use parent ctx
The clusterInfo has the parent Context so let's use it.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-27 11:52:52 +02:00
Sébastien Han c97f70bf54 Merge pull request #9042 from travisn/replication-crd-validation
test: Create volume replication crds for yaml validation
2021-10-27 09:15:54 +02:00
Travis Nielsen 2c61ea2fc3 test: create volume replication crds for yaml validation
The yaml validation of the examples folder requires all the CRDs
to be created in advance of the dry-run command.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-10-26 23:28:40 -06:00
Sébastien Han 1896359eab Merge pull request #9033 from leseb/snyk-badge
docs: replace license scan badge with snyk
2021-10-26 17:47:06 +02:00
Travis Nielsen a861bf0d12 Merge pull request #8411 from Yuggupta27/async-dr-doc
docs: add document for failover and failback
2021-10-26 08:18:36 -06:00
Sébastien Han c3d8c4144f Merge pull request #9027 from leseb/all-pod-logs
ci: log and describe all the pod/deploys on errors
2021-10-26 11:03:50 +02:00
Sébastien Han 522fa7a782 ci: wait longer on fs mirroring
It looks like the CI needs more time.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-26 11:01:11 +02:00
Sébastien Han d8e9885fd6 ci: only run snyk on merges and not on PRs
We cannot use the secret when PRs are pushed from forks so let's run the
security scan only after PRs are merged.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-26 10:55:43 +02:00
Sébastien Han f5a588ab6a docs: replace license scan badge with snyk
We now use Snyk for scanning vulnerabilities.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-26 10:45:18 +02:00
Sébastien Han 871932cc8e ci: log and describe all the pod/deploys on errors
When the CI fails, we want to collect more logs and describe from the
entire environment.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-26 08:29:51 +00:00
Sébastien Han e2a9eb71be Merge pull request #9031 from subhamkrai/update-token
ci: update snyk token
2021-10-26 10:29:20 +02:00
subhamkrai 0ebbb78373 ci: update snyk token
Update snyk token, it was pointing to wrong token.

Signed-off-by: subhamkrai <srai@redhat.com>
2021-10-26 08:51:51 +05:30
Sébastien Han 3b5bbf28d5 Merge pull request #9003 from leseb/vault-k8s-auth
osd: add support for k8s with vault kms
2021-10-25 18:02:48 +02:00
Blaine Gardner 7f5587dd99 Merge pull request #8918 from subhamkrai/update-controller-runtime
core: update controller runtime to v0.10.2
2021-10-25 09:10:55 -06:00
Blaine Gardner 2f850b6ae6 Merge pull request #8613 from subhamkrai/remove-nautilus
ceph: remove ceph nautilus, ceph octopus to default
2021-10-25 09:09:18 -06:00
Yug Gupta 0f62a7c03d ceph: add volume replication cr yaml
Add a new yaml for creating volume replicationclass
and volume replication cr.

Signed-off-by: Yug Gupta <yuggupta27@gmail.com>
2021-10-25 19:37:08 +05:30
Yug Gupta 41ef8561d0 ceph: add mirrored pool yaml
Add a new yaml for creating pools that
have mirroring enabled.

Signed-off-by: Yug Gupta <yuggupta27@gmail.com>
2021-10-25 19:36:52 +05:30
Sébastien Han fc9c4b6fc9 Merge pull request #9010 from thotz/rgw-external-endpoint
ceph: update endpoint with IP for external RGW server
2021-10-25 15:49:08 +02:00
Sébastien Han cfe59ecc2a Merge pull request #8920 from subhamkrai/add-synk-licence
ci: add action for snyk as rook licence
2021-10-25 14:42:03 +02:00
Sébastien Han a0cef3bc0b Merge pull request #9023 from y1r/add-context-opscontroller
core: add context parameter to opcontroller
2021-10-25 14:17:13 +02:00
Yuichiro Ueno 3fd86f83ae core: add context parameter to opcontroller
This commit adds context parameter to utilities in opcontroller to
remove context.TODO use in opcontroller. By this, we can handle
cancellation of reconcilers in a fine-grained way.

Signed-off-by: Yuichiro Ueno <y1r.ueno@gmail.com>
2021-10-25 20:45:06 +09:00
subhamkrai faefd097b0 ci: add action for synk as rook licence
Adding github action for synk as licence for rook.
This will replace FOSSA licence in future.

Links to read about synk
1. https://snyk.io/
2. https://github.com/snyk/snyk

Signed-off-by: subhamkrai <srai@redhat.com>
2021-10-25 13:33:09 +05:30
subhamkrai 132c2607a3 core: update controller runtime to v0.10.2
Updating controller runtime to v0.10.2

Closes: https://github.com/rook/rook/issues/8648
Signed-off-by: subhamkrai <srai@redhat.com>
2021-10-25 12:19:15 +05:30