Commit Graph
13292 Commits
Author SHA1 Message Date
parth-gr 483c432b26 external: make import script idempotent
import script may be need a re-run if other
resources need to be configured
for ex: if rbd is configured and later on point
someone want to also configure rgw, it will have
a choice

Closes: https://github.com/rook/rook/issues/12412

Signed-off-by: parth-gr <paarora@redhat.com>
2023-06-28 19:09:42 +05:30
subhamkrai a2e3d30526 security: remove default scc privileges
with `requiredDropCapabilities: ["All"]` we can
drop all the default privileges and we can add the
privileges required `allowedCapabilities:` here.

Signed-off-by: subhamkrai <srai@redhat.com>
2023-06-28 15:14:41 +05:30
travisn 96ff80f8b0 ci: add exporter to commit prefixes
Add the exporter to the list of commit prefixes

Signed-off-by: travisn <tnielsen@redhat.com>
2023-06-27 11:03:03 -06:00
travisn 417f05311f exporter: ignore failed deletion of service monitor
If the ceph version does not suppport the exporter, the operator
will attempt to delete the service monitor related to the exporter
to ensure it does not exist for a node. If the expected rbac does
not exist, this will cause unnecessary errors since there would anyway
be no service monitor to delete. So we ignore the error of deleting
the service monitor for the exporter.

The context is also passed to the exporter so a new kubeconfig does
not need to be initiated and cause unnecessary logging about
invalid options for the config.

Signed-off-by: travisn <tnielsen@redhat.com>
2023-06-26 12:26:09 -06:00
Travis Nielsen c43f8e6293 Merge pull request #12426 from rook/dependabot/go_modules/github.com/aws/aws-sdk-go-1.44.289
build(deps): bump github.com/aws/aws-sdk-go from 1.44.288 to 1.44.289
2023-06-26 11:25:13 -06:00
Travis Nielsen 9b14313fbd Merge pull request #12428 from rook/dependabot/go_modules/github.com/hashicorp/vault-plugin-secrets-kv-0.15.0
build(deps): bump github.com/hashicorp/vault-plugin-secrets-kv from 0.14.3 to 0.15.0
2023-06-26 10:42:22 -06:00
dependabot[bot] 0d2c3c914f build(deps): bump github.com/aws/aws-sdk-go from 1.44.288 to 1.44.289
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.288 to 1.44.289.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.288...v1.44.289)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-26 10:40:54 -06:00
Travis Nielsen 0a2be0eb2f Merge pull request #12392 from Sheetalpamecha/update-k8-version
ci: update the minimum kubernetes version supported
2023-06-26 07:56:18 -06:00
dependabot[bot] c5d1a4bffd build(deps): bump github.com/hashicorp/vault-plugin-secrets-kv
Bumps [github.com/hashicorp/vault-plugin-secrets-kv](https://github.com/hashicorp/vault-plugin-secrets-kv) from 0.14.3 to 0.15.0.
- [Release notes](https://github.com/hashicorp/vault-plugin-secrets-kv/releases)
- [Changelog](https://github.com/hashicorp/vault-plugin-secrets-kv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault-plugin-secrets-kv/compare/v0.14.3...v0.15.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault-plugin-secrets-kv
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-26 13:01:00 +00:00
Sheetal Pamecha eee31f2b72 ci: update the minimum kubernetes version supported
For v1.12 update the minimum K8s version supported to v1.22,
and run CI against the most recent six versions.

Signed-off-by: Sheetal Pamecha <spamecha@redhat.com>
2023-06-25 22:01:40 +05:30
Marcel Lautenbach 9d335ad814 docs: replace deprecated ingress.class annotation
Documentation and examples used a deprecated annotation to set the Ingress class name. This commit replaces it with the correct version using spec.ingressClassName .

Signed-off-by: Marcel Lautenbach <mlautenb@gmail.com>
2023-06-23 19:31:54 +02:00
Travis Nielsen d20abd4aa7 Merge pull request #12419 from travisn/k8s-module-update
build: Drop go1.19 support and update go modules to the latest and greatest
2023-06-23 08:55:50 -06:00
travisn c4ec275946 build: update to latest go modules as much as possible
The go modules are updated to the latest client-go, vault,
and other modules. There does not appear to be a combination
of modules that will allow us to use vault v1.13.3, so we
stick with v1.13.2.

Signed-off-by: travisn <tnielsen@redhat.com>
2023-06-23 07:44:17 -06:00
travisn 05bebc1615 ci: require go 1.20 in the builds
To update to the latest go modules we need to restrict golang
support to 1.20 for now.

Signed-off-by: travisn <tnielsen@redhat.com>
2023-06-22 16:37:10 -06:00
Travis Nielsen 1d3f99bc14 Merge pull request #12296 from rook/dependabot/go_modules/sigs.k8s.io/controller-runtime-0.15.0
build(deps): bump sigs.k8s.io/controller-runtime from 0.14.5 to 0.15.0
2023-06-22 13:03:35 -06:00
travisn 557a3e06cc core: api updates for controller runtime v0.15
For the controller runtime v0.15 there are some breaking
changes to the api that need to be updated.

Signed-off-by: travisn <tnielsen@redhat.com>
2023-06-22 10:33:28 -06:00
travisn ee80061c74 ci: update golangci linter to go 1.20
The linter requires updating wait.Poll methods to more recent
given the new dependencies for the controller runtime.

Signed-off-by: travisn <tnielsen@redhat.com>
2023-06-21 17:05:10 -06:00
dependabot[bot] 96bc058296 build(deps): bump sigs.k8s.io/controller-runtime from 0.14.5 to 0.15.0
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.14.5 to 0.15.0.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.14.5...v0.15.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-21 15:10:38 -06:00
Blaine Gardner e3f1515f43 Merge pull request #12396 from BlaineEXE/multus-tool-add-config-file
multus: add config file for validation tool
2023-06-21 09:48:08 -06:00
Travis Nielsen 5618270903 Merge pull request #12252 from koor-tech/feature/ksd-133
docs: update storage architecture diagram
2023-06-20 17:26:37 -06:00
Alexander Trost 75dbc7d7fb docs: update storage architecture diagram
This includes the source code of the diagram, created using draw.io, so
anyone can easily update it.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2023-06-20 23:32:50 +02:00
Travis Nielsen d7dcf58f7c Merge pull request #12406 from polyedre/confusing-message
Fix confusing successful message when reconciling CephObjectStoreUser
2023-06-20 13:12:55 -06:00
Blaine Gardner f8d9076a38 multus: add config file for validation tool
Allow the validation tool to read test config from a yaml file. To help
users, also allow outputting a config file with default values and
comments instructing how to use the config file.

This work is in anticipation of adding more advanced configuration
options that would be too cumbersome to set using cli flags.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2023-06-20 11:54:37 -06:00
Travis Nielsen 9a8e93cee8 Merge pull request #12341 from thotz/add-tls-secret-ref-in-objectstoreuser-secret
object : add ssl ref in cephobjectstore user secret
2023-06-20 10:20:35 -06:00
Satoru Takeuchi f9e53791f3 Merge pull request #12372 from YZ775/addCephVersionLabeltoPVCofOSD
operator:Add ceph image version label to PVC
2023-06-20 22:26:17 +09:00
Lucas Henry 87bc3dfcdc operator: remove confusing successful message when reconciling CephObjectStoreUser
When creating a CephObjectStoreUser with a value spec.store that refers to an
unexisting CephObjectStore, after the reconciliation loop the
CephObjectStoreUser is in the ReconcileFailed state. However, a
ReconcileSucceeded event is created with this message:

"successfully configured CephObjectStoreUser"

The success message results of the return value for the error which is currently
`nil`. Let's replace it with the error message.

Signed-off-by: Lucas Henry <polyedre@disroot.org>
2023-06-20 11:02:04 +02:00
Travis Nielsen e9bd40c347 Merge pull request #12398 from rook/dependabot/github_actions/actions/setup-go-4
build(deps): bump actions/setup-go from 1 to 4
2023-06-19 09:06:07 -06:00
Travis Nielsen 40919a55d0 Merge pull request #12399 from rook/dependabot/github_actions/actions/checkout-3
build(deps): bump actions/checkout from 2 to 3
2023-06-19 09:05:41 -06:00
dependabot[bot] a10fd1490a build(deps): bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 12:59:22 +00:00
dependabot[bot] 6f039d58cb build(deps): bump actions/setup-go from 1 to 4
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 1 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v1...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 12:59:21 +00:00
YZ775 ed9da20d68 operator: add ceph image version label to PVC
This PR makes Rook operator to add a label on PVC that contains an image version of Ceph when creating an OSD.

Signed-off-by: YZ775 <yuzuki-mimura@cybozu.co.jp>
2023-06-19 08:19:46 +09:00
Travis Nielsen d8ce011027 Merge pull request #12322 from parth-gr/docs-auto-generate
build: make crds should be able to build generated docs
2023-06-15 11:12:55 -06:00
parth-gr 8175bc0218 build: make crds should be able to build generated docs
Currently, if there is any change in the API we need to separately
run the make generate-crd-docs but with this change
make crds will also update the generated docs

Also improved the file locations

Closes: https://github.com/rook/rook/issues/12310

Signed-off-by: parth-gr <paarora@redhat.com>
2023-06-15 20:11:23 +05:30
Travis Nielsen 773b7e7ebe Merge pull request #12253 from subhamkrai/nodeLoss-desgin-doc
docs: design doc for node loss
2023-06-15 08:33:29 -06:00
subhamkrai 682d639532 docs: design doc for node loss
adding desgin doc for faster rbd rwo recovery
in case of node loss.

Signed-off-by: subhamkrai <srai@redhat.com>
2023-06-15 12:32:39 +05:30
Travis Nielsen cd27f17ce8 Merge pull request #11995 from thotz/design-doc-ceph-cosi-driver
docs: add design doc for Ceph COSI driver
2023-06-14 13:45:07 -06:00
Travis Nielsen d81ba47199 Merge pull request #12368 from Javlopez/feature/remove-commit-line-in-crds-generation
docs: remove the line generated by gen-crd-api-reference-docs
2023-06-14 13:41:33 -06:00
Javier 9b3e5b10e7 docs: remove the line generated by gen-crd-api-reference-docs
removing the line added by gen-crd-api-reference-docs to avoid commit
specification.md with only the reference to the git commit

Signed-off-by: Javier <sjavierlopez@gmail.com>
2023-06-14 11:35:29 -06:00
Blaine Gardner 0363ee0703 Merge pull request #11722 from BlaineEXE/update-minikube-doc-for-mac-m1
docs: suggest qemu driver for minikube on apple silicon
2023-06-14 11:11:53 -06:00
Blaine Gardner a57d972aa1 docs: suggest qeumu driver for minikube on apple silicon
Apple silicon does not support hyperkit, and virtualbox does not support
Apple silicon (yet). Suggest the QEMU driver for development on MacOS
with Apple silicon.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2023-06-14 11:08:11 -06:00
Travis Nielsen 756d1c5209 Merge pull request #12383 from parth-gr/external-doc-update
docs: improve external doc format
2023-06-14 10:18:58 -06:00
parth-gr 9a92756830 docs: improve external doc format
Signed-off-by: parth-gr <paarora@redhat.com>
2023-06-14 20:40:12 +05:30
Travis Nielsen aa5fe08654 Merge pull request #12324 from Javlopez/feature/9179-Allow-for-EC-Block-Pool-configurations
helm: add EC Block Pool config in helm chart
2023-06-14 08:06:44 -06:00
Jiffin Tony Thottan 48259686be docs: add design doc for Ceph COSI driver
The first draft for the design doc for ceph cosi driver with Rook

Resolves #7843

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2023-06-14 17:51:03 +05:30
Travis Nielsen d9a17691c2 Merge pull request #12366 from Sheetalpamecha/release1.12-tests-upgrade
test: upgrade tests to update from v1.11
2023-06-13 14:38:21 -06:00
Travis Nielsen f8cabdbdf3 Merge pull request #12364 from Sheetalpamecha/release1.12-docs-update
docs: Update the upgrade guide for the v1.12 release
2023-06-13 13:19:26 -06:00
Travis Nielsen 2fc442746d Merge pull request #12360 from travisn/stretch-mgr-pool
pool: Add .mgr pool to the stretch cluster examples
2023-06-13 12:08:20 -06:00
Travis Nielsen f792e1a2c2 Merge pull request #12374 from subhamkrai/fix-dependabot
ci: add missing closing bracket in the script
2023-06-13 08:52:39 -06:00
subhamkrai b75624af8c ci: add missing closing bracket in the script
there is error in the script to check if there
is any changes on go.mod or go.sum line.

```
/home/runner/work/_temp/dc877811-e494-4d57-ab19-a37942eac23d.sh: line 1: unexpected EOF while looking for matching `)'
```

instead of this `if [[ $(git status | grep -E '(go.mod|go.sum)' ]]; then` it will be
`if [[ $(git status | grep -E '(go.mod|go.sum)') ]]; then`

Signed-off-by: subhamkrai <srai@redhat.com>
2023-06-13 19:39:17 +05:30
Alexander Trost 3cde179667 Merge pull request #12371 from subhamkrai/fix-dependabot-run 2023-06-13 15:44:00 +02:00