Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:Resize pvc for RedisCluster #463

Closed
wants to merge 36 commits into from
Closed

Conversation

jiuker
Copy link
Contributor

@jiuker jiuker commented Mar 21, 2023

Resize pvc for RedisCluster

Description

  1. pvc for RedisCluster have labels:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: xxxx
  labels:
    app: test-redis-c-leader
    app.kubernetes.io/component: redis
    app.kubernetes.io/name: test-redis-c
    redis_setup_type: cluster
    role: leader

Here app is sts's Name,app. kubernetes.io/name is CR's name,so we match label just app and redis

Fixes #ISSUE

Type of change

Bug fix

  • Bug fix

Checklist

  • Testing has been performed
  • No functionality is broken
  • Documentation updated

@iamabhishek-dubey
Copy link
Member

@jiuker, this will not enable the resizing of persistent volume; labels will not impact resizing. It needs to be triggered manually as of now.

But as the label is missing, this PR can be merged. Please fix the linters.

@jiuker
Copy link
Contributor Author

jiuker commented Apr 9, 2023

Member

** iamabhishek-dubey**

@iamabhishek-dubey I didn't find this needed to fix the linter? Looks like a cicd environment problem?

jiuker and others added 28 commits July 20, 2023 15:13
Resize pvc for RedisCluster

Signed-off-by: guozhi.li <[email protected]>
Signed-off-by: Aidan Jensen <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
* add : Lint

Signed-off-by: Shubham Gupta <[email protected]>

* fix : Lint

Signed-off-by: Shubham Gupta <[email protected]>

* Add : Linter Setting

Signed-off-by: Shubham Gupta <[email protected]>

* fix : lint

Signed-off-by: Shubham Gupta <[email protected]>

* Fix : Lint

Signed-off-by: Shubham Gupta <[email protected]>

* add : ALL

Signed-off-by: Shubham Gupta <[email protected]>

* Fix : Lint

Signed-off-by: Shubham Gupta <[email protected]>

* Comment : Lint

Signed-off-by: Shubham Gupta <[email protected]>

* Disable : go mod directive

Signed-off-by: Shubham Gupta <[email protected]>

* Remove deadline

Signed-off-by: Shubham Gupta <[email protected]>

* update : Lint Check

Signed-off-by: Shubham Gupta <[email protected]>

* ignore : Json tag

Signed-off-by: Shubham Gupta <[email protected]>

* Update : TagLiatelle

Signed-off-by: Shubham Gupta <[email protected]>

* remove go version for a while

Signed-off-by: Shubham Gupta <[email protected]>

* Fix : lint

Signed-off-by: Shubham Gupta <[email protected]>

* skip files

Signed-off-by: Shubham Gupta <[email protected]>

* fix : lint

Signed-off-by: Shubham Gupta <[email protected]>

* skip dir

Signed-off-by: Shubham Gupta <[email protected]>

* fix : config

Signed-off-by: Shubham Gupta <[email protected]>

* skip dir

Signed-off-by: Shubham Gupta <[email protected]>

* skip di 2

Signed-off-by: Shubham Gupta <[email protected]>

* skip dir

Signed-off-by: Shubham Gupta <[email protected]>

* skip file

Signed-off-by: Shubham Gupta <[email protected]>

* skip file

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
* Update README.md

* Update README.md

Signed-off-by: sadath-12 [email protected]

* fix : PR

Signed-off-by: Shubham Gupta <[email protected]>

* fix : MD034

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: sadath-12 [email protected]
Signed-off-by: Shubham Gupta <[email protected]>
Co-authored-by: syedsadath-17 <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
…KIT#465)

* add : overview

Signed-off-by: Shubham Gupta <[email protected]>

* fix : installation

Signed-off-by: Shubham Gupta <[email protected]>

* Add : Documentation replication and sentinel mode

Signed-off-by: Shubham Gupta <[email protected]>

* add Images

Signed-off-by: Shubham Gupta <[email protected]>

* Add : Docs Sentinel

Signed-off-by: Shubham Gupta <[email protected]>

* update Image

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
…T-CONTAINER-KIT#482)

* BUG-FIX:ADDED-CRD-MANIFESTS-PATH

Signed-off-by: sadath-12 <[email protected]>

* UNDO MAKEFILE CHANGES

Signed-off-by: sadath-12 <[email protected]>

---------

Signed-off-by: sadath-12 <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
…1.0 (OT-CONTAINER-KIT#456)

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20210817164053-32db794688a5 to 0.1.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: guozhi.li <[email protected]>
…R-KIT#484)

* fix: exporter ports enabled even when exporters disabled

Signed-off-by: sadath-12 <[email protected]>

* fix: dependency issues

Signed-off-by: sadath-12 <[email protected]>

---------

Signed-off-by: sadath-12 <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
* Add init container fields

Signed-off-by: drivebyer <[email protected]>

* define : init Container

Signed-off-by: Shubham Gupta <[email protected]>

* update : name of Init Container

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: drivebyer <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Co-authored-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
…dSeconds (OT-CONTAINER-KIT#487)

* initial commit

Signed-off-by: Sasidharan-3094 <[email protected]>

* updating

Signed-off-by: Sasidharan-3094 <[email protected]>

* + Sidecar features & termgraceperiodsecs

Signed-off-by: Sasidharan-3094 <[email protected]>

* generating manager

Signed-off-by: Sasidharan-3094 <[email protected]>

* PR Comments

Signed-off-by: Sasidharan-3094 <[email protected]>

---------

Signed-off-by: Sasidharan-3094 <[email protected]>
Co-authored-by: Sasidharan Gopal <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
* Feature : acl-redis via configmap

Signed-off-by: Shubham Gupta <[email protected]>

* update : acl volume source from config to secret

Signed-off-by: Shubham Gupta <[email protected]>

* update : examples

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
)

* [Feature]: Add InitContainer Field (OT-CONTAINER-KIT#458)

* Add init container fields

Signed-off-by: drivebyer <[email protected]>

* define : init Container

Signed-off-by: Shubham Gupta <[email protected]>

* update : name of Init Container

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: drivebyer <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Co-authored-by: Shubham Gupta <[email protected]>
Signed-off-by: Sasidharan-3094 <[email protected]>

* initial commit

Signed-off-by: Sasidharan-3094 <[email protected]>

* updating

Signed-off-by: Sasidharan-3094 <[email protected]>

* + Sidecar features & termgraceperiodsecs

Signed-off-by: Sasidharan-3094 <[email protected]>

* generating manager

Signed-off-by: Sasidharan-3094 <[email protected]>

* PR Comments

Signed-off-by: Sasidharan-3094 <[email protected]>

* Feature : ACL redis via secret (OT-CONTAINER-KIT#486)

* Feature : acl-redis via configmap

Signed-off-by: Shubham Gupta <[email protected]>

* update : acl volume source from config to secret

Signed-off-by: Shubham Gupta <[email protected]>

* update : examples

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Sasidharan-3094 <[email protected]>

* bugFix

Signed-off-by: Sasidharan-3094 <[email protected]>

* fix

---------

Signed-off-by: drivebyer <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Sasidharan-3094 <[email protected]>
Co-authored-by: drivebyer <[email protected]>
Co-authored-by: Shubham Gupta <[email protected]>
Co-authored-by: Sasidharan Gopal <[email protected]>
Co-authored-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
…T-CONTAINER-KIT#445)" (OT-CONTAINER-KIT#510)

This reverts commit ff6980f.

Signed-off-by: chobostar <[email protected]>
Co-authored-by: Kirill Petrov <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
* add watchnamespace function

* change Env Variable Name

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Co-authored-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
…-KIT#532)

* fix: Only created /node-conf VolumeMount for clusters

Signed-off-by: RJM <[email protected]>

* change Variable Name

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: RJM <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Co-authored-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
* Set up CI with Azure Pipelines

[skip ci]

* Update pipeline.yaml

* fix sentinel Exporter ports

Signed-off-by: Shubham Gupta <[email protected]>

* no change in azure pipeline

Signed-off-by: Shubham Gupta <[email protected]>

* update this pipeline

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
shubham-cmyk and others added 8 commits July 20, 2023 15:13
* Set up CI with Azure Pipelines

[skip ci]

Signed-off-by: Shubham Gupta <[email protected]>

* Update pipeline.yaml

Signed-off-by: Shubham Gupta <[email protected]>

* Fix Bug : Operator Crash when persistence is false (OT-CONTAINER-KIT#519)

Signed-off-by: Shubham Gupta <[email protected]>

* add watchnamespace function (OT-CONTAINER-KIT#520)

* add watchnamespace function

* change Env Variable Name

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Co-authored-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>

* fix the loop call of checkAttachedSlave (OT-CONTAINER-KIT#523)

Signed-off-by: Shubham Gupta <[email protected]>

* Redis Cluster Scaling

Signed-off-by: Shubham Gupta <[email protected]>

* revert the pipeline

Signed-off-by: Shubham Gupta <[email protected]>

* comment some funcs

Signed-off-by: Shubham Gupta <[email protected]>

* remove Commented code

Signed-off-by: Shubham Gupta <[email protected]>

* Set up CI with Azure Pipelines

[skip ci]

* Update pipeline.yaml

* Revert "fix the loop call of checkAttachedSlave (OT-CONTAINER-KIT#523)"

This reverts commit 6713dbc.

* Revert "add watchnamespace function (OT-CONTAINER-KIT#520)"

This reverts commit e8bb2cd.

* Revert "Fix Bug : Operator Crash when persistence is false (OT-CONTAINER-KIT#519)"

This reverts commit faa45b5.

* Revert "Update pipeline.yaml"

This reverts commit db717f5.

* update pipeline

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Co-authored-by: progmatv <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
…INER-KIT#538)

* Set up CI with Azure Pipelines

[skip ci]

* Update pipeline.yaml

* revert azure pipeline

Signed-off-by: Shubham Gupta <[email protected]>

* update the pipeline

Signed-off-by: Shubham Gupta <[email protected]>

* bug fix invalid volume connect in Init Container

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
* Set up CI with Azure Pipelines

[skip ci]

* Update pipeline.yaml

* revert azure pipeline

Signed-off-by: Shubham Gupta <[email protected]>

* update the pipeline

Signed-off-by: Shubham Gupta <[email protected]>

* follow up for the cluster scaling

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
…OT-CONTAINER-KIT#542)

* Cluster leader failover on a single replica

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
…KIT#540)

* Remove redundant finalizers

Signed-off-by: muicoder <[email protected]>

 because of CRs ownerReferences have already been associated

* Remove unwanted code

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Co-authored-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: guozhi.li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.