Commit Graph
61 Commits
Author SHA1 Message Date
Travis Nielsen 050abd14b6 bot: update stale bot to a github action
The stale bot has stopped working. Now we use a github
action to mark and close the stale issues.
Issues will be marked as stale after 90 days
and closed after one week. PRs will be marked
as stale after 90 days and closed after two weeks.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-01-26 08:53:19 -07:00
Jiffin Tony Thottan 968b002a6f test: validation test for RGW vault authentication
Extending existing deploy-validate-vault.sh to include RGW as well

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2021-01-22 10:44:17 +05:30
Sébastien Han 94d9c69361 ceph: add kubectl-check-ownerreferences in ci
After each non-pvc and pvc scenario we run the
kubectl-check-ownerreferences tool to analyze potential incorrect owner
references. We had issues in the past with incorrect owner ref so this
tool might help us ensure we are doing things right.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-01-20 10:51:11 +01:00
Sébastien Han 2c021fb357 ci: bump golang version to 1.15
The rest of the CI already uses 1.15 so let's homogenize that.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-01-18 08:47:31 +01:00
subhamkrai fcd1529b23 ci: add option to download artifacts in canary test
this commit add option to download artifacts in
canary integration test for better debug.

Signed-off-by: subhamkrai <srai@redhat.com>
2021-01-12 21:06:30 +05:30
Sébastien Han adaa90b668 ci: split the test into their own files
If each has its own file we can restart them independently in case of
intermittent failures.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-01-08 16:21:36 +01:00
Marc Nuri 801ee22887 ci: upgrade actions-setup-minikube to v2.2.0
Signed-off-by: Marc Nuri <marc@marcnuri.com>
2020-12-20 07:58:51 +01:00
Travis Nielsen 114a949cfb ceph: test latest ceph on raw devices and previous ceph on partitions
The latest ceph-volume does not support creating OSDs on partitions.
The github actions only have a partition available, so we will run
the github tests on v14.2.12 and v15.2.7 that still support partitions,
while the Jenkins environment has a raw device available where we
can run the latest versions of Ceph in the tests.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-12-17 18:21:16 -07:00
subhamkrai 702569ba21 ci: add yaml validation check
this commit add yaml validation check
by adding `--dry-run` and add path
'.github/workflows/**' to Canary integration
tests.

Signed-off-by: subhamkrai <srai@redhat.com>
2020-12-10 09:49:33 +05:30
Sébastien Han 3da9f2212f bot: fix codespell issue
Make the bot happy.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-11-24 11:41:09 +01:00
Sébastien Han f86f8300f9 Merge pull request #6568 from aruniiird/upgrade-dependencies-for-operator-sdk-1.x
Bump Controller Runtime version to 0.6
2020-11-19 17:45:18 +01:00
Sébastien Han d276705904 Merge pull request #6582 from leseb/mergify-auto-merge
bot: auto-merge pull request under conditions and do not run ci when no code changes
2020-11-19 16:09:50 +01:00
Sébastien Han cd08296f08 ci: skip codespell on go.sum
We don't need to lint go.sum since it's auto generated.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-11-18 18:37:56 +01:00
subhamkrai 49a3511532 ci: manifests changes to run gh action
to run the integration test there needs
to be a few changes in manifests like using
`deviceFilter` and other related changes.

Signed-off-by: subhamkrai <srai@redhat.com>
2020-11-18 09:31:07 +05:30
subhamkrai c240e70f55 ci: run integration test on github actions
as we are planning to move toward Github actions
for integration test. This commit runs ceph
suites using Github action.

Signed-off-by: subhamkrai <srai@redhat.com>
2020-11-18 09:11:48 +05:30
Sébastien Han b011fd579b ci: add build job
Run the build **only** when no go files have changed since the other job
will build Rook anyway.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-11-16 18:05:11 +01:00
Sébastien Han 2d1cf09d8d ci: only run the canary test on code changes
If no Go files changed we do not run the CI.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-11-16 18:05:07 +01:00
Travis Nielsen bf1d3888f4 ceph: factor out CRDs from the common.yaml and helm chart
The CRDs need to be installed and updated separately from the
rest of the manifests. Helm charts also do not have a way to update
CRDs, therefore, any updates to the CRD schema must be done separately
from the helm chart. Now the CRDs are created in a new crd.yaml that must
be created along with common.yaml and before creating the operator.

The helm chart still contains the CRDs for initial creation, though
the helm chart will never update or remove them.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-11-11 12:16:20 -07:00
Mateusz Gozdek 8912e491d8 ci: .github/workflows: add codespell pipeline
As a follow up to #6563 which fixed all the typos found in the
repository, to avoid adding more obvious typos.

Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
2020-11-06 12:43:29 +01:00
Mateusz Gozdek 8ba3762fa4 docs: fix bunch of typos
Found by running the following command:

codespell -S .git,*.png,*.jpg -L \
aks,keyserver,atleast,dne,ser,ist,files\',ba,dum,iam,te -f -H

Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
2020-11-06 10:01:04 +01:00
Arun Kumar Mohan 20e7c4fbb9 ceph: changes to run unittests for external script
Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
2020-11-03 19:24:10 +05:30
Sébastien Han 3403776c3e ci: add more osd on pvc scenario
Add the following scenario:

* simple osd on pvc
* osd on pvc with db device
* osd on pvc with wal device
* encrypted simple osd on pvc
* encrypted osd on pvc with db device
* encrypted osd on pvc with wal device

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-10-30 16:17:10 +01:00
Sébastien Han ea1d71cbfb ceph: add vault kms support for osd encryption
When the Ceph cluster runs on PVC and the OSDs are encrypted we can
store LUKS's Key Encryption Key inside a Key Management System. Today,
Rook only supports HashiCorp Vault: https://www.vaultproject.io/

The CephCluster has now a new "security" field which will plug onto the
KMS. Here is an example:

security:
  kms:
    tokenSecretName: <name of the secret containing a Vault token, used
    to authenticate>
    connectionDetails: < a map of strings containing connection
    information>

Refer to the ceph-cluster-crd documentation to lear more.

Closes: https://github.com/rook/rook/issues/6105
Signed-off-by: Sébastien Han <seb@redhat.com>
2020-10-30 16:16:33 +01:00
subhamkrai a3cb168020 ci: increase golangci linter timeout
golangci linter sometimes failing due to
the timeout. So, increasing it to 6m from 4m.

Signed-off-by: subhamkrai <srai@redhat.com>
2020-10-21 22:38:03 +05:30
subhamkrai cb0ca66a6b ci: enable gosec linter in golangci-lint
golangci-lint linter gosec showing more errors
than gosec gh. This commit resolve
new errors. And, removing
nosec comments from autogenerated files.

Signed-off-by: subhamkrai <srai@redhat.com>
2020-10-19 11:50:06 +05:30
Sébastien Han bf9eb38f2a ci: add integration test for external python script
The CI runs a github action that builds and deploys a Rook cluster and
then execute various tests on the create-external-cluster-resources.py
script.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-10-13 16:31:59 +02:00
subhamkrai 679230f285 ci: enable all golangci-lint linter
this commit enable defalut error check
for golangci-lint linter.

Signed-off-by: subhamkrai <srai@redhat.com>
2020-09-30 22:26:02 +05:30
subhamkrai ff0fb897ff ci: update golangci-lint with staticcheck
adding linter staticcheck in golangci-lint.
staticcheck - Staticcheck is a go vet on steroids,
applying a ton of static analysis checks

Signed-off-by: subhamkrai <srai@redhat.com>
2020-09-24 15:12:49 +05:30
subhamkrai af7ba588c6 ci: update golangci-lint with ineffassign linter
adding one more linter ineffassign in golangci-lint.
ineffassign - Detects when assignments to existing
variables are not used.

Signed-off-by: subhamkrai <subhamkumarrai03@gmail.com>
2020-09-21 14:35:00 +05:30
subhamkrai 54fe97c988 ci: add deadcode linter in golangci-lint
this commit will add one more linter deadcode
in golangci-lint tool.

Signed-off-by: subhamkrai <subhamkumarrai03@gmail.com>
2020-09-18 16:56:37 +05:30
subhamkrai 1c438021ce ci: update golangci-lint yaml
add one more linter rule in golangci-lint
and renaming this golangci-lint as we already have `lint`
name taken.

Signed-off-by: subhamkrai <subhamkumarrai03@gmail.com>
2020-09-17 23:00:08 +05:30
subhamkrai 7d03e84866 ci: adding golangci-lint tool in ci
this commit will add golangci-lint tool
in ci and currently, only gosimple linter
is enabled.

Signed-off-by: subhamkrai <subhamkumarrai03@gmail.com>
2020-09-17 15:20:49 +05:30
Sébastien Han 48dad45f98 ci: run unit tests in gh actions
We now run Rook's unit test in gh workflows

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-27 16:19:10 +02:00
Sébastien Han 58c8de95be ci: add modcheck github workflow
Add a new github workflow to verify with mod check.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-27 12:15:41 +02:00
Sébastien Han af5a7f4df8 ci: run make codegen validation in workflow
Fail if a PR is submitted and has not run "make codegen"

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-25 19:19:15 +02:00
subhamkrai 22216899b9 ci: adding gosec tool in ci
this commit will add gosec check in ci
and it will help us increase code quality.

Signed-off-by: subhamkrai <subhamkumarrai03@gmail.com>
2020-07-30 13:36:17 +05:30
Travis Nielsen 785e866dd2 ci: reduce the PR stale time to 90 days
The stalebot has not been closing PRs that are stale.
Reducing the timeout from 6 months to 3 months.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-07-28 15:31:15 -06:00
Sébastien Han d680b00ad7 bot: change PR template
Reflect the change from commitlint bot to commitlint action check.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-05-28 17:36:04 +02:00
Sébastien Han 2b47117fc7 bot: add commitlint gh action
We now use a github action to perform commit linting instead of the old
deprecated commitlint bot.

Closes: https://github.com/rook/rook/issues/5547
Signed-off-by: Sébastien Han <seb@redhat.com>
2020-05-28 12:12:57 +02:00
Travis Nielsen c7310ec802 git: clarify CI flags in PR template
The commitlint bot is rarely understood and flags to skip the CI are
rarely used by new contributors. This update to the PR template
aims to make these options more discoverable to newer members of
the community

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-04-09 00:11:16 -06:00
Travis Nielsen ab705fe548 stalebot: add keepalive label to exempt issues
Some issues should not be closed by the stale bot, whether because an
issue is taking a long time to design, implement, or if we need an
owner for the issue, but we know we need the feature or fix.

The keepalive label will cause the bot to skip closing stale issues.

This label should be used sparingly

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-03-13 10:20:54 -06:00
Travis Nielsen a6ab608361 bot: keep reliability issues open
The bot should not close issues that are related to reliability.
Rook's reliability is too critical to allow the bot to close
these issues.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-03-02 11:46:54 -07:00
Travis Nielsen edbbf6b2ca project: close stale pull requests if no activity
Issues are already being closed if there is no activity for 90 days.
Pull requests have not been closed automatically. This change will cause
pull requests to be closed after six months of inactivity. If there is
no further activity, the PR will be closed after one more month.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2019-10-26 01:03:11 -06:00
Alan aeb47eaf52 fix misspelling in bug_report.md
Signed-off-by: alan <zg.zhu@daocloud.io>
2019-07-27 15:47:17 +08:00
travisn 807326049e fix the links in the PR checklist
The relative links in the PR template are broken so we
need to specify full paths.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-07-17 23:29:52 -06:00
Sébastien Han 571eaf2308 github: re-add default template for new issues
This is not a recommended workflow but useful if people click on "Don’t
see your issue here? Open a regular issue."

Signed-off-by: Sébastien Han <seb@redhat.com>
2019-07-12 12:18:32 +02:00
Sébastien Han 35d6f73d5e Merge pull request #3432 from leseb/checklist-pr
PR checklist and Issue template update
2019-07-12 12:06:25 +02:00
travisn 9af20e8dc0 Add documentation for skipping the CI
The CI only needs to be run for PRs that have code changes.
PRs that are only documentation, yaml, or other files
that are not built should skip the long and tedious
CI process. This makes the [skip ci] flag more discoverable.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-07-11 16:40:40 -06:00
Sébastien Han 8f0a92fc1c github: remove old template issue file
This file is not used anymore and has an old format.

Signed-off-by: Sébastien Han <seb@redhat.com>
2019-07-11 15:37:07 +02:00
Sébastien Han 37ef4979a4 issue: update template
We need more information when opening bugs such as:

* logs from pod and operator
* cluster CR

Signed-off-by: Sébastien Han <seb@redhat.com>
2019-07-11 15:37:07 +02:00