Commit Graph
7774 Commits
Author SHA1 Message Date
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
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
Jiffin Tony Thottan d4562f6b83 ceph: update endpoint with IP for external RGW server
For external RGW server use the IP mentioned in Gateway for admin Ops
operattions.

Fixes: #8916
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2021-10-21 19:13:10 +05:30
Sébastien Han 18a4047679 osd: add support for k8s with vault kms
Rook cluster-wide encryption can now use the native Kubernetes
authentication to interact with vault KMS instead of using the token
method.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-21 13:59:28 +02:00
Sébastien Han 1a6827bea5 Merge pull request #9012 from leseb/mirror-secret-ownerref
ci: fix mirror scenario by removing ownerref
2021-10-21 13:58:54 +02:00
Sébastien Han 8d54fdc35f Merge pull request #8979 from aruniiird/add-CephMonQuorumLost-alert
ceph: adding CephMonQuorumLost critical alert
2021-10-21 12:20:45 +02:00
Sébastien Han 07f006ac43 ci: fix mirror scenario by removing ownerref
When we copy the peer token secret from a namespace to another we also
copy the ownerref, however the creation succeeds but the controller
removes the secret since the uid of the owner do not exist in that
namespace.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-21 12:11:10 +02:00
Arun Kumar Mohan 5c34393eca ceph: adding CephMonQuorumLost critical alert
Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
2021-10-21 12:01:17 +05:30
Yug Gupta c0b8f5a708 docs: add documents for failover and failback
add a document to track the steps for failover
and failback in case of Async DR; for Planned
Migration and Disaster Recovery use case.

Signed-off-by: Yug Gupta <yuggupta27@gmail.com>
2021-10-21 01:07:22 +05:30
Blaine Gardner 063c714c97 Merge pull request #9007 from BlaineEXE/remove-dynamic-clientset
ceph: get rid of dynamic clientset
2021-10-20 09:40:28 -06:00
Travis Nielsen 9655e3a21e Merge pull request #8927 from synarete/aarch64-graviton
build: support build of rook on aarch64 (AWS/graviton)
2021-10-20 07:55:20 -06:00
Travis Nielsen 8f639c61de Merge pull request #8938 from subhamkrai/update-minikube
ci: update minikube and kubernetes version
2021-10-20 07:52:06 -06:00
Sébastien Han de0ba669fe Merge pull request #9009 from PixelJonas/patch-quotation-marks
ceph: use normal quotation marks for comment
2021-10-20 13:52:55 +02:00
subhamkrai 0150966024 ceph: remove ceph nautilus, ceph octopus to default
since rook 1.8, ceph nautilus no longer supported,
ceph octopus will be the minimum ceph version.

Closes: https://github.com/rook/rook/issues/7908
Signed-off-by: subhamkrai <srai@redhat.com>
2021-10-20 14:45:12 +05:30
subhamkrai 6be9071a22 ci: update minikube.sh script to use minikube command
using `docker-env` command to copy image giving error
`X Exiting due to ENV_DRIVER_CONFLICT: 'none' driver does not support 'minikube docker-env' command`
so, using `minikube image load <image>` commmand to copy
image.

Signed-off-by: subhamkrai <srai@redhat.com>
2021-10-20 14:26:50 +05:30
PixelJonas 8733bf6272 ceph: use normal quotation marks for comment
replaces all occurences of lduo/rduo quotation marks to make
sure that using the snippets in a k8s manifest will work

This fixes an issue with ArgoCD not being able
to apply `common.yaml` because of an encoding issue

Signed-off-by: PixelJonas <jonas@janz.digital>
2021-10-20 10:09:22 +02:00
Sébastien Han d7213c086b Merge pull request #9008 from subhamkrai/fix-ci
ci: clean validate_cluster.sh script
2021-10-20 09:55:44 +02:00
Sébastien Han c512e5f335 Merge pull request #9006 from BlaineEXE/osd-purge-in-cluster-namespace
docs: move purge osd to cluster namespace
2021-10-20 09:52:50 +02:00
subhamkrai e49cdf0a8d ci: clean validate_cluster.sh script
removing `trap display_status SIGINT ERR` command
from the file as `display_status` func has been removed.

Closes: https://github.com/rook/rook/issues/9004
Signed-off-by: subhamkrai <srai@redhat.com>
2021-10-20 10:43:50 +05:30
subhamkrai 6d0a06365f ci: update minikube and kubernetes version
Updating minikube version to `v1.23.2` and
k8s version to `v1.22.2`

Signed-off-by: subhamkrai <srai@redhat.com>
2021-10-20 10:04:31 +05:30
Yug Gupta e584efa966 docs: add a document to set-up rbd mirroring
The document tracks the steps which are required
to set-up rbd mirroring on clusters.

Signed-off-by: Yug Gupta <yuggupta27@gmail.com>
2021-10-20 09:11:33 +05:30
Blaine Gardner 01e2feaef5 ceph: get rid of dynamic clientset
Stop using the dynamic clientset in favor of the controller-runtime
clientset.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-10-19 17:05:38 -06:00
Blaine Gardner d43327de2a docs: move purge osd to cluster namespace
The rook-ceph-purge-osd job should be run for a particular CephCluster
and should therefore be namespaced to the cluster.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-10-19 13:23:42 -06:00
Travis Nielsen d01ea3a0b3 Merge pull request #8900 from BlaineEXE/create-library-chart
helm: create shared library chart
2021-10-19 11:22:23 -06:00
Sébastien Han 4bd179a973 Merge pull request #8767 from leseb/secret-cmd
osd: use rook binary to fetch key
2021-10-19 18:41:12 +02:00
Sébastien Han 4017f94464 osd: use rook binary to fetch key encryption key
When deploying a cluster-wde encrypted cluster we now use the rook
binary to execute some code to fetch the key encryption key.

Using cURL all the time to fetch the key has its limitations. The
incoming integration with Kubernetes Authentication through service
accounts is leading the usage of cURL to its end.
The logic is really complex and prone to errors. Re-implementing the
Go logic into Bash is not a viable option.

Also, using the lib in a binary allows us to keep a consistent behavior
throughout the life cycle of our code.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-10-19 17:29:25 +02:00
Blaine Gardner d9146f6f95 helm: create shared library chart
Create a Helm library chart to share content between the Operator Helm
chart (rook-ceph) and the CephCluster (etc.) Helm chart
(rook-ceph-cluster).

This will ensure that when resources related to the CephCluster change,
notably RBAC resources, they will change for both charts.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-10-18 12:33:47 -06:00
Blaine Gardner d2a03bb2b3 Merge pull request #8976 from BlaineEXE/try-fix-flaky-ci-osd-provision
test: get more partition info setting up ci disk
2021-10-18 12:33:24 -06:00