Skip to content

Commit

Permalink
Merge branch 'master' of github.com:spotahome/redis-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuFin committed Feb 14, 2022
2 parents 9b7ea53 + c23e036 commit 095e24f
Show file tree
Hide file tree
Showing 7,568 changed files with 564,092 additions and 1,944,045 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
61 changes: 61 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
check:
name: Golang Check
runs-on: ubuntu-latest
# Execute the checks inside the container instead the VM.
container: golangci/golangci-lint:v1.43.0-alpine
steps:
- uses: actions/checkout@v2
- run: ./scripts/check.sh

unit-test:
name: Unit test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.17
- run: make ci-unit-test

integration-test:
name: Integration test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Install conntrack
run: sudo apt-get install -y conntrack
- uses: medyagh/[email protected]
with:
kubernetes-version: 1.22.2
driver: none
- name: Add redisfailover CRD
run: kubectl apply -f manifests/databases.spotahome.com_redisfailovers.yaml
- run: make ci-integration-test

chart-test:
name: Chart testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.7.2

- name: Helm test
run: make helm-test
31 changes: 31 additions & 0 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release Charts

on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.7.2

- name: Release
uses: helm/[email protected]
with:
charts_dir: charts
config: charts/chart-release-config.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
22 changes: 22 additions & 0 deletions .github/workflows/staleissues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v3
with:
days-before-issue-stale: 45
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 45 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/bin
.bash_history
.vscode
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Changelog

Check [releases](https://github.com/spotahome/redis-operator/releases) section for Changelog

## [v1.1.0-rc.3] - 2022-01-19
### Changes
- Fixed support for kubernetes <1.21

## [v1.1.0-rc.2] - 2022-01-17
### Changes
- Allow configuration of exporter resource
- Fix persistent volume claim metadata management
- Add arm64,arm,amd64 docker images

Update notes:

Ensure you update the CRD definition since CRD is no longer managed by the operator:
```
kubectl create -f https://raw.githubusercontent.com/spotahome/redis-operator/master/example/redisfailover/basic.yaml
```

## [v1.1.0-rc.1] - 2022-01-12

### Major Changes
- Add bootstrap from node
- Custom Resource Definition management is removed from operator logic. It must be added to the API, helm chart manage it now or can be applied with kubectl
- Upgraded libraries to match kubernetes 1.22
- Enable customization for `terminationGracePeriod`
- Fix support for redis 6.2>
- Fix ClusterRole compatible with openshift
- Improve reiliability on liveness probes
- Enable customization of nodeSelector and Tolerations
- Enable customization for command and args in exporter
- Improve auth handling
- Support priorityclassname

Thanks all contributors: @alecjacobs5401, @andriilahuta, @chusAlvarez, @Perfect-Web, Ilya Lesikov, @bit-cloner, Gregory Farnell, @technoplayer, @ThickDrinkLots, @ese, @identw, @LukeCarrier, @k3daevin, @dkulchinsky, @lucming, @cndoit18, @hoffoo, @chlins, @obsessionsys

## [v1.0.0] - 2020-02-24

### Major changes
Expand Down Expand Up @@ -303,6 +339,8 @@ example: `kubectl delete statefulset --cascade=false rfr-redisfailover`

- Initial open-sourced release


[v1.1.0-rc.1]: https://github.com/spotahome/redis-operator/compare/v1.0.0...v1.1.0-rc.1
[v1.0.0]: https://github.com/spotahome/redis-operator/compare/0.5.8...v1.0.0
[v1.0.0-rc.5]: https://github.com/spotahome/redis-operator/compare/v1.0.0-rc.4...v1.0.0-rc.5
[v1.0.0-rc.4]: https://github.com/spotahome/redis-operator/compare/v1.0.0-rc.3...v1.0.0-rc.4
Expand Down
Loading

0 comments on commit 095e24f

Please sign in to comment.