yangw
9280c02f22
fix: improve kubeClientQPS type consistency in operator chart ( #1485 )
...
* fix: improve kubeClientQPS type consistency in operator chart
- Use explicit float comparison (0.0) in deployment template
- Update values.yaml kubeClientQPS default from 0 to 0.0 for type consistency
- Ensures proper float64 type handling in Helm template condition
Signed-off-by: yangw <wuyangmuc@gmail.com>
* update docs
Signed-off-by: yangw <wuyangmuc@gmail.com>
* remove condition
Signed-off-by: yangw <wuyangmuc@gmail.com>
* update test config
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-08-29 16:46:57 +08:00
Daniel Goldman
0fa816c684
fix: do not remove default config volume when providing additional config ( #1480 )
...
fix: do not remove default config volume when providing external config
closes #1479
Signed-off-by: Daniel Goldman <danielgoldman4@gmail.com>
2025-08-21 21:15:30 +08:00
Tian
891b85590c
fix: Fix the issue where Sentinel fails to monitor one replica replication ( #1481 )
...
* fix: Solve the issue where Sentinel fails to work when starting 1 Master Replication
Signed-off-by: tcxdgit <tiancuixia92@163.com>
* fix: Fix failure to get monitorAddr in reconcileSentinel for single instance
Signed-off-by: tcxdgit <tiancuixia92@163.com>
---------
Signed-off-by: tcxdgit <tiancuixia92@163.com>
2025-08-21 20:37:05 +08:00
Jeffrey Boehm
3d52fdb0b7
feat: Add SecurityContext to init-config when behind GenerateConfigInInitContainer feature flag
...
feat: Add SecurityContext to Redis init containers in tests and configurations when behind GenerateConfigInInitContainer feature flag
Signed-off-by: Jeffrey Böhm <hello@jeffrey-boehm.de>
2025-08-14 16:35:10 +08:00
yangw
88d688acc5
docs: Rename Size to ClusterSize in RedisClusterSpec and update related comments ( #1475 )
...
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-08-07 19:43:43 +08:00
dcaputo-harmoni
e4faaeb5b7
fix: Recover redisreplication from master pod deletion without sentinel( #1449 )
...
* Recover from orphaned master
Signed-off-by: David Caputo <dcaputo@harmoni.io>
* Fix linting error
Signed-off-by: David Caputo <dcaputo@harmoni.io>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: David Caputo <dcaputo@harmoni.io>
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
2025-08-07 14:45:28 +08:00
yangw
809d48e57e
feat: Add kubeClientQPS and kubeClientTimeout configuration options ( #1473 )
...
* feat: Add kubeClientQPS and kubeClientTimeout configuration options
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix no flags in viper
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-08-06 22:25:09 +08:00
dependabot[bot]
e1004c0352
chore(deps): bump sigstore/cosign-installer from 3.9.1 to 3.9.2 ( #1465 )
...
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer ) from 3.9.1 to 3.9.2.
- [Release notes](https://github.com/sigstore/cosign-installer/releases )
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.9.1...v3.9.2 )
---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
dependency-version: 3.9.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-06 15:32:48 +08:00
yangw
afd663611c
fix: tls connection broken in replication with sentinel ( #1472 )
...
* feat: support tls in replication with sentinel
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix monitor
Signed-off-by: yangw <wuyangmuc@gmail.com>
* tls flag
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-08-06 11:40:18 +08:00
yangw
a2f7243c7f
feat: Add PDB values in redis replication ( #1461 )
...
* feat: Add PDB values in redis replication
Signed-off-by: yangw <wuyangmuc@gmail.com>
* add docs
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-07-28 11:25:41 +08:00
yangw
6d294f5cbe
fix: missing generate common types in api reference ( #1460 )
...
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-07-27 21:15:42 +08:00
yangw
ed95c2c660
feat: Add API doc generation tools and update Makefile ( #1459 )
...
- Introduced a new Makefile target `generate-api-docs` to automate API documentation generation using the `crd-ref-docs` tool.
- Added a new script `build.sh` for generating API documentation, including configuration for the documentation process.
- Created new documentation files for API reference, detailing the Redis API groups and resource types.
- Removed the obsolete Redis API documentation index file to streamline the documentation structure.
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-07-27 20:23:42 +08:00
yangw
fefd300cb9
feat: Implement RedisCluster clusterSize validation webhook ( #1458 )
...
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-07-27 17:09:56 +08:00
Michel Zehnder
cc0c9b0f92
docs: Fix obsolete links ( #1457 )
...
* Fix obsolete links
Signed-off-by: Michel Zehnder <MichelZ@users.noreply.github.com>
* Remove obsolete paragraph
Signed-off-by: Michel Zehnder <MichelZ@users.noreply.github.com>
---------
Signed-off-by: Michel Zehnder <MichelZ@users.noreply.github.com>
2025-07-27 15:55:27 +08:00
Michel Zehnder
6d2ec60c8e
docs: Update release history ( #1453 )
...
* Update Release History
Signed-off-by: Michel Zehnder <MichelZ@users.noreply.github.com>
* Update Release History v0.15.1
Signed-off-by: Michel Zehnder <MichelZ@users.noreply.github.com>
* Update Release History
Signed-off-by: Michel Zehnder <MichelZ@users.noreply.github.com>
* Update Release History
Signed-off-by: Michel Zehnder <MichelZ@users.noreply.github.com>
---------
Signed-off-by: Michel Zehnder <MichelZ@users.noreply.github.com>
2025-07-25 16:03:14 +08:00
Michel Zehnder
aa8d2d9cf1
docs: Update CHANGELOG.md with latest information ( #1454 )
...
Update CHANGELOG.md with latest information
Signed-off-by: Michel Zehnder <MichelZ@users.noreply.github.com>
2025-07-25 16:00:11 +08:00
yangw
a8ab85d4fa
docs: Sentinel recommendations and update security context fields ( #1450 )
...
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-07-24 19:54:56 +08:00
Dee Kryvenko
d17ea8b4bf
feat: Add PersistentVolumeClaimRetentionPolicy support ( #1448 )
...
Signed-off-by: Dee Kryvenko <dee@homecloud.zone>
2025-07-24 18:04:47 +08:00
dependabot[bot]
4a41f558dc
chore(deps): bump golang.org/x/oauth2 from 0.24.0 to 0.27.0 ( #1447 )
...
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2 ) from 0.24.0 to 0.27.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.24.0...v0.27.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
dependency-version: 0.27.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-22 14:50:41 +08:00
dependabot[bot]
321cc1d498
chore(deps): bump golangci/golangci-lint-action from 6 to 8 ( #1311 )
...
* chore(deps): bump golangci/golangci-lint-action from 6 to 7
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 6 to 7.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* update golangci lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
* update version
Signed-off-by: yangw <wuyangmuc@gmail.com>
* upgrade yaml
Signed-off-by: yangw <wuyangmuc@gmail.com>
* remove useless
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fixlint
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix test
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
2025-07-18 17:04:25 +08:00
yangw
55eaf4499e
docs: Update Redis Operator README and Sentinel documentation ( #1439 )
...
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-07-08 15:42:08 +08:00
Fatih Sarhan
1414470dcd
docs: Add controller metrics guide and Grafana dashboard for Redis Operator ( #1438 )
...
* feat(monitoring): expose existing controller metrics via operator pod and add docs/dashboard
Signed-off-by: Fatih Sarhan <f9n@protonmail.com>
* docs(metrics): add spacing for improved readability in auto-generated metrics docs
Signed-off-by: Fatih Sarhan <f9n@protonmail.com>
* custom port
Signed-off-by: yangw <wuyangmuc@gmail.com>
* upgrade
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: Fatih Sarhan <f9n@protonmail.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
2025-07-07 22:04:30 +08:00
Fatih Sarhan
2f214a99c6
docs: Update slack channel link and improve sharding section clarity ( #1437 )
...
fix(docs): Update slack channel link and improve sharding section clarity
Signed-off-by: Fatih Sarhan <f9n@protonmail.com>
2025-07-07 10:36:44 +08:00
yangw
97662c17fa
docs: update Redis API documentation for security context fields ( #1435 )
...
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-07-06 19:16:36 +08:00
Stephen Greenham
558a12c2b1
fix: sentinel controller should reconcile on statefulset updated ( #1432 )
...
* feat: enable periodic reconciliation for Redis Sentinel to handle pod restarts and lost endpoints
* reconcile on event
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
2025-07-05 22:32:05 +08:00
Fatih Sarhan
87f28cabda
docs: Update edit URL path ( #1434 )
...
fix(docs): Update edit URL path
Signed-off-by: Fatih Sarhan <f9n@protonmail.com>
2025-07-05 21:06:16 +08:00
yangw
5e53f08ac0
feat: add pprof configuration for performance profiling ( #1431 )
...
This update allows users to enable and configure pprof for better performance monitoring of the redis-operator.
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-07-05 20:56:31 +08:00
Dimitar Pavlov
9d15e21011
feat: RedisCluster controller: attempt to repair disconnected nodes whenever detected ( #1426 )
...
* repair nodes whenever any has failed
Signed-off-by: dimitar <dimpavloff@gmail.com>
* lint
Signed-off-by: dimitar <dimpavloff@gmail.com>
---------
Signed-off-by: dimitar <dimpavloff@gmail.com>
2025-07-03 15:45:21 +08:00
yangw
d1ab41c185
refactor: introduce common constants and finalizer utilities for Redis controllers ( #1428 )
...
* refactor: introduce common constants and finalizer utilities for Redis controllers
- Added a new `constants.go` file to define common constants used across Redis controllers, including annotation keys and port numbers.
- Introduced `finalizer.go` to implement finalizer management functions for graceful deletion of Redis resources.
- Updated various Redis controller files to utilize the new common constants and finalizer functions, enhancing code consistency and maintainability.
This update improves the organization of shared constants and finalizer logic, streamlining the development of Redis controllers.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix for lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-07-03 11:46:48 +08:00
dependabot[bot]
9b52e0eaa3
chore(deps): bump github.com/redis/go-redis/v9 from 9.9.0 to 9.11.0 ( #1423 )
...
Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis ) from 9.9.0 to 9.11.0.
- [Release notes](https://github.com/redis/go-redis/releases )
- [Changelog](https://github.com/redis/go-redis/blob/master/CHANGELOG.md )
- [Commits](https://github.com/redis/go-redis/compare/v9.9.0...v9.11.0 )
---
updated-dependencies:
- dependency-name: github.com/redis/go-redis/v9
dependency-version: 9.11.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-01 22:10:47 +08:00
dependabot[bot]
baa2866f74
chore(deps): bump sigstore/cosign-installer from 3.8.2 to 3.9.1 ( #1419 )
...
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer ) from 3.8.2 to 3.9.1.
- [Release notes](https://github.com/sigstore/cosign-installer/releases )
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.8.2...v3.9.1 )
---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
dependency-version: 3.9.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-01 22:10:16 +08:00
yangw
07103da639
refactor: remove dynamic client usage and streamline Kubernetes client interactions ( #1420 )
...
* refactor: remove dynamic client usage and streamline Kubernetes client interactions
- Eliminated the dynamic Kubernetes client from the codebase, simplifying client creation and usage across controllers and utility functions.
- Updated relevant functions and method signatures to use the standard Kubernetes client interface, enhancing code clarity and maintainability.
- Adjusted controller logic to ensure proper handling of Redis cluster and sentinel operations without the dynamic client.
This refactor improves the overall architecture and reduces complexity in client management.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-07-01 22:08:25 +08:00
yangw
2389f9c38a
fix: add webhook condition to service template ( #1418 )
...
- Updated the redis-operator version in Chart.yaml to 0.21.1.
- Added a conditional statement in service.yaml to include webhook configuration based on user-defined values.
fix #1440
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-07-01 14:28:02 +08:00
yangw
ae4bef14e2
chore: add sync-crds target to Makefile ( #1417 )
...
- Introduced a new `sync-crds` target in the Makefile to sync CRDs to the chart directory.
- Added `charts/redis-operator/crds/crds.yaml` to define the Redis CRD.
- Removed outdated CRD YAML files for Redis resources to streamline the codebase.
This update enhances the management of CRDs within the Redis operator, ensuring they are properly synced and organized.
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-06-30 21:48:37 +08:00
yangw
beb30bef46
chore: update operator to version 0.21.0 and adjust CRD annotations ( #1416 )
...
* add github user in release note
Signed-off-by: yangw <wuyangmuc@gmail.com>
* chore: update operator to version 0.21.0 and adjust CRD annotations
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-06-30 17:59:03 +08:00
yangw
8499c3fdaf
Update version
...
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-06-30 17:12:54 +08:00
Dimitar Pavlov
4d200a3ea0
feat: Round robin where to transfer cluster shards when scaling in a Redis Cluster ( #1412 )
...
* round robin where to move shards when scaling in
Signed-off-by: dimitar <dimpavloff@gmail.com>
* rename slot to slots
Signed-off-by: dimitar <dimpavloff@gmail.com>
* rename target to transfer variables for consistency
Signed-off-by: dimitar <dimpavloff@gmail.com>
* swap function parameters for better cohesion
Signed-off-by: dimitar <dimpavloff@gmail.com>
* fail fast and log
Signed-off-by: yangw <wuyangmuc@gmail.com>
* try log
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: dimitar <dimpavloff@gmail.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
2025-06-20 20:19:48 +08:00
yangw
261dc1d9bb
feat: add auto max memory configuration for Redis instances ( #1411 )
...
* feat: add auto max memory configuration for Redis instances
- Introduced MaxMemoryPercentOfLimit field in RedisConfig to specify the percentage of container memory limit to be used as maxmemory.
- Updated CRD definitions to include validation for MaxMemoryPercentOfLimit with minimum and maximum constraints.
- Enhanced container parameter generation to utilize MaxMemoryPercentOfLimit for Redis cluster, replication, and standalone configurations.
- Added e2e tests to verify maxmemory settings for Redis instances.
This feature improves memory management for Redis deployments, allowing for better resource utilization.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix test
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix command
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-06-18 16:51:04 +08:00
yangw
00f44f85d9
feat: add bus port configuration for Redis cluster services ( #1406 )
...
* feat: add bus port configuration for Redis cluster services
- Introduced new methods in KubernetesConfig to determine if the bus port should be included for headless and additional services.
- Updated ServiceConfig and Service structs to include an optional IncludeBusPort field.
- Enhanced service creation logic to conditionally add the bus port based on the new configuration.
- Updated CRD definitions to reflect the new IncludeBusPort field and its description.
- Modified e2e tests to validate the inclusion of the bus port in service configurations.
This enhancement allows for better customization of Redis service configurations, particularly for Redis cluster mode.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix test
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-06-17 15:47:00 +08:00
yangw
4cccf2ef32
feat: add automatic Redis pod role label synchronization for rediscluster ( #1404 )
...
* feat: enhance Redis healing capabilities with role label updates
- Introduced UpdateRedisRoleLabel method in the Healer interface to update pod role labels based on their master/slave status.
- Updated RedisReplication and RedisSentinel controllers to utilize the new role label updating functionality.
- Refactored the setup of controllers to use a single instance of Healer for consistency.
This enhancement improves the management of Redis pod roles within the cluster, ensuring accurate labeling and better operational reliability.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix update not label
Signed-off-by: yangw <wuyangmuc@gmail.com>
* feat: enhance Redis cluster role management with common label updates
- Added a new common package to define Redis setup types and label management functions.
- Integrated role label updates in the RedisCluster and RedisReplication controllers to ensure accurate pod role labeling during failover scenarios.
- Updated the RedisCluster service creation to include a common cluster label for better identification.
- Enhanced e2e tests to validate the new role update functionality and service configurations.
This update improves the operational reliability and observability of Redis clusters by ensuring consistent labeling across components.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
* add sleep
Signed-off-by: yangw <wuyangmuc@gmail.com>
* remove useless
Signed-off-by: yangw <wuyangmuc@gmail.com>
* refactor
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-06-13 16:19:17 +08:00
Husni Alhamdani
47aad6570d
feat: rediscluster observability ( #1392 )
...
* feat: rediscluster observability
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: rediscluster observability
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
---------
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2025-06-04 20:36:36 +08:00
dependabot[bot]
116153f1e6
chore(deps): bump github.com/redis/go-redis/v9 from 9.7.3 to 9.9.0 ( #1386 )
...
Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis ) from 9.7.3 to 9.9.0.
- [Release notes](https://github.com/redis/go-redis/releases )
- [Changelog](https://github.com/redis/go-redis/blob/master/CHANGELOG.md )
- [Commits](https://github.com/redis/go-redis/compare/v9.7.3...v9.9.0 )
---
updated-dependencies:
- dependency-name: github.com/redis/go-redis/v9
dependency-version: 9.9.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-02 09:51:40 +00:00
dependabot[bot]
0b6fdd6fb5
chore(deps): bump github.com/go-logr/logr from 1.4.2 to 1.4.3 ( #1388 )
...
Bumps [github.com/go-logr/logr](https://github.com/go-logr/logr ) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/go-logr/logr/releases )
- [Changelog](https://github.com/go-logr/logr/blob/master/CHANGELOG.md )
- [Commits](https://github.com/go-logr/logr/compare/v1.4.2...v1.4.3 )
---
updated-dependencies:
- dependency-name: github.com/go-logr/logr
dependency-version: 1.4.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-02 17:18:28 +08:00
yangw
5b0641f686
refactor: reorganiz manager agent cmd package ( #1383 )
...
- Introduced a new configuration generation system for Redis and Sentinel, encapsulated in the `bootstrap` package.
- Added `Task` struct to manage configuration generation based on the selected mode (Redis or Sentinel).
- Implemented `GenerateConfig` functions for both Redis and Sentinel, allowing for dynamic configuration based on environment variables.
- Updated command structure to use `CMD()` methods for agent and manager commands, enhancing command organization.
- Removed deprecated `generate_config.go` file to streamline the codebase.
This update enhances the flexibility and configurability of the Redis operator, allowing for better integration with Kubernetes environments.
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-06-01 08:17:52 +08:00
yangw
a0466fc09d
fix: resolve StatefulSet selector immutability issues ( #1382 )
...
* fix: resolve StatefulSet selector immutability issues with Helm deployments
- Add extractStatefulSetSelectorLabels() to filter stable labels for StatefulSet selectors
- Modify generateStatefulSetsDef() to use filtered selector labels while preserving all labels in metadata/templates
- Revert Service selector changes as Service selectors are mutable and don't require filtering
- Add comprehensive tests for StatefulSet selector label filtering
- Fixes #546 and #488 : StatefulSet forbidden errors during Helm chart upgrades
This change ensures StatefulSet selectors only contain stable labels (app, redis_setup_type, role)
while allowing mutable Helm-managed labels (helm.sh/chart, app.kubernetes.io/version) in metadata.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix test
Signed-off-by: yangw <wuyangmuc@gmail.com>
* simple test
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix syntax
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-31 18:00:44 +08:00
yangw
14684ccc92
feat: avoid sentinel restart after replication failover ( #1381 )
...
* feat: implement Redis health check and healing mechanisms
- Added Checker and Healer interfaces to manage Redis replication and sentinel health.
- Introduced methods for checking master status and resetting sentinels.
- Updated RedisSentinelReconciler to utilize the new health check and healing functionalities.
This enhancement improves the reliability and self-healing capabilities of the Redis operator.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix Lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix nil
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix name
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix client closed
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix test
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-30 18:01:39 +08:00
yangw
903520db59
feat: add liveness/readiness probes to values.yaml and templates ( #1378 )
...
- Updated Chart.yaml to version 0.17.0.
- Added livenessProbe and readinessProbe configurations to values.yaml for both leader and follower.
- Updated _helpers.tpl to include livenessProbe and readinessProbe in the rendered templates.
This update enhances the Redis cluster's health monitoring capabilities.
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-28 15:48:30 +08:00
yangw
45ba5259a5
feat: reduce uncessary requeue when skip reconcile annotation exists ( #1374 )
...
* fix: reduce uncessary requeue when skip reconcile annotation exists
- Added a new package `common` with a function `IsSkipReconcile` to check for skip-reconcile annotations on Redis, RedisCluster, RedisReplication, and RedisSentinel resources.
- Updated Redis, RedisCluster, RedisReplication, and RedisSentinel controllers to utilize the skip-reconcile logic.
- Introduced unit tests to validate the skip-reconcile behavior for each resource type.
This enhancement allows for more flexible reconciliation management in the Redis operator.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-28 14:41:43 +08:00
yangw
d3138c6a1b
docs: add important notes on redisReplicationName parameter in Sentinel documentation ( #1375 )
...
- Added a note emphasizing that the `redisReplicationName` parameter must reference an existing RedisReplication resource.
- Included a reminder to deploy a RedisReplication resource before installing Sentinel to ensure proper functionality.
This update clarifies the prerequisites for using Redis Sentinel effectively.
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-28 11:48:31 +08:00
yangw
70b4c3f27b
docs: update release version to 0.20.2 in config.toml ( #1372 )
...
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-27 15:09:00 +08:00
yangw
66fe81c58c
docs: update weight for Feature Gates documentation ( #1370 ) ( #1371 )
...
- Increased the weight of the Feature Gates section from 30 to 40 to adjust its prominence in the documentation hierarchy.
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-26 21:54:32 +08:00
Husni Alhamdani
587fecd1d5
feat: redisreplication observability, skip reconcile or not ( #1369 )
...
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2025-05-23 14:16:51 +08:00
yangw
35bee34d11
chore: add GitHub Actions workflow for automatic release creation on tag push ( #1364 )
...
- Introduced a new workflow that triggers on tag pushes matching 'v*'.
- Configured steps to check for existing releases, generate release notes, and create a new GitHub release if none exists.
- This automation streamlines the release process for the Redis operator.
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-21 11:38:17 +08:00
yangw
00165cb4ac
refactor: reorganize API structure and update paths ( #1363 )
...
* refactor: reorganize Redis API structure and update paths
- Updated the paths for Redis, RedisCluster, RedisReplication, and RedisSentinel APIs to reflect the new directory structure.
- Added new group version files for Redis, RedisCluster, RedisReplication, and RedisSentinel.
- Implemented conversion and webhook functionalities for the new API versions.
- Removed deprecated v1beta2 API files to streamline the codebase.
This refactor enhances the organization and maintainability of the Redis operator's API structure.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-19 17:53:37 +08:00
yangw
3377056d8e
refactor: remove useless structure and refactor package ( #1362 )
...
- Added new KubernetesConfig and ServiceConfig types to define Redis configurations.
- Implemented methods for service type and annotations retrieval.
- Created unit tests for ShouldCreateAdditionalService logic in KubernetesConfig.
- Removed deprecated v1beta2/common_types.go file and migrated relevant code to the new structure.
This update enhances the configuration management for Redis in the operator.
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-19 11:05:47 +08:00
yangw
66abbb6f4f
feat: add Redis Sentinel validation webhook for clusterSize ( #1361 )
...
* feat: add Redis Sentinel validation webhook for clusterSize
- Implemented a validation webhook for Redis Sentinel to ensure the cluster size is an odd number for proper leader election.
- Added test cases for the validation webhook to verify successful and failed creation scenarios.
- Updated webhook configuration in manifests to include the new validation rules.
This enhances the reliability of Redis Sentinel configurations in the operator.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-18 21:30:41 +08:00
yangw
069e6b913d
chore: bump version to 0.20.3 in operator Chart.yaml ( #1355 )
...
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-14 14:24:57 +08:00
Belly-Buster
f9f28e9889
fix: define named probe port outside webhook block ( #1353 ) ( #1354 )
...
Signed-off-by: Belly Buster
Signed-off-by: Belly Buster <60049331+Belly-Buster@users.noreply.github.com>
2025-05-14 14:21:52 +08:00
yangw
59fa0e6ce3
refactor: reorganize command structure for Redis operator ( #1351 )
...
* refactor: reorganize command structure for Redis operator
- Moved command definitions for agent and manager into separate files for better organization.
- Introduced new bootstrap command for initializing Redis and Sentinel configurations.
- Updated main command to utilize the new command structure.
This refactor enhances the maintainability and clarity of the command handling in the Redis operator.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-12 22:56:54 +08:00
yangw
08d13a516f
chore: bump version to 0.20.2 ( #1349 )
...
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-05-12 17:24:48 +08:00
BoShuai Li
0270861930
docs: fix Redis Cluster YAML Manifest Example ( #1345 ) ( #1346 )
...
Co-authored-by: yangw <yang.wu@daocloud.io>
2025-05-12 16:12:20 +08:00
John Paul K J
16ebe4a2fc
fix: Service updated before Statefulset during Reconcilation #1347 ( #1348 )
...
fix: Service updated before Statefulset during Reconcilation(#1347 )
Signed-off-by: John Paul K J <polestar2john@gmail.com>
2025-05-12 15:42:29 +08:00
Dimitar Pavlov
f8ed8f7ad9
fix: VCT resize detection logic; add support for scaling out with new VCT size ( #1342 )
...
* Fix VCT resize detection logic; support for scaling out with new VCT size
Signed-off-by: dimitar <dimpavloff@gmail.com>
* fix lint
Signed-off-by: dimitar <dimpavloff@gmail.com>
* format
Signed-off-by: dimitar <dimpavloff@gmail.com>
* add test case
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: dimitar <dimpavloff@gmail.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
2025-05-12 14:52:51 +08:00
Maxence Boutet
5435979283
docs: fix redis sentinel example ( #1343 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2025-05-07 15:05:11 +00:00
PRANSHU RAJ
d5206c14b4
chore: migrate kubebuilder go.kubebuilder.io/v3 to go.kubebuilder.io/v4 ( #1340 )
...
* chore: migrate kubebuilder go.kubebuilder.io/v3 to go.kubebuilder.io/v4
Signed-off-by: pranshu-raj <pranshuraj828@gmail.com>
* Update CRDs and manager image version
- Updated controller-gen version in Redis CRDs from v0.14.0 to v0.17.2.
- Adjusted kustomization files to use 'resources' instead of 'bases'.
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* refactor: rename pkg to internal and rename controllers to controller
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* refactor: remove pkg directory from Dockerfile
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: pranshu-raj <pranshuraj828@gmail.com>
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2025-05-03 13:23:50 +05:30
dependabot[bot]
4e5c951fe9
chore(deps): bump github.com/prometheus/client_golang from 1.19.0 to 1.22.0 ( #1337 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-03 13:06:47 +05:30
dependabot[bot]
7a1a167a31
chore(deps): bump sigstore/cosign-installer from 3.8.1 to 3.8.2 ( #1335 )
...
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer ) from 3.8.1 to 3.8.2.
- [Release notes](https://github.com/sigstore/cosign-installer/releases )
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.8.1...v3.8.2 )
---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
dependency-version: 3.8.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-02 14:36:39 +05:30
dependabot[bot]
ef7372d9c2
chore(deps): bump github.com/onsi/ginkgo/v2 from 2.22.2 to 2.23.4 ( #1338 )
...
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from 2.22.2 to 2.23.4.
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.22.2...v2.23.4 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-version: 2.23.4
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-02 14:36:01 +05:30
dependabot[bot]
cf0b8dac0d
chore(deps): bump github.com/onsi/gomega from 1.36.2 to 1.37.0 ( #1336 )
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.36.2 to 1.37.0.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.36.2...v1.37.0 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-version: 1.37.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-02 14:11:11 +08:00
yangw
0654e13b30
feat: add feature gates support for Redis Operator ( #1333 )
...
* feat: add feature gates support for Redis Operator
- Introduced feature gates in values.yaml to enable alpha/experimental features.
- Updated operator-deployment.yaml to include FEATURE_GATES environment variable based on the configured feature gates.
- Added documentation for feature gates, including configuration and lifecycle details.
These changes enhance the configurability of the Redis Operator by allowing users to enable experimental features.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* docs
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-04-29 22:09:37 +08:00
yangw
828c187442
feat: add data assertion generation and enhance Redis configuration commands ( #1331 )
...
* feat: add data assertion generation and enhance Redis configuration commands
- Updated Makefile to include new targets for generating data assertions and metrics documentation.
- Enhanced main.go in data-assert to support a new flag for Redis sentinel password.
- Added new test cases for Redis high availability setup, including master IP consistency checks and data assertions.
These changes improve the testing capabilities and configuration management for Redis deployments.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* debug
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* remove debug
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-04-29 17:13:48 +08:00
dependabot[bot]
f42a87760c
chore(deps): bump github.com/redis/go-redis/v9 from 9.7.0 to 9.7.3 in /tests/data-assert ( #1292 )
...
chore(deps): bump github.com/onsi/gomega from 1.36.2 to 1.36.3
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-29 12:20:42 +08:00
Shubham Gupta
2c2db51c48
fix: handle panic when retrieving StatefulSet in GetRedisNodesByRole ( #1330 )
...
* fix: handle panic when retrieving StatefulSet in GetRedisNodesByRole
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* feat: add integration tests target to Makefile
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2025-04-28 22:53:52 +08:00
dependabot[bot]
81ab3a2b8e
chore(deps): bump golang.org/x/net from 0.36.0 to 0.38.0 ( #1324 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.36.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.36.0...v0.38.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.38.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-28 16:38:00 +08:00
yangw
ee120db849
feat: enhance environment variable management ( #1315 )
...
* feat: enhance environment variable management and CI workflow
- Introduced internal package for managing environment variables related to operator configuration.
- Updated main.go to utilize the new internal package for retrieving max concurrent reconciles, watch namespaces, and feature gates.
- Enhanced CI workflow by setting environment variables for the Redis operator deployment.
- Added unit tests for the new environment variable functions to ensure correctness.
These changes improve the configurability and maintainability of the Redis operator.
Signed-off-by: yourname <youremail@example.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
* sleep
Signed-off-by: yangw <wuyangmuc@gmail.com>
* no parallel
Signed-off-by: yangw <wuyangmuc@gmail.com>
* debug
Signed-off-by: yangw <wuyangmuc@gmail.com>
* debug
Signed-off-by: yangw <wuyangmuc@gmail.com>
* debug
Signed-off-by: yangw <wuyangmuc@gmail.com>
* debug
Signed-off-by: yangw <wuyangmuc@gmail.com>
* debug
Signed-off-by: yangw <wuyangmuc@gmail.com>
* debug
Signed-off-by: yangw <wuyangmuc@gmail.com>
* debug
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* remove debug
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yourname <youremail@example.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-04-28 10:20:52 +08:00
Maxence Boutet
b39b901c1b
chore: define container port for http probes in operator chart ( #1326 )
...
* Define container port for http probes
Signed-off-by: Maxence Boutet <mboutet@drw.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: Maxence Boutet <mboutet@drw.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
2025-04-27 17:47:00 +08:00
Gary Burgmann
688e671128
docs: example for authenticated RedisSentinel ( #1319 )
...
* issues/1318 - example for authenticated RedisSentinel
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
2025-04-27 17:30:36 +08:00
yangw
716ad0fd59
chore: bump version to 0.20.1 ( #1329 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-04-27 16:40:57 +08:00
Mikolaj Pawlikowski
db08dcd32a
fix: move VCT logic before diff calculation for stateful set ( #1322 )
...
fixes #1321
Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
2025-04-18 11:29:59 +08:00
yangw
5ea1410f20
chore: update version to 0.20.0 and enhance CI workflow ( #1306 )
...
- Bumped operator version to 0.20.0 in Makefile and Chart.yaml.
- Simplified GitHub Actions workflow by renaming jobs and removing unnecessary comments.
- Added hostPort field to CRDs for Redis resources to support additional configuration.
- Deleted unused sidecar.go file to clean up the codebase.
These changes improve versioning clarity and streamline the CI/CD process.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-04-01 14:37:40 +08:00
yangw
45b33df580
feat: support redis configuration generation in init container ( #1303 )
...
- Added IMG argument to Dockerfile for dynamic image handling.
- Updated LDFLAGS in Dockerfile to set operator image during build.
- Modified Makefile to pass IMG as a build argument in Docker commands.
- Introduced internal package for operator image retrieval.
- Removed hardcoded operator image reference from const.go.
These changes improve the flexibility and maintainability of the operator image configuration.
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-03-31 21:27:51 +08:00
yangw
7ee2c0ed6c
feat: add feature gates for sentinel configuration generation in init container ( #1300 )
...
* feat: add feature gates for Redis configuration generation in init container
- Introduced a new feature gate to enable generating Redis configuration using an init container.
- Updated the main.go to parse feature gates from command-line flags.
- Enhanced statefulset definition to conditionally include init containers based on feature gate status.
- Added necessary volume and volume mount definitions for configuration management.
This change improves flexibility in Redis operator deployment configurations.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-03-31 12:53:45 +08:00
Mikolaj Pawlikowski
939339508a
fix: race condition resulting in permanently broken Redis cluster ( #1298 )
...
fix: refuse to set up replication with empty master pod IP
Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
2025-03-27 14:03:42 +08:00
Husni Alhamdani
2527568343
feat: guarantee to avoid bad master ip on Sentinel ( #1289 )
...
* feat: guarantee to avoid bad master ip on Sentinel
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: guarantee to avoid bad master ip on Sentinel
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: guarantee to avoid bad master ip on Sentinel
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: guarantee to avoid bad master ip on Sentinel
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: guarantee to avoid bad master ip on Sentinel
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* fix ut
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: yangw <yang.wu@daocloud.io>
Co-authored-by: yangw <wuyangmuc@gmail.com>
2025-03-26 18:18:13 +08:00
Leslie__Joe
0b6681563a
fix: svc finalizer removed. ( #1297 )
...
Signed-off-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
Co-authored-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
2025-03-26 11:37:09 +08:00
Andrea Dolfi
317fc37b05
feat: Add support for anti affinity configuration in helm charts ( #1296 )
...
* Add support for setting role-anti-affinity annotation + make issuer creation optional to use cert-amanger
Signed-off-by: Andrea Dolfi <andrea.dolfi.e@thalesdigital.io>
* Update Readme files.
Signed-off-by: Andrea Dolfi <andrea.dolfi.e@thalesdigital.io>
* Fix charts readme.
Signed-off-by: Andrea Dolfi <andrea.dolfi.e@thalesdigital.io>
---------
Signed-off-by: Andrea Dolfi <andrea.dolfi.e@thalesdigital.io>
Co-authored-by: Andrea Dolfi <andrea.dolfi.e@thalesdigital.io>
2025-03-25 16:27:50 +08:00
yangw
1e1006690a
feat: update Dockerfile and Makefile for unified operator binary ( #1294 )
...
* feat: update Dockerfile and Makefile for unified operator binary
- Removed the BUILD_TARGET argument from Dockerfile to simplify the build process.
- Updated Dockerfile to build a single binary named 'operator' instead of separate manager and agent binaries.
- Modified Makefile to remove references to BUILD_TARGET, streamlining Docker image build commands.
- Adjusted entry point in deployment YAML to use the new operator binary.
This change enhances the build process and aligns with the new command structure in the main.go file.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix e2e
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix version
Signed-off-by: yangw <wuyangmuc@gmail.com>
* change version
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
2025-03-24 10:15:01 +08:00
Husni Alhamdani
0977eca676
feat: add recreate-stateful-strategy, orphan, background, foreground(default) ( #1286 )
...
* feat: add recreate-stateful-strategy, orphan, background, foreground(default)
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: add recreate-stateful-strategy, orphan, background, foreground(default)
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* typo
Signed-off-by: yangw <wuyangmuc@gmail.com>
* common function
Signed-off-by: yangw <wuyangmuc@gmail.com>
* docs
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
2025-03-21 15:34:33 +08:00
dependabot[bot]
4af5f1d37f
chore(deps): bump github.com/redis/go-redis/v9 from 9.7.0 to 9.7.3 ( #1291 )
...
Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis ) from 9.7.0 to 9.7.3.
- [Release notes](https://github.com/redis/go-redis/releases )
- [Changelog](https://github.com/redis/go-redis/blob/master/CHANGELOG.md )
- [Commits](https://github.com/redis/go-redis/compare/v9.7.0...v9.7.3 )
---
updated-dependencies:
- dependency-name: github.com/redis/go-redis/v9
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-21 13:51:53 +08:00
Shubham Gupta
a5b61706b8
fix: update references from master to main in docs and workflow files ( #1288 )
...
* fix: update references from master to main in configuration and workflow files
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix: update Trivy action references from main to master in workflow file
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix: update Gosec action reference from main to master in CI workflow
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2025-03-19 16:02:09 +05:30
Shubham Gupta
317861bfae
Revert "chore(deps): bump sigs.k8s.io/controller-runtime from 0.17.2 to 0.20.3" ( #1287 )
...
Revert "chore(deps): bump sigs.k8s.io/controller-runtime from 0.17.2 to 0.20.…"
This reverts commit 6aa2b875c4
.
2025-03-19 11:09:13 +05:30
dependabot[bot]
6aa2b875c4
chore(deps): bump sigs.k8s.io/controller-runtime from 0.17.2 to 0.20.3 ( #1282 )
...
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime ) from 0.17.2 to 0.20.3.
- [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.17.2...v0.20.3 )
---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-19 10:43:59 +08:00
Shubham Gupta
0e9d19de6d
Revert "chore(deps): bump k8s.io/client-go from 0.29.3 to 0.32.3" ( #1285 )
...
Revert "chore(deps): bump k8s.io/client-go from 0.29.3 to 0.32.3 (#1284 )"
This reverts commit b95d0dcdbc
.
2025-03-18 18:21:48 +05:30
dependabot[bot]
b95d0dcdbc
chore(deps): bump k8s.io/client-go from 0.29.3 to 0.32.3 ( #1284 )
...
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go ) from 0.29.3 to 0.32.3.
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kubernetes/client-go/compare/v0.29.3...v0.32.3 )
---
updated-dependencies:
- dependency-name: k8s.io/client-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-18 18:19:04 +05:30
Abhishek Dubey
89bdbd5328
Create ROADMAP.md
2025-03-18 15:44:36 +05:30
yangw
9002a3070d
refactor: update Dockerfile and Makefile for agent support ( #1277 )
...
* refactor: update Dockerfile and Makefile for agent support
- Modified Dockerfile to support building both manager and agent binaries using a build argument.
- Updated Makefile to include targets for building, pushing, and loading agent Docker images.
- Removed the agent-specific Dockerfile as its functionality is now integrated into the main Dockerfile.
This change enhances the flexibility of the build process by allowing the selection of the build target.
Signed-off-by: yangw <wuyangmuc@gmail.com>
* keep target clean
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix syntax
Signed-off-by: yangw <wuyangmuc@gmail.com>
* Update Makefile
Co-authored-by: Shubham Gupta <69793468+shubham-cmyk@users.noreply.github.com>
---------
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: Shubham Gupta <69793468+shubham-cmyk@users.noreply.github.com>
2025-03-17 16:29:31 +05:30
dependabot[bot]
6e15c65ae2
chore(deps): bump golang.org/x/net from 0.33.0 to 0.36.0 ( #1276 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.33.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.36.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-13 10:29:26 +08:00
Husni Alhamdani
6963517436
feat: add redisreplication observability ( #1274 )
...
* feat(operator-observability): add redisreplication observability
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat(operator-observability): add redisreplication observability
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat(operator-observability): add redisreplication observability
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: add docs of operator metrics/observability
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: add docs of operator metrics/observability
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: add docs of operator metrics/observability
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: add docs of operator metrics/observability
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
---------
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2025-03-12 21:42:28 +05:30
Leslie__Joe
28179a44a9
feat: Fix PVC resizing issue and refactor PVC resizing logic ( #1268 )
...
* feat: Fix PVC resizing issue and refactor PVC resizing logic
- Fixed label error: updated PVC selection label from "redis" to "middleware".
- Corrected PVC expansion when node-conf persistence is enabled by avoiding hardcoded use of VolumeClaimTemplates[0].
- PVC resizing now filters out the "node-conf" template and targets the correct PVC for Redis RDB data.
- Enhanced error handling and added per-PVC update logging for better traceability.
Signed-off-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
* feat: Fix PVC resizing issue and refactor PVC resizing logic
- todo: Handle scale-out scenario
Signed-off-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
* add e2e test
Signed-off-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
* fix pvc storage in e2e test
Signed-off-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
* chore(utils): Update Makefile
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix intendation to tabs
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* feat: Add storage class for PVC resizing and update test steps
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* feat: Add YAML front matter to storage class configuration
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* Update pkg/k8sutils/pvc.go
* remove e2e test and fix comment.
Signed-off-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
---------
Signed-off-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
Co-authored-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: yangw <yang.wu@daocloud.io>
2025-03-12 15:16:19 +08:00
yangw
b68dd64e3e
Sentinel - announce-ip <hostname> when resolve & announce are set ( #1271 )
...
Relate to [95](https://github.com/OT-CONTAINER-KIT/redis/pull/95 ) in
image repository
2025-03-11 16:59:35 +08:00
Nicolas Girard
4b7ea5a350
Sentinel - announce-ip <hostname> when resolve & announce are set
...
Signed-off-by: Nicolas Girard <nicolas.girard@filigran.io>
2025-03-11 09:27:35 +01:00
Shubham Gupta
2aaae0b461
feat: Add docker-load target to Makefile for loading images into Docker ( #1270 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2025-03-11 10:24:46 +08:00
Shubham Gupta
b6a15018ba
chore(utils): Update Makefile ( #1269 )
...
* chore(utils): Update Makefile
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix intendation to tabs
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* feat: Update Docker build command to load image into local Docker daemon
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2025-03-10 02:05:21 +05:30
Shubham Gupta
0b4a975a2e
refactor(utils): Genralize MergeMap function to support any key-value types ( #1266 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2025-03-09 20:05:28 +05:30
Leslie__Joe
31dfe49806
feat: Add preStop failover hook for Redis Cluster( #1264 )
...
- Implemented `generatePreStopCommand` to add a `preStop` hook for Redis Cluster mode.
- Added `generateAuthAndTLSArgs` to construct authentication and TLS parameters.
- Developed `generateClusterPreStop` to execute controlled failover before pod termination.
- Ensured that only `cluster` mode applies the `preStop` logic to avoid unnecessary rolling updates.
- Added unit tests for `generateAuthAndTLSArgs` and `generatePreStopCommand` to validate their correctness.
Ref: #1262
Signed-off-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
Co-authored-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
2025-03-06 17:56:41 +08:00
Qadora
555e637dd3
feat: Added support for hostport to allow direct connection to the pod ( #1263 )
...
* Added support for hostPort and updated helmcharts
* removed changed from helm chart
* feat: Add hostPort support to Redis CRDs and update deepcopy methods
* feat: sentinel support hostname resolve and annonce (#1247 )
* feat: Sentinel - support hostname resolve and annonce master
Signed-off-by: Michael Kanchuker <michaelkanchuker@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: Michael Kanchuker <michaelkanchuker@gmail.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* Added support for hostPort and updated helmcharts
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* chore(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#1256 )
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* chore(deps): bump sigstore/cosign-installer from 3.7.0 to 3.8.1 (#1255 )
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer ) from 3.7.0 to 3.8.1.
- [Release notes](https://github.com/sigstore/cosign-installer/releases )
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.7.0...v3.8.1 )
---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: add redis agent with bootstrap configuration generation (#1254 )
* move main
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* feat: add redis agent with bootstrap configuration generation
- Introduced new agent package for Redis and Sentinel configuration management
- Added Cobra CLI support for agent bootstrap command
- Implemented configuration generation for Sentinel with environment-based customization
- Created Dockerfile for agent image
- Added utility functions for environment variable handling
- Prepared foundation for Redis and Sentinel configuration bootstrapping
Signed-off-by: Redis Operator Team
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Redis Operator Team
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: Implement comprehensive Redis configuration generation for agent bootstrap (#1260 )
* feat: Implement comprehensive Redis configuration generation for agent bootstrap
This commit adds a detailed implementation of Redis configuration generation with support for:
- Cluster and standalone modes
- TLS configuration
- ACL setup
- Persistence options
- Port and network configurations
- Dynamic IP and hostname resolution
- External configuration file inclusion
The implementation uses environment variables to customize Redis configuration dynamically and handles various deployment scenarios.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* removed changed from helm chart
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: Add hostPort support to Redis CRDs and update deepcopy methods
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: add dynamic Redis configuration support for Redis Cluster (#1241 )
* feat: add dynamic Redis configuration support for Redis Cluster
- Added `DynamicConfig` field to `RedisConfig` struct in common types
- Implemented `GetRedisDynamicConfig()` method in RedisCluster spec
- Created `SetRedisClusterDynamicConfig()` utility function to apply dynamic configuration
- Updated reconciliation process to set dynamic configuration when cluster is ready
- Added e2e test to verify dynamic configuration application
This feature allows users to dynamically configure Redis instances at runtime with top-level configuration parameters.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: configurable operator maxConcurrentReconciles (#1242 )
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
---------
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* ci: add GitHub workflow for automatic PR rebase (#1243 )
Add a GitHub Actions workflow to enable automatic rebasing of pull requests via comment commands `/rebase` and `/autosquash`
The workflow allows repository collaborators to trigger a rebase of a pull request by commenting `/rebase` or perform an autosquash rebase with `/autosquash`.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* Bump operator version
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* refactor: remove v1beta1 API version and migrate to v1beta2 (#1245 )
* refactor: remove v1beta1 API version and migrate to v1beta2
This commit removes the v1beta1 API version across the entire project, including:
- Deleting v1beta1 API type definitions
- Removing v1beta1 CRD configurations
- Updating example manifests to use v1beta2
- Cleaning up test suite configurations
- Updating documentation references
The migration focuses on consolidating the project to use only the v1beta2 API version, simplifying the codebase and reducing maintenance overhead.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: sentinel support hostname resolve and annonce (#1247 )
* feat: Sentinel - support hostname resolve and annonce master
Signed-off-by: Michael Kanchuker <michaelkanchuker@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: Michael Kanchuker <michaelkanchuker@gmail.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* Added support for hostPort and updated helmcharts
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* chore(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#1256 )
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* chore(deps): bump sigstore/cosign-installer from 3.7.0 to 3.8.1 (#1255 )
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer ) from 3.7.0 to 3.8.1.
- [Release notes](https://github.com/sigstore/cosign-installer/releases )
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.7.0...v3.8.1 )
---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: add redis agent with bootstrap configuration generation (#1254 )
* move main
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* feat: add redis agent with bootstrap configuration generation
- Introduced new agent package for Redis and Sentinel configuration management
- Added Cobra CLI support for agent bootstrap command
- Implemented configuration generation for Sentinel with environment-based customization
- Created Dockerfile for agent image
- Added utility functions for environment variable handling
- Prepared foundation for Redis and Sentinel configuration bootstrapping
Signed-off-by: Redis Operator Team
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Redis Operator Team
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: Implement comprehensive Redis configuration generation for agent bootstrap (#1260 )
* feat: Implement comprehensive Redis configuration generation for agent bootstrap
This commit adds a detailed implementation of Redis configuration generation with support for:
- Cluster and standalone modes
- TLS configuration
- ACL setup
- Persistence options
- Port and network configurations
- Dynamic IP and hostname resolution
- External configuration file inclusion
The implementation uses environment variables to customize Redis configuration dynamically and handles various deployment scenarios.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* removed changed from helm chart
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: Add hostPort support to Redis CRDs and update deepcopy methods
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* Added support for hostPort and updated helmcharts
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* removed changed from helm chart
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: Add hostPort support to Redis CRDs and update deepcopy methods
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* fix: replace hardcoded Redis port 6379 with configurable port from cr.Spec.Port (#1261 )
- Updated RedisClusterStatusHealth function to use cr.Spec.Port instead of hardcoded 6379 port.
Co-authored-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* test: enhance testing with data assertion scripts (#1209 )
* test: enhance Redis cluster testing with data assertion scripts
- Added new steps in the e2e test for Redis cluster to apply a data assertion tool, `data-assert`, for generating and validating data in the Redis cluster.
- Replaced the previous Redis GET/SET checks with a more comprehensive data generation and validation process using the `data-assert` tool.
- Introduced additional assertions to ensure data consistency after scaling operations.
This update improves the reliability of e2e tests by ensuring data integrity in Redis clusters.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* path
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* password
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* password
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* password
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* ha
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: add headless service configuration support (#1219 )
* feat: add headless service configuration support
- Introduced a new `Headless` service configuration in `ServiceConfig` struct
- Added method `GetHeadlessServiceAnnotations()` to retrieve headless service annotations
- Updated CRD bases to include headless service configuration
- Modified service creation logic in Redis cluster and standalone services to support headless service annotations
- Added e2e test cases for standalone Redis with headless service configuration
This enhancement provides more flexibility in configuring headless services for Redis deployments.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* fix: add missing topologySpreadConstraint on RedisCluster follower (#1218 )
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: update redis-operator cert manager configuration. (#1220 )
* fix: update redis-operator chart configuration and documentation.
- Removed Chart.lock file for cert-manager dependency
- Updated Chart.yaml to remove explicit cert-manager dependency
- Bumped chart version to 0.19.2
- Updated README.md to clarify cert-manager installation instructions
- Modified values.yaml to improve cert-manager and webhook configuration documentation
- Added configuration validation helper in _helpers.tpl
- Introduced NOTES.txt template for helm chart installation guidance
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* docs
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* chore: dockerfile command style consistency (#1222 )
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: update certificate serverName to support wildcard certs (#1221 )
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: add additional service configuration with optional enable flag (#1228 )
- Introduced `Additional` service configuration in `ServiceConfig` struct
- Added `Enabled` field to `Service` struct with default value of true
- Implemented `ShouldCreateAdditionalService()` method to control additional service creation
- Updated CRD bases to include additional service configuration
- Modified service creation logic in Redis cluster and standalone services to respect additional service configuration
- Added unit test for `ShouldCreateAdditionalService()` method
This enhancement provides more flexibility in configuring additional services for Redis deployments.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* chore(deps): bump helm/chart-releaser-action from 1.6.0 to 1.7.0 (#1230 )
Bumps [helm/chart-releaser-action](https://github.com/helm/chart-releaser-action ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/helm/chart-releaser-action/releases )
- [Commits](https://github.com/helm/chart-releaser-action/compare/v1.6.0...v1.7.0 )
---
updated-dependencies:
- dependency-name: helm/chart-releaser-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* chore(deps): bump helm/chart-testing-action from 2.6.0 to 2.7.0 (#1229 )
Bumps [helm/chart-testing-action](https://github.com/helm/chart-testing-action ) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/helm/chart-testing-action/releases )
- [Commits](https://github.com/helm/chart-testing-action/compare/v2.6.0...v2.7.0 )
---
updated-dependencies:
- dependency-name: helm/chart-testing-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* chore(deps): bump github.com/onsi/ginkgo/v2 from 2.22.1 to 2.22.2 (#1225 )
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from 2.22.1 to 2.22.2.
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.22.1...v2.22.2 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* fix: improve pod label patching with error handling and retry mechanism (#1231 )
fix: improve pod label patching with error handling and retry mechanism
- Added JSON pointer escaping for label keys
- Implemented retry mechanism for label patching
- Enhanced error handling and logging
- Added validation for empty labels
- Created utility function for JSON pointer escaping in util package
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: enhance Redis HA and node scheduling strategy (#1237 )
* feat: enhance Redis HA and node scheduling strategy
- Updated e2e test to simulate node shutdown instead of pod deletion
- Added pod anti-affinity configuration for Redis replication and sentinel nodes
- Removed unnecessary StatefulSet readiness check in Redis replication controller
- Improved node scheduling to distribute Redis pods across different worker nodes
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: add securityContext config in chart for redis-exporter (#1238 )
feat: add securityContext config for redis-exporter
Add ability to configure securityContext for redis-exporter in redis helm charts:
- redis
- redis-cluster
- redis-replication
- redis-sentinel
Supported in:
- v1beta1 & v1beta2: Redis, RedisCluster, RedisReplication Operator CRDs
- v1beta2 only: RedisSentinel Operator CRD
This aligns with existing redis operator CRD functionality.
Signed-off-by: Hexoplon <github@zackeus.no>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* fix: make recreate statefulset only trigger when value true (#1240 )
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: add dynamic Redis configuration support for Redis Cluster (#1241 )
* feat: add dynamic Redis configuration support for Redis Cluster
- Added `DynamicConfig` field to `RedisConfig` struct in common types
- Implemented `GetRedisDynamicConfig()` method in RedisCluster spec
- Created `SetRedisClusterDynamicConfig()` utility function to apply dynamic configuration
- Updated reconciliation process to set dynamic configuration when cluster is ready
- Added e2e test to verify dynamic configuration application
This feature allows users to dynamically configure Redis instances at runtime with top-level configuration parameters.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: configurable operator maxConcurrentReconciles (#1242 )
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
---------
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* ci: add GitHub workflow for automatic PR rebase (#1243 )
Add a GitHub Actions workflow to enable automatic rebasing of pull requests via comment commands `/rebase` and `/autosquash`
The workflow allows repository collaborators to trigger a rebase of a pull request by commenting `/rebase` or perform an autosquash rebase with `/autosquash`.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* Bump operator version
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* refactor: remove v1beta1 API version and migrate to v1beta2 (#1245 )
* refactor: remove v1beta1 API version and migrate to v1beta2
This commit removes the v1beta1 API version across the entire project, including:
- Deleting v1beta1 API type definitions
- Removing v1beta1 CRD configurations
- Updating example manifests to use v1beta2
- Cleaning up test suite configurations
- Updating documentation references
The migration focuses on consolidating the project to use only the v1beta2 API version, simplifying the codebase and reducing maintenance overhead.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: sentinel support hostname resolve and annonce (#1247 )
* feat: Sentinel - support hostname resolve and annonce master
Signed-off-by: Michael Kanchuker <michaelkanchuker@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: Michael Kanchuker <michaelkanchuker@gmail.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* Added support for hostPort and updated helmcharts
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* chore(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#1256 )
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* chore(deps): bump sigstore/cosign-installer from 3.7.0 to 3.8.1 (#1255 )
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer ) from 3.7.0 to 3.8.1.
- [Release notes](https://github.com/sigstore/cosign-installer/releases )
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.7.0...v3.8.1 )
---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: add redis agent with bootstrap configuration generation (#1254 )
* move main
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* feat: add redis agent with bootstrap configuration generation
- Introduced new agent package for Redis and Sentinel configuration management
- Added Cobra CLI support for agent bootstrap command
- Implemented configuration generation for Sentinel with environment-based customization
- Created Dockerfile for agent image
- Added utility functions for environment variable handling
- Prepared foundation for Redis and Sentinel configuration bootstrapping
Signed-off-by: Redis Operator Team
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Redis Operator Team
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: Implement comprehensive Redis configuration generation for agent bootstrap (#1260 )
* feat: Implement comprehensive Redis configuration generation for agent bootstrap
This commit adds a detailed implementation of Redis configuration generation with support for:
- Cluster and standalone modes
- TLS configuration
- ACL setup
- Persistence options
- Port and network configurations
- Dynamic IP and hostname resolution
- External configuration file inclusion
The implementation uses environment variables to customize Redis configuration dynamically and handles various deployment scenarios.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* removed changed from helm chart
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: Add hostPort support to Redis CRDs and update deepcopy methods
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* Added support for hostPort and updated helmcharts
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* chore(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#1256 )
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: add redis agent with bootstrap configuration generation (#1254 )
* move main
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* feat: add redis agent with bootstrap configuration generation
- Introduced new agent package for Redis and Sentinel configuration management
- Added Cobra CLI support for agent bootstrap command
- Implemented configuration generation for Sentinel with environment-based customization
- Created Dockerfile for agent image
- Added utility functions for environment variable handling
- Prepared foundation for Redis and Sentinel configuration bootstrapping
Signed-off-by: Redis Operator Team
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Redis Operator Team
* feat: Implement comprehensive Redis configuration generation for agent bootstrap (#1260 )
* feat: Implement comprehensive Redis configuration generation for agent bootstrap
This commit adds a detailed implementation of Redis configuration generation with support for:
- Cluster and standalone modes
- TLS configuration
- ACL setup
- Persistence options
- Port and network configurations
- Dynamic IP and hostname resolution
- External configuration file inclusion
The implementation uses environment variables to customize Redis configuration dynamically and handles various deployment scenarios.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* removed changed from helm chart
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* feat: Add hostPort support to Redis CRDs and update deepcopy methods
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
* fix: replace hardcoded Redis port 6379 with configurable port from cr.Spec.Port (#1261 )
- Updated RedisClusterStatusHealth function to use cr.Spec.Port instead of hardcoded 6379 port.
Co-authored-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
---------
Signed-off-by: Michael Kanchuker <michaelkanchuker@gmail.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Redis Operator Team
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
Signed-off-by: Hexoplon <github@zackeus.no>
Co-authored-by: Michael Kanchuker <michaelkanchuker@gmail.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yangw <yang.wu@daocloud.io>
Co-authored-by: Husni Alhamdani <dhanielluis@gmail.com>
Co-authored-by: Leslie__Joe <58540165+fengyinqiao@users.noreply.github.com>
Co-authored-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
Co-authored-by: Zackeus Bengtsson <32719220+Hexoplon@users.noreply.github.com>
2025-03-06 16:38:22 +08:00
Leslie__Joe
9d1b9783a9
fix: replace hardcoded Redis port 6379 with configurable port from cr.Spec.Port ( #1261 )
...
- Updated RedisClusterStatusHealth function to use cr.Spec.Port instead of hardcoded 6379 port.
Co-authored-by: fengyinqiao <fengyinqiao@shizhuang-inc.com>
2025-03-05 10:15:18 +08:00
yangw
8d16e69794
feat: Implement comprehensive Redis configuration generation for agent bootstrap ( #1260 )
...
* feat: Implement comprehensive Redis configuration generation for agent bootstrap
This commit adds a detailed implementation of Redis configuration generation with support for:
- Cluster and standalone modes
- TLS configuration
- ACL setup
- Persistence options
- Port and network configurations
- Dynamic IP and hostname resolution
- External configuration file inclusion
The implementation uses environment variables to customize Redis configuration dynamically and handles various deployment scenarios.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-03-04 18:11:39 +08:00
yangw
2677f0dfab
feat: add redis agent with bootstrap configuration generation ( #1254 )
...
* move main
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* feat: add redis agent with bootstrap configuration generation
- Introduced new agent package for Redis and Sentinel configuration management
- Added Cobra CLI support for agent bootstrap command
- Implemented configuration generation for Sentinel with environment-based customization
- Created Dockerfile for agent image
- Added utility functions for environment variable handling
- Prepared foundation for Redis and Sentinel configuration bootstrapping
Signed-off-by: Redis Operator Team
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Redis Operator Team
2025-03-04 16:57:15 +08:00
dependabot[bot]
c34d1eee14
chore(deps): bump sigstore/cosign-installer from 3.7.0 to 3.8.1 ( #1255 )
...
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer ) from 3.7.0 to 3.8.1.
- [Release notes](https://github.com/sigstore/cosign-installer/releases )
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.7.0...v3.8.1 )
---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-04 14:07:19 +08:00
dependabot[bot]
0ab5c601d6
chore(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 ( #1256 )
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-04 14:07:03 +08:00
Michael Kanchuker
aafc66367b
feat: sentinel support hostname resolve and annonce ( #1247 )
...
* feat: Sentinel - support hostname resolve and annonce master
Signed-off-by: Michael Kanchuker <michaelkanchuker@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
* fix
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: Michael Kanchuker <michaelkanchuker@gmail.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
Co-authored-by: yangw <wuyangmuc@gmail.com>
2025-02-28 11:40:14 +08:00
yangw
7c91822fb0
refactor: remove v1beta1 API version and migrate to v1beta2 ( #1245 )
...
* refactor: remove v1beta1 API version and migrate to v1beta2
This commit removes the v1beta1 API version across the entire project, including:
- Deleting v1beta1 API type definitions
- Removing v1beta1 CRD configurations
- Updating example manifests to use v1beta2
- Cleaning up test suite configurations
- Updating documentation references
The migration focuses on consolidating the project to use only the v1beta2 API version, simplifying the codebase and reducing maintenance overhead.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-02-20 10:41:54 +08:00
drivebyer
9acbd41d2d
Bump operator version
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-02-19 11:15:17 +08:00
yangw
84745ab315
ci: add GitHub workflow for automatic PR rebase ( #1243 )
...
Add a GitHub Actions workflow to enable automatic rebasing of pull requests via comment commands `/rebase` and `/autosquash`
The workflow allows repository collaborators to trigger a rebase of a pull request by commenting `/rebase` or perform an autosquash rebase with `/autosquash`.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-02-18 15:14:14 +08:00
Husni Alhamdani
6264dae409
feat: configurable operator maxConcurrentReconciles ( #1242 )
...
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: configurable operator maxConcurrentReconciles
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
---------
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2025-02-18 14:27:41 +08:00
yangw
230bb79ac7
feat: add dynamic Redis configuration support for Redis Cluster ( #1241 )
...
* feat: add dynamic Redis configuration support for Redis Cluster
- Added `DynamicConfig` field to `RedisConfig` struct in common types
- Implemented `GetRedisDynamicConfig()` method in RedisCluster spec
- Created `SetRedisClusterDynamicConfig()` utility function to apply dynamic configuration
- Updated reconciliation process to set dynamic configuration when cluster is ready
- Added e2e test to verify dynamic configuration application
This feature allows users to dynamically configure Redis instances at runtime with top-level configuration parameters.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-02-18 13:42:57 +08:00
Husni Alhamdani
4256fd3ae6
fix: make recreate statefulset only trigger when value true ( #1240 )
...
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2025-02-13 10:36:27 +08:00
Zackeus Bengtsson
9dbec5071f
feat: add securityContext config in chart for redis-exporter ( #1238 )
...
feat: add securityContext config for redis-exporter
Add ability to configure securityContext for redis-exporter in redis helm charts:
- redis
- redis-cluster
- redis-replication
- redis-sentinel
Supported in:
- v1beta1 & v1beta2: Redis, RedisCluster, RedisReplication Operator CRDs
- v1beta2 only: RedisSentinel Operator CRD
This aligns with existing redis operator CRD functionality.
Signed-off-by: Hexoplon <github@zackeus.no>
2025-02-11 16:32:33 +08:00
yangw
f7e9204b2c
feat: enhance Redis HA and node scheduling strategy ( #1237 )
...
* feat: enhance Redis HA and node scheduling strategy
- Updated e2e test to simulate node shutdown instead of pod deletion
- Added pod anti-affinity configuration for Redis replication and sentinel nodes
- Removed unnecessary StatefulSet readiness check in Redis replication controller
- Improved node scheduling to distribute Redis pods across different worker nodes
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-02-07 22:10:47 +08:00
yangw
209931627e
fix: improve pod label patching with error handling and retry mechanism ( #1231 )
...
fix: improve pod label patching with error handling and retry mechanism
- Added JSON pointer escaping for label keys
- Implemented retry mechanism for label patching
- Enhanced error handling and logging
- Added validation for empty labels
- Created utility function for JSON pointer escaping in util package
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-02-02 22:25:05 +08:00
dependabot[bot]
5690dc0f65
chore(deps): bump github.com/onsi/ginkgo/v2 from 2.22.1 to 2.22.2 ( #1225 )
...
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from 2.22.1 to 2.22.2.
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.22.1...v2.22.2 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-01 23:37:55 +08:00
dependabot[bot]
834cbc499c
chore(deps): bump helm/chart-testing-action from 2.6.0 to 2.7.0 ( #1229 )
...
Bumps [helm/chart-testing-action](https://github.com/helm/chart-testing-action ) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/helm/chart-testing-action/releases )
- [Commits](https://github.com/helm/chart-testing-action/compare/v2.6.0...v2.7.0 )
---
updated-dependencies:
- dependency-name: helm/chart-testing-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-01 23:37:37 +08:00
dependabot[bot]
b91f7f9406
chore(deps): bump helm/chart-releaser-action from 1.6.0 to 1.7.0 ( #1230 )
...
Bumps [helm/chart-releaser-action](https://github.com/helm/chart-releaser-action ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/helm/chart-releaser-action/releases )
- [Commits](https://github.com/helm/chart-releaser-action/compare/v1.6.0...v1.7.0 )
---
updated-dependencies:
- dependency-name: helm/chart-releaser-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-01 23:37:06 +08:00
yangw
111583b9c5
feat: add additional service configuration with optional enable flag ( #1228 )
...
- Introduced `Additional` service configuration in `ServiceConfig` struct
- Added `Enabled` field to `Service` struct with default value of true
- Implemented `ShouldCreateAdditionalService()` method to control additional service creation
- Updated CRD bases to include additional service configuration
- Modified service creation logic in Redis cluster and standalone services to respect additional service configuration
- Added unit test for `ShouldCreateAdditionalService()` method
This enhancement provides more flexibility in configuring additional services for Redis deployments.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-02-01 22:30:36 +08:00
Qadora
8fbb4f7b87
feat: update certificate serverName to support wildcard certs ( #1221 )
...
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
2025-02-01 11:14:50 +08:00
Husni Alhamdani
0ad77e25b9
chore: dockerfile command style consistency ( #1222 )
...
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2025-02-01 10:46:29 +08:00
yangw
546eaf28c4
feat: update redis-operator cert manager configuration. ( #1220 )
...
* fix: update redis-operator chart configuration and documentation.
- Removed Chart.lock file for cert-manager dependency
- Updated Chart.yaml to remove explicit cert-manager dependency
- Bumped chart version to 0.19.2
- Updated README.md to clarify cert-manager installation instructions
- Modified values.yaml to improve cert-manager and webhook configuration documentation
- Added configuration validation helper in _helpers.tpl
- Introduced NOTES.txt template for helm chart installation guidance
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* docs
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-01-26 15:45:38 +08:00
Husni Alhamdani
5f98c439e5
fix: add missing topologySpreadConstraint on RedisCluster follower ( #1218 )
...
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2025-01-26 13:39:37 +08:00
yangw
79ea018353
feat: add headless service configuration support ( #1219 )
...
* feat: add headless service configuration support
- Introduced a new `Headless` service configuration in `ServiceConfig` struct
- Added method `GetHeadlessServiceAnnotations()` to retrieve headless service annotations
- Updated CRD bases to include headless service configuration
- Modified service creation logic in Redis cluster and standalone services to support headless service annotations
- Added e2e test cases for standalone Redis with headless service configuration
This enhancement provides more flexibility in configuring headless services for Redis deployments.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-01-26 13:10:28 +08:00
yangw
2979e2122c
test: enhance testing with data assertion scripts ( #1209 )
...
* test: enhance Redis cluster testing with data assertion scripts
- Added new steps in the e2e test for Redis cluster to apply a data assertion tool, `data-assert`, for generating and validating data in the Redis cluster.
- Replaced the previous Redis GET/SET checks with a more comprehensive data generation and validation process using the `data-assert` tool.
- Introduced additional assertions to ensure data consistency after scaling operations.
This update improves the reliability of e2e tests by ensuring data integrity in Redis clusters.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* path
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* password
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* password
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* password
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* ha
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-01-16 21:24:39 +08:00
Allen Conlon
bb4ed617ae
chore: added actions to publish charts to github container registry ( #1201 )
...
Added actions to publish charts to github container registry
Signed-off-by: Allen Conlon <software@conlon.dev>
2025-01-15 20:47:27 +08:00
Husni Alhamdani
c32cd415a1
chore: move secret logging to v1 ( #1211 )
...
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2025-01-15 13:51:34 +08:00
drivebyer
fff5a89214
chore: bump redis-operator chart version to 0.19.1
...
Updated the version in Chart.yaml to reflect the new release of the redis-operator chart. This change ensures that users are aware of the latest updates and improvements in the chart.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-01-14 11:47:50 +08:00
Husni Alhamdani
850e121020
chore: update crds ( #1208 )
...
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2025-01-14 11:46:31 +08:00
yangw
5850e81c2c
feat: check data consistent by external tool. ( #1205 )
...
* feat: check data consistent by external tool
- Added a new command-line tool `data-assert` for managing Redis data, including commands to generate data, check data consistency, and create resource YAML files.
- Introduced `go.mod` and `go.sum` for dependency management, incorporating Redis and Cobra libraries.
- Created a template for generating Kubernetes resources, including a ConfigMap and Pod specifications.
- Updated e2e tests to utilize the new data-assert functionality for data generation and validation.
This enhancement improves the management and verification of data in Redis clusters.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* generate
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* ignore
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-01-13 21:02:27 +08:00
Husni Alhamdani
b00f1df050
fix: skip-reconcile annotation still skipping reconcile even the value is false ( #1202 )
...
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2025-01-13 10:38:13 +08:00
yangw
e7e6688b3a
feat: add data-assert tool for Redis data management. ( #1204 )
...
* docs
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* feat: add data-assert tool for Redis data management
- Introduced a new command-line tool `data-assert` to manage data in Redis.
- Implemented commands to generate data, check data consistency, and generate resource YAML files.
- Added `go.mod` and `go.sum` for dependency management, including Redis and Cobra libraries.
- Created a template for generating Kubernetes resources, including a ConfigMap and Pod specifications.
- Updated documentation to include information about the new data-assert functionality.
This addition enhances the ability to manage and verify data in Redis clusters effectively.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-01-12 18:01:29 +08:00
drivebyer
1a5a97f9e6
Update version
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-01-12 14:01:54 +08:00
yangw
79d016e81d
feat: add serviceMonitor.extraLabels support ( #1200 )
...
- Updated version and appVersion for redis, redis-cluster, redis-replication, and redis-sentinel charts to 0.16.5, 0.16.7, and 0.16.9 respectively.
- Introduced `serviceMonitor.extraLabels` in values.yaml and README.md for all Redis charts, allowing users to add custom labels to the ServiceMonitor when enabled.
- Updated templates to utilize the new `extraLabels` configuration for ServiceMonitor.
This change enhances the flexibility of monitoring configurations for Redis deployments.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-01-05 20:50:55 +08:00
yangw
0d4ce9c5c9
feat(cluster): enhance resource management by adding separate resource handling for leader and follower ( #1199 ).
...
* feat: enhance RedisCluster resource management by introducing separate resource handling for leader and follower
- Added methods to retrieve resources for Redis leader and follower, allowing for more granular resource management.
- Updated RedisClusterSpec to deprecate the unified resources field in favor of individual configurations for leader and follower.
- Adjusted related tests and YAML configurations to reflect these changes, ensuring consistency and correctness in resource allocation.
This update improves the flexibility and efficiency of resource management in RedisCluster deployments.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix verify-codegen
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix codegen
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2025-01-05 19:10:06 +08:00
Husni Alhamdani
888e0edf06
feat: separate resources section for leader and follower ( #1188 )
...
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2025-01-05 17:38:53 +08:00
dependabot[bot]
974a10844b
chore(deps): bump helm/kind-action from 1.5.0 to 1.12.0 ( #1197 )
...
Bumps [helm/kind-action](https://github.com/helm/kind-action ) from 1.5.0 to 1.12.0.
- [Release notes](https://github.com/helm/kind-action/releases )
- [Commits](https://github.com/helm/kind-action/compare/v1.5.0...v1.12.0 )
---
updated-dependencies:
- dependency-name: helm/kind-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-02 10:28:11 +08:00
dependabot[bot]
f061869a58
chore(deps): bump github.com/onsi/gomega from 1.35.1 to 1.36.2 ( #1194 )
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.35.1 to 1.36.2.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.35.1...v1.36.2 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-02 10:27:50 +08:00
drivebyer
7a55f6d50e
Fix yaml lint
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-27 14:59:01 +08:00
Husni Alhamdani
5ccd226116
fix: label selector mapping on redisreplication pdb ( #1191 )
...
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2024-12-27 14:48:06 +08:00
xiaozhuang
bf1c79f722
feat: redis-cluster add podAntiAffinity( #1174 ) ( #1180 )
...
* feat: redis-cluster add podAntiAffinity
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: lint
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: webhook add annotation
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: lint
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: lint
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: redis-operator chart add MutatingWebhookConfiguration
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: revert kustomization for webhook
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: podAntiAffinity control by annotation
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: webhook add testing
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: lint
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: lint
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: MutatingWebhookConfiguration remove namespace filter
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* change key
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* add example
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Co-authored-by: xiaozhuang <xiaozhuang@minimaxi.com>
Co-authored-by: drivebyer <wuyangmuc@gmail.com>
2024-12-27 14:44:16 +08:00
Husni Alhamdani
c02c7c9f7f
feat: support topologySpreadConstraints in replication & sentinel ( #1184 )
...
* feat: support topologySpreadConstraints in replication & sentinel
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: support topologySpreadConstraints in replication & sentinel
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: support topologySpreadConstraints in replication & sentinel
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: support topologySpreadConstraints in replication & sentinel
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
* feat: support topologySpreadConstraints in replication & sentinel
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
---------
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2024-12-24 17:09:55 +08:00
yangw
81296c7a50
feat: use client.Client instead of K8sClient in finalizer. ( #1183 )
...
* feat: use client.Client instead of K8sClient in finalizer
- Eliminated the K8sClient field from the Reconciler struct in Redis-related controller files, including redis_controller.go, redis_controller_suite_test.go, and redisreplication_controller.go, as it was not utilized.
- Updated finalizer handling functions to remove K8sClient parameters, simplifying the function signatures and improving code clarity.
- Adjusted related test cases to reflect these changes, ensuring consistency across the codebase.
This refactor enhances maintainability by streamlining the code and removing unnecessary dependencies.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* remove which can ensure by chainsaw test `setup`
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-22 17:39:01 +08:00
yangw
6ee6417b3b
feat(cluster): add event recording functionality for RedisCluster controller. ( #1182 )
...
* refactor: remove unused Scheme references in Redis controller files
- Removed the Scheme field from the Reconciler struct in rediscluster_controller.go, main.go, and rediscluster_controller_suite_test.go as it was not being utilized.
- This cleanup enhances code clarity and maintainability by eliminating unnecessary components.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* feat(cluster): add event recording functionality for RedisCluster controller
- Introduced a new events package to manage event recording, including a Recorder struct and methods for adding and retrieving events.
- Updated the RedisCluster controller to utilize the event recorder, allowing it to log downscale events.
- Enhanced the main function to initialize the event recorder for the RedisCluster controller.
This update improves observability capabilities for RedisCluster operations.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-22 14:22:09 +08:00
yangw
c6df0b38c0
test: enhance Redis controllers' test cases with testdata and validation checks ( #1181 )
...
* test: enhance Redis controllers' test cases with testdata and validation checks
- Updated Redis, RedisCluster, RedisReplication, and RedisSentinel controller tests to utilize YAML testdata files for improved clarity and maintainability.
- Added validation checks for resource creation, owner references, and specifications in the respective test cases.
- Introduced new testdata files for Redis and RedisCluster to streamline test setup and ensure consistent testing across different configurations.
- Enhanced error handling and logging for better debugging during test execution.
This update improves the robustness and reliability of the Redis operator's testing framework.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: yangw <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: yangw <wuyangmuc@gmail.com>
2024-12-21 23:40:52 +08:00
xiaozhuang
1db22aee59
fix(cluster): reduce the impact of Redis cluster intermediate states ( #1178 )
...
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
Co-authored-by: xiaozhuang <xiaozhuang@minimaxi.com>
2024-12-21 13:55:21 +08:00
xiaozhuang
ea98aa7a93
feat(cluster): support redis-cluster topologySpreadConstraints(# 868) ( #1177 )
...
* feat: v1beta2 redis-cluster support TopologySpreadConstraints
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: topologySpreadConstraints example
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: lint
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
* chore: lint
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
---------
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
Co-authored-by: xiaozhuang <xiaozhuang@minimaxi.com>
2024-12-21 13:31:22 +08:00
yangw
2c7022a578
feat(sentinel): enhance RedisSentinel reconciliation logic and update workflow. ( #1176 )
...
feat: enhance RedisSentinel reconciliation logic and update workflow.
- Added new reconciler functions for handling finalizers, annotations, replication, and sentinel management in the RedisSentinel controller.
- Improved error handling and logging for better debugging during reconciliation.
- Updated GitHub Actions workflow to include new job types: standalone, replication, sentinel, and cluster.
This update enhances the functionality and maintainability of the RedisSentinel operator.
Signed-off-by: yangw <wuyangmuc@gmail.com>
2024-12-19 23:23:59 +08:00
xiaozhuang
d28caf1422
fix: redis-cluster unexpected downscaling ( #1167 ) ( #1173 )
...
Signed-off-by: xiaozhuang <xiaozhuang@minimaxi.com>
Co-authored-by: xiaozhuang <xiaozhuang@minimaxi.com>
2024-12-16 21:29:16 +08:00
Husni Alhamdani
cda99a4c01
feat: support PDB in redisreplication ( #1166 )
...
<!--
Please read
https://github.com/OT-CONTAINER-KIT/redis-operator/blob/master/CONTRIBUTING.md
before submitting
your pull request. Please fill in each section below to help us better
prioritize your pull request. Thanks!
-->
**Description**
<!-- Please provide a summary of the change here. -->
Support PDB in redisreplication
**Type of change**
<!-- Please delete options that are not relevant. -->
* Bug fix (non-breaking change which fixes an issue)
* New feature (non-breaking change which adds functionality)
* Breaking change (fix or feature that would cause existing
functionality to not work as expected)
**Checklist**
- [ ] Tests have been added/modified and all tests pass.
- [ ] Functionality/bugs have been confirmed to be unchanged or fixed.
- [x] I have performed a self-review of my own code.
- [ ] Documentation has been updated or added where necessary.
**Additional Context**
<!--
Is there anything else you'd like reviewers to know?
For example, any other related issues or testing carried out.
-->
2024-12-16 14:09:31 +08:00
yangw
b726082c10
chore(deps): bump github.com/onsi/ginkgo/v2 from 2.20.1 to 2.22.0 ( #1140 )
...
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from
2.20.1 to 2.22.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/onsi/ginkgo/releases ">github.com/onsi/ginkgo/v2's
releases</a>.</em></p>
<blockquote>
<h2>v2.22.0</h2>
<h2>2.22.0</h2>
<h3>Features</h3>
<ul>
<li>Add label to serial nodes [0fcaa08]</li>
</ul>
<p>This allows serial tests to be filtered using the
<code>label-filter</code></p>
<h3>Maintenance</h3>
<p>Various doc fixes</p>
<h2>v2.21.0</h2>
<h2>2.21.0</h2>
<h3>Features</h3>
<ul>
<li>add support for GINKGO_TIME_FORMAT [a69eb39]</li>
<li>add GINKGO_NO_COLOR to disable colors via environment variables
[bcab9c8]</li>
</ul>
<h3>Fixes</h3>
<ul>
<li>increase threshold in timeline matcher [e548367]</li>
<li>Fix the document by replacing <code>SpecsThatWillBeRun</code> with
<code>SpecsThatWillRun</code>
[c2c4d3c]</li>
</ul>
<h3>Maintenance</h3>
<ul>
<li>bump various dependencies [7e65a00]</li>
</ul>
<h2>v2.20.2</h2>
<h2>2.20.2</h2>
<p>Require Go 1.22+</p>
<h3>Maintenance</h3>
<ul>
<li>bump go to v1.22 [a671816]</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md ">github.com/onsi/ginkgo/v2's
changelog</a>.</em></p>
<blockquote>
<h2>2.22.0</h2>
<h3>Features</h3>
<ul>
<li>Add label to serial nodes [0fcaa08]</li>
</ul>
<p>This allows serial tests to be filtered using the
<code>label-filter</code></p>
<h3>Maintenance</h3>
<p>Various doc fixes</p>
<h2>2.21.0</h2>
<h3>Features</h3>
<ul>
<li>add support for GINKGO_TIME_FORMAT [a69eb39]</li>
<li>add GINKGO_NO_COLOR to disable colors via environment variables
[bcab9c8]</li>
</ul>
<h3>Fixes</h3>
<ul>
<li>increase threshold in timeline matcher [e548367]</li>
<li>Fix the document by replacing <code>SpecsThatWillBeRun</code> with
<code>SpecsThatWillRun</code>
[c2c4d3c]</li>
</ul>
<h3>Maintenance</h3>
<ul>
<li>bump various dependencies [7e65a00]</li>
</ul>
<h2>2.20.2</h2>
<p>Require Go 1.22+</p>
<h3>Maintenance</h3>
<ul>
<li>bump go to v1.22 [a671816]</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="9e2f337b10
"><code>9e2f337</code></a>
v2.22.0</li>
<li><a
href="0fcaa0841d
"><code>0fcaa08</code></a>
Add label to serial nodes</li>
<li><a
href="38febf2d66
"><code>38febf2</code></a>
docs: remove extra erroneous backtick</li>
<li><a
href="7e753c4a3c
"><code>7e753c4</code></a>
fix: minor doc fixes</li>
<li><a
href="21765a2752
"><code>21765a2</code></a>
fix: missing commas</li>
<li><a
href="b101e0c573
"><code>b101e0c</code></a>
Fix some typos in docs</li>
<li><a
href="75120215ca
"><code>7512021</code></a>
fix: remove trailing comma</li>
<li><a
href="9d33507ba0
"><code>9d33507</code></a>
fix: grammar</li>
<li><a
href="55f3de13e5
"><code>55f3de1</code></a>
fix: typos</li>
<li><a
href="3d6e16d18f
"><code>3d6e16d</code></a>
fix: missing comma</li>
<li>Additional commits viewable in <a
href="https://github.com/onsi/ginkgo/compare/v2.20.1...v2.22.0 ">compare
view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
</details>
2024-12-11 13:46:00 +08:00
yangw
683258976e
chore: update dependabot configuration to change update schedule from daily to monthly for gomod and github-actions
...
Signed-off-by: yangw <wuyangmuc@gmail.com>
2024-12-11 09:59:44 +08:00
dependabot[bot]
b0fe42cc53
chore(deps): bump github.com/onsi/ginkgo/v2 from 2.20.1 to 2.22.0
...
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from 2.20.1 to 2.22.0.
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.20.1...v2.22.0 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-12-11 01:43:09 +00:00
yangw
7a037e398e
feat: enhance RedisReplication controller and CRD with additional status ( #1154 )
...
* feat: enhance RedisReplication controller and CRD with additional status columns and refactor reconciliation logic
- Added new printer columns "Master" and "Age" to the RedisReplication CRD for better visibility of the master node and resource age.
- Refactored the reconciliation logic in the RedisReplication controller to improve clarity and maintainability by introducing a reconciler struct for handling different reconciliation tasks.
- Updated the e2e tests to validate the HA setup of Redis Replication and Sentinel, ensuring consistency in master IP across different sources.
- Removed obsolete test files and replaced them with a new HA setup configuration.
This update improves the usability and reliability of the Redis replication feature.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* lint
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* upgrade go
* add
* disable
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* disable
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-11 09:41:46 +08:00
drivebyer
60ef5a2241
update
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-10 23:22:03 +08:00
drivebyer
a6454ab011
update
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-10 23:21:43 +08:00
drivebyer
371f057cd1
disable
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-10 22:38:41 +08:00
drivebyer
0a920ea407
update
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-10 22:31:27 +08:00
drivebyer
72d0e991c2
disable
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-10 22:25:42 +08:00
drivebyer
f59817cb38
add
2024-12-10 21:58:57 +08:00
drivebyer
2d5e45c958
upgrade go
2024-12-10 21:54:15 +08:00
Abhishek Dubey
62995c50bc
Updated LICENSE today
2024-12-10 18:55:01 +05:30
drivebyer
79febd30d6
lint
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-10 17:45:04 +08:00
drivebyer
a8092ef6fe
fix lint
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-10 17:32:35 +08:00
drivebyer
25aab8a8b9
feat: enhance RedisReplication controller and CRD with additional status columns and refactor reconciliation logic
...
- Added new printer columns "Master" and "Age" to the RedisReplication CRD for better visibility of the master node and resource age.
- Refactored the reconciliation logic in the RedisReplication controller to improve clarity and maintainability by introducing a reconciler struct for handling different reconciliation tasks.
- Updated the e2e tests to validate the HA setup of Redis Replication and Sentinel, ensuring consistency in master IP across different sources.
- Removed obsolete test files and replaced them with a new HA setup configuration.
This update improves the usability and reliability of the Redis replication feature.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-10 17:05:16 +08:00
dependabot[bot]
e9ec33f735
chore(deps): bump kyverno/action-install-chainsaw from 0.2.11 to 0.2.12 ( #1151 )
...
Bumps [kyverno/action-install-chainsaw](https://github.com/kyverno/action-install-chainsaw ) from 0.2.11 to 0.2.12.
- [Release notes](https://github.com/kyverno/action-install-chainsaw/releases )
- [Commits](https://github.com/kyverno/action-install-chainsaw/compare/v0.2.11...v0.2.12 )
---
updated-dependencies:
- dependency-name: kyverno/action-install-chainsaw
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-05 16:32:53 +08:00
yangw
a5dd80ee4a
fix: initContainer enabled properties not define in template ( #1152 )
...
- Bumped version and appVersion for redis, redis-cluster, redis-replication, and redis-sentinel charts to 0.16.4, 0.16.4, 0.16.6, and 0.16.8 respectively.
- Enhanced initContainer properties in templates to include the 'enabled' field for better configuration management.
This update ensures consistency across the Redis charts and improves template rendering.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-05 16:19:50 +08:00
yangw
b9034e8674
fix: chart render error when enable initcontainer ( #1146 )
...
fix: update initContainer and sidecar property references
- Updated version and appVersion for redis, redis-cluster, redis-replication, and redis-sentinel charts.
- Modified initContainer and sidecar property references in templates to include the current context.
This update ensures consistency across the Redis charts and improves template rendering.
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-12-02 17:36:01 +08:00
Dariusch Ochlast
53b95a0a20
fix: pdb value mapping in redis-sentinel ( #1136 )
...
Signed-off-by: Dariusch Ochlast <dariusch.ochlast@gmail.com>
2024-11-18 17:48:38 +08:00
dependabot[bot]
7953e5320e
chore(deps): bump github.com/redis/go-redis/v9 from 9.5.1 to 9.7.0 ( #1131 )
...
Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis ) from 9.5.1 to 9.7.0.
- [Release notes](https://github.com/redis/go-redis/releases )
- [Changelog](https://github.com/redis/go-redis/blob/master/CHANGELOG.md )
- [Commits](https://github.com/redis/go-redis/compare/v9.5.1...v9.7.0 )
---
updated-dependencies:
- dependency-name: github.com/redis/go-redis/v9
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-17 13:41:58 +08:00
dependabot[bot]
aa2e89567d
chore(deps): bump codecov/codecov-action from 4 to 5 ( #1130 )
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-17 13:41:41 +08:00
yangw
3135e0f4eb
feat: add context param and get logger from it ( #1132 )
...
* rename
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* add context param
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* remove logger
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* remove logger
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* remove logger
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* lint
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* update
* update
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-11-15 17:45:01 +08:00
dependabot[bot]
f72628d89a
chore(deps): bump github.com/onsi/gomega from 1.33.1 to 1.35.1 ( #1119 )
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.33.1 to 1.35.1.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.33.1...v1.35.1 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-15 11:13:57 +08:00
Taisuke Okamoto
38bc027757
doc: fix "Image Compatibility" ( #1128 )
...
Signed-off-by: b1gb4by <34154552+b1gb4by@users.noreply.github.com>
2024-11-14 16:17:09 +08:00
Shubham Gupta
c6fcdb7f27
refactor(deps): bump go from 1.21 to 1.22 ( #853 )
...
* refactor(deps): bump go from 1.21 to 1.22
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: bump go version
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* update
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: drivebyer <wuyangmuc@gmail.com>
2024-11-14 15:25:57 +08:00
Nash Luffman
0eac383fe2
test: remove unnecessary waits from e2e tests ( #1106 )
...
* remove unnecessary waits from e2e tests
Signed-off-by: mluffman <mluffman@thoughtmachine.net>
* small refactor of platforms in Makefile
Signed-off-by: mluffman <mluffman@thoughtmachine.net>
* fix
* update
* fix
---------
Signed-off-by: mluffman <mluffman@thoughtmachine.net>
Co-authored-by: mluffman <mluffman@thoughtmachine.net>
Co-authored-by: drivebyer <wuyangmuc@gmail.com>
2024-11-13 17:19:16 +08:00
yangw
5a8a3452d7
feat: add recreateStatefulSetOnUpdateInvalid helm chart value ( #1127 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-11-13 15:55:06 +08:00
yangw
147d7069f1
feat: add master/replica service to redis replication ( #1124 )
...
* refactor
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* feat: add master/replica service to redis replication
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix docs
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix docs
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-11-11 15:06:00 +08:00
Dariusch Ochlast
efb96249a7
feat: add PDB and probes, drop unspecified acl in sentinel helm ( #1123 )
...
Signed-off-by: Dariusch Ochlast <dariusch.ochlast@gmail.com>
2024-11-08 10:46:25 +08:00
drivebyer
d04332679c
Update redis operator version
2024-11-07 21:34:56 +08:00
yangw
c48c9c5b0d
feat: reconcile redis sentinel only on master changed ( #1122 )
...
* feat: redissentinel reconcile only on master changed
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix Lint
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* e2e cleanup
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-11-06 21:52:56 +08:00
yangw
e6f354fe4a
fix: set controller probe endpoint handler ( #1121 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-11-06 13:30:33 +08:00
yangw
9d37c6e4c7
test: remove some duplicated e2e case ( #1114 )
...
* cleanup: remove some duplicated e2e case
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* cleanup: remove some duplicated e2e case
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* cleanup: remove some duplicated e2e case
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* move
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* avoid context deadline exceeded
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* remove useless
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* remove useless
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* remove useless
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* rename
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* add parallel
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix gsed
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* remove
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* remove
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* remove
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-11-05 12:46:59 +08:00
yangw
89b18fe96e
Update CODEOWNERS
2024-10-29 11:04:59 +08:00
dependabot[bot]
a4658eda86
chore(deps): bump helm/chart-releaser-action from 1.5.0 to 1.6.0 ( #1009 )
...
Bumps [helm/chart-releaser-action](https://github.com/helm/chart-releaser-action ) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/helm/chart-releaser-action/releases )
- [Commits](https://github.com/helm/chart-releaser-action/compare/v1.5.0...v1.6.0 )
---
updated-dependencies:
- dependency-name: helm/chart-releaser-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-22 13:52:07 +08:00
dependabot[bot]
791c1d94fc
chore(deps): bump sigstore/cosign-installer from 3.6.0 to 3.7.0 ( #1096 )
...
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer ) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases )
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.6.0...v3.7.0 )
---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-22 13:51:42 +08:00
dependabot[bot]
934896b777
chore(deps): bump kyverno/action-install-chainsaw from 0.2.9 to 0.2.11 ( #1095 )
...
Bumps [kyverno/action-install-chainsaw](https://github.com/kyverno/action-install-chainsaw ) from 0.2.9 to 0.2.11.
- [Release notes](https://github.com/kyverno/action-install-chainsaw/releases )
- [Commits](https://github.com/kyverno/action-install-chainsaw/compare/v0.2.9...v0.2.11 )
---
updated-dependencies:
- dependency-name: kyverno/action-install-chainsaw
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-22 13:51:14 +08:00
Nash Luffman
de6b0661d3
fix: Attempt to repair disconnected/failed master nodes before failing over ( #1105 )
...
* add support for repairing leaders
Signed-off-by: mluffman <mluffman@thoughtmachine.net>
* add make lint directive
Signed-off-by: mluffman <mluffman@thoughtmachine.net>
* add test
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix lint
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* chainsaw
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* no parallel
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: mluffman <mluffman@thoughtmachine.net>
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Co-authored-by: mluffman <mluffman@thoughtmachine.net>
Co-authored-by: drivebyer <wuyangmuc@gmail.com>
2024-10-18 15:50:33 +08:00
Nash Luffman
bee2bf738e
chore: update makefile and various tooling dependencies ( #1102 )
...
* update controller-gen to fix make manifests, update Makefile
Signed-off-by: Nash Luffman <nashluffman@gmail.com>
* update envtest version
Signed-off-by: Nash Luffman <nashluffman@gmail.com>
* fix path
Signed-off-by: Nash Luffman <nashluffman@gmail.com>
* add kind as dependency
Signed-off-by: Nash Luffman <nashluffman@gmail.com>
---------
Signed-off-by: Nash Luffman <nashluffman@gmail.com>
2024-10-14 22:08:26 +08:00
yangw
94e24377fb
feat: upgrade redis/sentinel image to 7.0.15 ( #1099 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-10-12 17:11:08 +08:00
dependabot[bot]
10ba30ab1d
chore(deps): bump actions/checkout from 3 to 4 ( #1085 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [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/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-05 20:37:24 +08:00
dependabot[bot]
9284b8fa95
chore(deps): bump azure/setup-helm from 3 to 4 ( #1087 )
...
Bumps [azure/setup-helm](https://github.com/azure/setup-helm ) from 3 to 4.
- [Release notes](https://github.com/azure/setup-helm/releases )
- [Changelog](https://github.com/Azure/setup-helm/blob/main/CHANGELOG.md )
- [Commits](https://github.com/azure/setup-helm/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: azure/setup-helm
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-25 17:25:33 +05:30
dependabot[bot]
324a09ad0f
chore(deps): bump actions/setup-python from 4 to 5 ( #1086 )
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-25 17:22:56 +05:30
Shubham Gupta
344b3d0362
Revert "chore(deps): bump helm/kind-action from 1.5.0 to 1.10.0" ( #1082 )
...
Revert "chore(deps): bump helm/kind-action from 1.5.0 to 1.10.0 (#1070 )"
This reverts commit 36e2666610
.
2024-09-23 19:50:53 +05:30
dependabot[bot]
753798e390
chore(deps): bump github.com/go-logr/logr from 1.4.1 to 1.4.2 ( #942 )
...
---
updated-dependencies:
- dependency-name: github.com/go-logr/logr
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 19:13:41 +05:30
dependabot[bot]
1ba262abb8
chore(deps): bump actions/checkout from 2 to 4 ( #944 )
...
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 19:12:21 +05:30
dependabot[bot]
69970d4703
chore(deps): bump docker/login-action from 1 to 3 ( #946 )
...
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 19:11:13 +05:30
dependabot[bot]
0a48634fb1
chore(deps): bump amannn/action-semantic-pull-request from 5.4.0 to 5.5.3 ( #1013 )
...
chore(deps): bump amannn/action-semantic-pull-request
Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request ) from 5.4.0 to 5.5.3.
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases )
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/main/CHANGELOG.md )
- [Commits](e9fabac35e...0723387faa
)
---
updated-dependencies:
- dependency-name: amannn/action-semantic-pull-request
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 19:09:41 +05:30
dependabot[bot]
36e2666610
chore(deps): bump helm/kind-action from 1.5.0 to 1.10.0 ( #1070 )
...
Bumps [helm/kind-action](https://github.com/helm/kind-action ) from 1.5.0 to 1.10.0.
- [Release notes](https://github.com/helm/kind-action/releases )
- [Commits](https://github.com/helm/kind-action/compare/v1.5.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: helm/kind-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 19:07:50 +05:30
Shubham Gupta
1dcc0c939b
ci: Revert GitHub Actions workflow for publishing charts ( #1076 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-09-19 18:06:52 +05:30
Shubham Gupta
0c036f0a3d
ci: Fix Ci for the helm chart release ( #1075 )
...
* chore: update redis-operator chart version to 0.18.3
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: update publish-charts.yaml workflow
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-09-19 17:47:05 +05:30
Shubham Gupta
c44d80b5a2
chore: update redis-operator chart version to 0.18.3 ( #1074 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-09-19 17:41:52 +05:30
yangw
debcfd34c5
docs: fix image src path ( #1073 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-09-18 14:11:43 +08:00
yangw
e73a1d4765
feat: add readiness/liveness probe to redis operator chart ( #1072 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-09-17 16:54:22 +08:00
yangw
dd94689aba
feat: add service monitor to redis sentinel chart ( #1071 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-09-17 15:53:38 +08:00
drivebyer
3d31886fdb
ci: add stale pr/issue workflow
2024-09-17 13:15:48 +08:00
yangw
72ce071038
test: add test strategy version 6.2.14 ( #1068 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-09-17 11:42:36 +08:00
yangw
f48930c523
test: add test strategy for redis version ( #1067 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-09-16 23:27:30 +08:00
yangw
64d720485b
test: remove chainsaw test strategy ( #1066 )
...
* test: remove chainsaw test strategy
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* test: remove chainsaw test strategy
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* test: remove chainsaw test strategy
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-09-16 20:47:56 +08:00
dependabot[bot]
c0dc6369bb
chore(deps): bump kyverno/chainsaw from 0.0.9 to 0.2.9 ( #1057 )
...
* chore(deps): bump kyverno/chainsaw from 0.0.9 to 0.2.9
Bumps [kyverno/chainsaw](https://github.com/kyverno/chainsaw ) from 0.0.9 to 0.2.9.
- [Release notes](https://github.com/kyverno/chainsaw/releases )
- [Changelog](https://github.com/kyverno/chainsaw/blob/main/.goreleaser.yaml )
- [Commits](https://github.com/kyverno/chainsaw/compare/v0.0.9...v0.2.9 )
---
updated-dependencies:
- dependency-name: kyverno/chainsaw
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update ci.yaml
* update
* update
* update
* update
* update
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yangw <yang.wu@daocloud.io>
Co-authored-by: drivebyer <wuyangmuc@gmail.com>
2024-09-16 17:16:23 +08:00
yangw
2b70f53c5c
test: cleanup some e2e test move to envtest ( #1065 )
...
* test: cleanup some e2e test, move to envtest
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-09-15 23:34:12 +08:00
yangw
70bee6f2d3
test: move controller to their own package ( #1064 )
...
* test: move controller to their own package
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-09-15 17:24:46 +08:00
yangw
86adf564f0
ci: add helm docs test action ( #1058 )
...
* ci: add helm docs test action
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* update
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* update
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* update
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* update
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-09-12 11:34:34 +08:00
civkule
10911243ef
feat: add image pull secret for redis operator ( #1053 )
...
* imagePullSecret for redis-operator
Added imagePullSecret for redis-operator in operator-deployment.yaml file
Signed-off-by: civkule <nac.ext@velux.com>
* added imagePullSecrets in values.yaml
Signed-off-by: civkule <nac.ext@velux.com>
---------
Signed-off-by: civkule <nac.ext@velux.com>
2024-08-30 17:17:14 +08:00
Rhys Evans
7c2d396f4c
feat: add tolerations to operator chart ( #1051 )
...
added tolerations
Signed-off-by: Rhys <rhys@rhysevans.co.uk>
Co-authored-by: Rhys <rhys.e@data-edge.co.uk>
2024-08-30 17:10:59 +08:00
yangw
10087be281
docs: generate chart README from helm-docs ( #1041 )
...
* docs: generate chart README from helm-docs
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* update
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-08-08 13:46:12 +08:00
Daniel Schaaff
31c5dcaa67
fix: bad indentation on redis standalone additional configs ( #1040 )
...
fix bad indentation on redis standalone additional configs
It was incorrectly being nested under the redis exporter config key.
Signed-off-by: Daniel Schaaff <daniel@danielschaaff.com>
2024-08-06 10:21:56 +08:00
drivebyer
3698e790d1
Update redis operator version
2024-08-01 14:14:47 +08:00
yangw
e3655af543
fix: unknown field error when upgrade chart ( #1034 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-07-24 11:22:36 +08:00
yangw
b343653303
fix: field validate error when enable additional config for sentinel ( #1033 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-07-23 18:12:03 +08:00
mattrobinsonsre
c3bbe881a5
feat: support setting minReadySeconds on the stateful sets ( #1023 )
...
Signed-off-by: Matt Robinson <mattrobinsonsre@gmail.com>
2024-07-23 13:50:59 +08:00
yangw
d64670ee36
fix: indention error when enable additional config ( #1031 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-07-23 13:19:43 +08:00
drivebyer
1f51a5e60e
Release operator chart 0.18.0
2024-07-12 23:25:54 +08:00
yangw
0dddaeac9a
feat: add redisReplicationPassword values to connect secured replication ( #1021 )
...
feat: add redisReplicationPassword values to connect secured replication cluster
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-07-10 14:31:55 +08:00
yangw
08eb5eb236
docs: fix example broken links ( #1008 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-06-23 19:31:02 +08:00
dependabot[bot]
02fb120721
chore(deps): bump docker/build-push-action from 3 to 6 ( #998 )
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 3 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v3...v6 )
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-23 11:06:11 +08:00
yangw
224c2860d2
feat: add redis/redisreplication/redissentinel/rediscluster chart ( #1007 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-06-23 11:04:27 +08:00
Laurentiu Soica
f1080f5722
feat: allow rbac to pe externally provisioned ( #1005 )
...
* feat: allow rbac to pe externally provisioned
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
* fix: add new parameter in docs
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
---------
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
Co-authored-by: laurentiusoica <laurentiu.soica@spirent.com>
2024-06-22 22:17:56 +08:00
Mathieu Cesbron
dd4e8e107c
chore: remove latest version for conversion webhook ( #760 )
...
Remove latest version for conversion webhook
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
2024-06-21 15:18:29 +08:00
yangw
c58d54f69f
fix: add default port to enable `SENTINEL_PORT` environment ( #999 )
...
* fix: add default port to enable `SENTINEL_PORT` environment
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix test
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-06-19 20:58:01 +08:00
Laurentiu Soica
909d9e4a7f
feat: add support for extra volume mounts for redis sentinel ( #994 )
...
* feat: add support for extra volume mounts for redis sentinel
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
* fix: add tests
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
* fix: yaml lint
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
* fix: docs
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
---------
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
Co-authored-by: laurentiusoica <laurentiu.soica@spirent.com>
2024-06-19 15:18:17 +08:00
Mahesh Kumar
6794133674
test: Cover Createorupdatestateful ( #968 )
...
* test:CreateOrUpdateStateFul test case
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
* createorupdatestateful-test cover
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
* test:createorupdatestateful fixing liniting
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
* fixing linting
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
* test: createorupdatestateful cover
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
* test: fixing linting
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
* test: fixed liniting
Signed-off-by: opstree <opstree@opstrees-MacBook-Pro-2.local>
* test: added new test case with error
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
---------
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
Signed-off-by: opstree <opstree@opstrees-MacBook-Pro-2.local>
Co-authored-by: opstree <opstree@opstrees-MacBook-Pro-2.local>
2024-06-19 14:32:00 +08:00
Mahesh Kumar
4f5f721c0d
test: cover getSidecars ( #997 )
...
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
2024-06-19 14:27:20 +08:00
yangw
2838af46d2
fix: ReadyReplicas need to be checked in `IsStatefulSetReady` ( #993 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-06-16 23:30:24 +08:00
yangw
b6194b03c4
feat: add automountServiceAccountToken values for deployment and serviceaccnount ( #991 )
...
feat: add automountServiceAccountToken values for deployment and serviceaccount
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-06-15 20:58:01 +08:00
yangw
052d2e5e0d
fix: watchNamespace value does not take effect in chart ( #990 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-06-15 18:21:48 +08:00
yangw
4afc8c2d16
test: cluster connection must be run after ready ( #989 )
...
* test: cluster connection must be run after ready
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* remove assert
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-06-15 18:21:18 +08:00
Laurentiu Soica
a838608369
feat: add securityContext for exporter, initcontainers and sidecars ( #987 )
...
* feat: add securityContext for exporter, initcontainers and sidecars
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
* fix: add docs
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
* fix: RedisExporterSecurityContext instead of SecurityContext
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
* fix: code review
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
* fix: refresh crds
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
* fix: refresh crds
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
---------
Signed-off-by: laurentiusoica <laurentiu.soica@spirent.com>
Co-authored-by: laurentiusoica <laurentiu.soica@spirent.com>
2024-06-15 17:04:50 +08:00
yangw
b22118c21e
refactor: reconcile on statefulset update ( #988 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-06-15 17:02:07 +08:00
Mahesh Kumar
46ded9feb8
test: generateStatefulSetsDef cover ( #980 )
...
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
2024-06-12 10:07:05 +08:00
yangw
b44f30367c
refactor: add common controller util ( #977 )
...
* refactor: add common controller util
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix lint
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-06-08 11:52:04 +08:00
yangw
ae814ecc05
feat: add security context values in operator chart ( #973 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-06-06 22:38:13 +08:00
yangw
92ac24faff
feat: rolling update sequence from leader to follower ( #966 )
...
* feat: rolling update sequence from leader to follower
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* add suffix
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix test
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix lint
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-06-05 14:24:15 +08:00
Mahesh Kumar
96a5ccf86c
test: generateInitContainerDef added additional env and resources ( #963 )
...
* test: cover generateInitContainerDef
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
* test: generateInitContainerDef added additional env and resources
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
---------
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
2024-06-05 10:02:28 +08:00
yangw
ba8dfa4349
fix: sentinel should not reconcile until replication cluster ready ( #964 )
...
* fix: sentinel should not reconcile until replication cluster ready
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* check master attached slave
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* increase waiting
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-06-04 22:51:16 +08:00
Mahesh Kumar
a207422fac
test: cover generateContainerDef ( #962 )
...
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
2024-06-03 19:49:19 +08:00
yangw
0fd0e42dd8
refactor: remove duplicated tls code ( #961 )
...
* remove dup log
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* remove dup tsl replication code
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-06-02 23:24:42 +08:00
yangw
5554025660
ci: remove unuse kuttl test workflow ( #958 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-05-31 10:05:19 +08:00
drivebyer
64d376eba3
Release operator chart 0.16.1
2024-05-30 22:22:24 +08:00
yangw
df24341c84
ci: fix chart release yaml syntax ( #957 )
...
* ci: fix chart release yaml syntax
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* add path
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-05-30 22:12:52 +08:00
drivebyer
52ed749d8b
Release operator chart 0.15.11
2024-05-30 21:54:00 +08:00
Jordan Rodgers
5ec6ef3248
feat: add support for configurable probe handlers ( #934 )
...
add support for configurable probe handlers
Signed-off-by: Jordan Rodgers <jrodgers@mux.com>
2024-05-30 17:29:54 +08:00
yangw
bd6ddac64f
build: separate chart and image release process ( #956 )
...
build: separate chart / image release process
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-05-30 11:30:02 +08:00
yangw
8ba7390442
feat: add redis operator helm chart and release workflow ( #941 )
...
* copy operator chart from helm-charts repo
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* add chart release workflow
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* change operator image
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-05-27 23:43:24 +05:30
Thomas Montague
e021986de8
build: add support for other container engines ( #947 )
...
Add support for other container engines.
Signed-off-by: Thomas Montague <thomas.montague@trmlabs.com>
2024-05-23 10:25:51 +08:00
yangw
d15c80e546
fix: return ASAP after handling finalizer ( #940 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-05-22 09:48:51 +08:00
dependabot[bot]
39ed5d0a7c
chore(deps): bump docker/setup-qemu-action from 2 to 3 ( #915 )
...
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action ) from 2 to 3.
- [Release notes](https://github.com/docker/setup-qemu-action/releases )
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-21 21:08:06 +08:00
dependabot[bot]
68d053b51f
chore(deps): bump docker/setup-buildx-action from 2 to 3 ( #917 )
...
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action ) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases )
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-21 21:07:51 +08:00
dependabot[bot]
deb9cd667c
chore(deps): bump golangci/golangci-lint-action from 5 to 6 ( #916 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 5 to 6.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-21 21:07:37 +08:00
dependabot[bot]
14fce7cd7c
chore(deps): bump github.com/onsi/ginkgo/v2 from 2.17.2 to 2.17.3 ( #920 )
...
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from 2.17.2 to 2.17.3.
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.17.2...v2.17.3 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-21 21:07:18 +08:00
yangw
bd1e4faf06
fix: check redis replication after handling finalizer ( #936 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-05-21 20:05:20 +08:00
yangw
fae7db7845
build: repository name must be lowercase ( #926 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-05-14 23:04:10 +08:00
yangw
09a80f41a7
feat: add redis-role label to redis replication ( #925 )
...
* feat: add redis-role label to redis replication
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix lint
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix lint
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix test
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix test
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix test
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix test
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix test
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix test
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix test
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-05-14 19:22:07 +08:00
yangw
a9fa6997f9
fix: runtime panic when delete rediscluster which disable persistent ( #922 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-05-11 13:28:18 +08:00
yangw
37ac693c16
feat: WATCH_NAMESPACE support multi namespace ( #919 )
...
* feat: WATCH_NAMESPACE support multi namespace
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* format
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-05-07 22:54:38 +08:00
Mathieu Cesbron
c0b3c04c2d
docs: update standalone pod name ( #747 )
...
Update standalone pod name
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
2024-05-07 14:28:59 +08:00
teocns
c02d5a65e4
fix: runtime panic when `storage` param is empty ( #887 )
...
* fix runtime panic when storage param is empty
Signed-off-by: Teo <teocns@gmail.com>
* Update redis-cluster.go
* remove blank
* Update redis-cluster.go
---------
Signed-off-by: Teo <teocns@gmail.com>
Co-authored-by: yangw <yang.wu@daocloud.io>
2024-05-07 11:46:41 +08:00
yangw
10c1e6bba8
build: add workflow to publish image to ghcr ( #914 )
...
* build: add ghcr release process
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix: env
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-05-07 09:58:02 +08:00
yangw
4e60683fc5
feat: probe use built-in, discarded healthcheck.sh ( #907 )
...
* feat: probe use built-in, discarded healthcheck.sh
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* use shell
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-05-06 12:25:41 +05:30
yangw
95d1f55d5d
ci: run e2e after operator ci check ( #913 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-05-06 14:45:02 +08:00
dependabot[bot]
840675c880
chore(deps): bump github.com/onsi/gomega from 1.33.0 to 1.33.1 ( #910 )
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.33.0 to 1.33.1.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.33.0...v1.33.1 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-04 13:11:12 +08:00
dependabot[bot]
f59f71e7b6
chore(deps): bump github.com/onsi/ginkgo/v2 from 2.17.1 to 2.17.2 ( #903 )
...
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from 2.17.1 to 2.17.2.
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.17.1...v2.17.2 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-30 16:37:02 +05:30
Jae Jahng (Jude)
9cd2ae947c
fix: exporter can not connect to redis when enable tls ( #902 )
...
Signed-off-by: wkd-woo <wkdwoos@gmail.com>
2024-04-29 15:10:30 +08:00
dependabot[bot]
4c7b570329
chore(deps): bump github.com/onsi/gomega from 1.32.0 to 1.33.0 ( #881 )
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.32.0 to 1.33.0.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.32.0...v1.33.0 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-27 13:33:43 +08:00
dependabot[bot]
3c5373ecd7
chore(deps): bump golangci/golangci-lint-action from 4 to 5 ( #894 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 4 to 5.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-27 13:33:14 +08:00
yangw
40c4a0d11e
refactor: update status if not equal ( #900 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-04-26 17:08:18 +08:00
dependabot[bot]
f5028bd4bb
chore(deps): bump helm/kind-action from 1.9.0 to 1.10.0 ( #889 )
...
Bumps [helm/kind-action](https://github.com/helm/kind-action ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/helm/kind-action/releases )
- [Commits](https://github.com/helm/kind-action/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: helm/kind-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-25 10:01:12 +08:00
Mahesh Kumar
80bc4a41c5
test: cover generateInitContainerDef ( #888 )
...
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
2024-04-23 10:09:19 +08:00
yangw
736836c39e
fix: should get the really leader count when scale in ( #885 )
...
* fix: should get the really leader count when scale in
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix timeout
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix test
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-04-22 14:11:59 +05:30
yangw
7999a058f4
fix: ClusterSlaves result should be cut ( #884 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-04-20 14:42:08 +05:30
Mahesh Kumar
b37366a670
test: cover func enableRedisMonitoring ( #883 )
...
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
2024-04-19 17:42:19 +05:30
dependabot[bot]
15df443f6b
chore(deps): bump k8s.io/api from 0.29.3 to 0.29.4 ( #874 )
...
Bumps [k8s.io/api](https://github.com/kubernetes/api ) from 0.29.3 to 0.29.4.
- [Commits](https://github.com/kubernetes/api/compare/v0.29.3...v0.29.4 )
---
updated-dependencies:
- dependency-name: k8s.io/api
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-17 16:07:50 +08:00
yangw
80e7f2fd3b
fix: redis cluster update as scale out ( #872 )
...
* fix: redis cluster update as scale out
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* add e2e test step && remove unnecessary test assert
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* add newline
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* add newline
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-04-16 19:14:03 +05:30
yangw
7b8c3757b2
ci: validate yaml before run e2e ( #873 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-04-16 19:12:43 +05:30
Mahesh Kumar
454e88c936
test: Cover func updatestatefulset ( #863 )
...
* test case for updatestatefulset functions
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
* tests: updated TestUpdateStatefulSet
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
* fix: failing test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Add one more case
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Mahesh Kumar <k.mahesh.9779@gmail.com>
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: opstree <opstree@opstrees-MacBook-Pro-2.local>
Co-authored-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-04-13 19:35:35 +05:30
yangw
a87435680e
feat: implement redis cluster ready state ( #867 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-04-13 18:22:48 +05:30
yangw
86945fc2c4
refactor: add common AddFinalizer for all api ( #858 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-04-02 00:06:47 +05:30
Shubham Gupta
41fd1646e8
test: Add unit test ( #856 )
...
* test: Add unit test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Cover TestCheckRedisCluster
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: fix coverage
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix: coverage
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix: remove print statement
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-31 23:19:36 +05:30
Shubham Gupta
80a26a9486
ci: Validate Test Yaml ( #854 )
...
* ci: Validate Test Yaml
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: fix yaml intendation
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: fix yaml via yamlfix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* add line for fun
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* feat: run yamlfix in parallel
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* chore: fix script
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix: use root
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix: add yaml lint configuration
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix: changes
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix: config
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: chainsaw example
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix: long lines
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: example validation
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix secrets
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* chore: add comment
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-30 21:09:22 +05:30
yangw
eb1cc0d3dc
feat: add redisreplication status masterNode ( #849 )
...
* feat: add redisreplication status masterNode
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix e2e
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix lint
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix lint
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-03-30 19:04:27 +05:30
Shubham Gupta
ab45fe06d9
chore(deps): bump sigs.k8s.io/controller-runtime from 0.16.2 to 0.17.2 ( #852 )
...
* chore(deps): bump k8s.io/client-go from 0.28.2 to 0.29.3
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* bump : notify
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* chore: remove unused code
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* chore(deps): bump sigs.k8s.io/controller-runtime from 0.16.2 to 0.17.2
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-30 10:06:53 +08:00
Shubham Gupta
1c2dc012a1
chore(deps): bump k8s.io/client-go from 0.28.2 to 0.29.3 ( #851 )
...
* chore(deps): bump k8s.io/client-go from 0.28.2 to 0.29.3
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix: remove deprecated method
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* bump : notify
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* make codegen
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Co-authored-by: drivebyer <wuyangmuc@gmail.com>
2024-03-30 00:21:46 +05:30
Mathieu Cesbron
bf1a5a90df
Remove useless comments ( #761 )
...
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
2024-03-29 18:02:31 +05:30
Shubham Gupta
aeba01968b
test(client): Add Redis Mock Test code ( #842 )
...
* test(client) : Add Redis Mock Test code
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test(client): Add for followers node id's
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: cover checkAttachedSlave
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Add redis server role
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: add redis operator pod logs
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* chore: add log statement
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* chore: fix logs
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: fix unit test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix: return data
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix the role
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* chore: remove comment
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* refactor: move logger to params
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Add test Get statefulset
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-29 10:36:55 +08:00
dependabot[bot]
a6d372d1b4
chore(deps): bump github.com/onsi/ginkgo/v2 from 2.16.0 to 2.17.1 ( #844 )
...
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from 2.16.0 to 2.17.1.
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.16.0...v2.17.1 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 10:34:01 +08:00
Shubham Gupta
a521613535
test: Show Operator Failed Logs ( #843 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-25 11:44:08 +08:00
Shubham Gupta
ff9166508b
chore: use redis client library ( #840 )
...
* chore: use appropriate way to calulate slots
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* chore: remove unncessary conversion
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* chore: improve slaveid calculation
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-24 11:40:38 +05:30
Shubham Gupta
2ee43243be
test(client): Add redis mock client ( #841 )
...
* test(Client): Add redis mock client
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fake commit
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fake commit
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-24 11:40:25 +05:30
dependabot[bot]
17abdf401e
chore(deps): bump github.com/onsi/gomega from 1.31.1 to 1.32.0 ( #834 )
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.31.1 to 1.32.0.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.31.1...v1.32.0 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-19 17:00:23 +08:00
yangw
edc3083322
fix: ensure sentinel does not observes the failover progress in replication cluster ( #803 )
...
* fix: ensure sentinel does not observes the failover progress in replication cluster
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* add e2e
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* enhance check
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* check master through sentinel
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-03-18 19:42:09 +05:30
dependabot[bot]
e8b1ffffee
chore(deps): bump github.com/banzaicloud/k8s-objectmatcher from 1.7.0 to 1.8.0 ( #819 )
...
chore(deps): bump github.com/banzaicloud/k8s-objectmatcher
Bumps [github.com/banzaicloud/k8s-objectmatcher](https://github.com/banzaicloud/k8s-objectmatcher ) from 1.7.0 to 1.8.0.
- [Commits](https://github.com/banzaicloud/k8s-objectmatcher/compare/v1.7.0...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/banzaicloud/k8s-objectmatcher
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-17 16:14:59 +05:30
Jami Karvanen
1cf27bbf08
fix: m/s replication when using ipv6 ( #827 )
...
* Delete unnecessary brackets wrapping the IPv6 address
Signed-off-by: Jami Karvanen <jami@karvanen.fi>
* Extract redis address formatting into separate getRedisServerAddress function
Signed-off-by: Jami Karvanen <jami@karvanen.fi>
* Add tests for getRedisServerAddress
Signed-off-by: Jami Karvanen <jami@karvanen.fi>
* Use getRedisServerAddress also in cluster-scaling.go
Signed-off-by: Jami Karvanen <jami@karvanen.fi>
---------
Signed-off-by: Jami Karvanen <jami@karvanen.fi>
2024-03-15 13:37:58 +08:00
dependabot[bot]
96c1b15526
chore(deps): bump google.golang.org/protobuf from 1.30.0 to 1.33.0 ( #828 )
...
Bumps google.golang.org/protobuf from 1.30.0 to 1.33.0.
---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 10:31:50 +08:00
dependabot[bot]
94afadd506
chore(deps): bump docker/build-push-action from 2 to 5 ( #826 )
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 2 to 5.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v2...v5 )
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-11 21:38:50 +08:00
Shubham Gupta
1dae4235b1
refactor(client): Use interface ( #804 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-11 16:39:10 +05:30
yangw
61d89f4050
fix: sentinel waiting for replication pod got ready ( #806 )
...
* fix: sentinel waiting for replication pod got ready
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* avoid nil pointer
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix for linter
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-03-11 16:38:56 +05:30
dependabot[bot]
fd786066f8
chore(deps): bump github.com/onsi/gomega from 1.30.0 to 1.31.1 ( #820 )
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.30.0 to 1.31.1.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.30.0...v1.31.1 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-08 17:29:42 +08:00
dependabot[bot]
044d389b4d
chore(deps): bump codecov/codecov-action from 3 to 4 ( #823 )
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-08 17:29:14 +08:00
dependabot[bot]
d121d86988
chore(deps): bump docker/setup-buildx-action from 2 to 3 ( #825 )
...
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action ) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases )
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-08 17:28:49 +08:00
dependabot[bot]
6fb1bdbfee
chore(deps): bump helm/kind-action from 1.5.0 to 1.9.0 ( #824 )
...
Bumps [helm/kind-action](https://github.com/helm/kind-action ) from 1.5.0 to 1.9.0.
- [Release notes](https://github.com/helm/kind-action/releases )
- [Commits](https://github.com/helm/kind-action/compare/v1.5.0...v1.9.0 )
---
updated-dependencies:
- dependency-name: helm/kind-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-08 17:28:07 +08:00
dependabot[bot]
e4d5aec671
chore(deps): bump golangci/golangci-lint-action from 3 to 4 ( #810 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 3 to 4.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-08 15:51:05 +08:00
dependabot[bot]
69c549e96e
chore(deps): bump jlumbroso/free-disk-space from 1.3.0 to 1.3.1 ( #812 )
...
Bumps [jlumbroso/free-disk-space](https://github.com/jlumbroso/free-disk-space ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/jlumbroso/free-disk-space/releases )
- [Commits](https://github.com/jlumbroso/free-disk-space/compare/v1.3.0...v1.3.1 )
---
updated-dependencies:
- dependency-name: jlumbroso/free-disk-space
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-08 15:50:13 +08:00
dependabot[bot]
60ea390422
chore(deps): bump github.com/redis/go-redis/v9 from 9.2.1 to 9.5.1 ( #813 )
...
Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis ) from 9.2.1 to 9.5.1.
- [Release notes](https://github.com/redis/go-redis/releases )
- [Changelog](https://github.com/redis/go-redis/blob/master/CHANGELOG.md )
- [Commits](https://github.com/redis/go-redis/compare/v9.2.1...v9.5.1 )
---
updated-dependencies:
- dependency-name: github.com/redis/go-redis/v9
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-08 13:48:33 +08:00
dependabot[bot]
4ddd2f8441
chore(deps): bump actions/setup-go from 4 to 5 ( #811 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-08 13:47:16 +08:00
dependabot[bot]
012d5babae
chore(deps): bump github/codeql-action from 1 to 3 ( #809 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 1 to 3.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/v1...v3 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-08 10:16:25 +08:00
dependabot[bot]
fcd7d5858c
chore(deps): bump actions/checkout from 2 to 4 ( #808 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 4.
- [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...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-08 10:15:44 +08:00
dependabot[bot]
9bab658b7a
chore(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 ( #814 )
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-08 10:14:46 +08:00
dependabot[bot]
90122a4fe1
chore(deps): bump github.com/onsi/ginkgo/v2 from 2.11.0 to 2.16.0 ( #815 )
...
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from 2.11.0 to 2.16.0.
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.11.0...v2.16.0 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-08 10:14:12 +08:00
Shubham Gupta
39e5bf5ddf
ci: add deps scope in pr semantics ( #818 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-07 23:27:42 +05:30
Shubham Gupta
d3abdd37a2
ci: Add dependabot and cherry-pick-bot ( #807 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-07 23:23:24 +05:30
Shubham Gupta
17b9d2c812
test: service unit Testing ( #800 )
...
* test: service unit Testing
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: add Test_createService
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: update service
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-05 22:05:23 +05:30
Shubham Gupta
6318922184
test: Add Finalizers Unit Test ( #799 )
...
* test: Add Unit Test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* chore: update makefile
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* gci-ed
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Add finalizers testing
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* gci-ed
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* style: fix trailing new line
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Add Handle Redis Cluster Finalizers
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* chore: makefile
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Add Handle Replication Finalizers
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Add Redis Sentinel Handle Finalizers
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* chore: remove unused code
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: fix coverage
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-05 17:56:02 +05:30
Shubham Gupta
dd8318bba5
test: Remove Duplicate Kuttl Test ( #798 )
...
* test: remove kuttl hostnetwork test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: remove kutll hostnetwork
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Add chainsaw redis-standalone teardown
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Add yaml language server
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Add chainsaw redis-replication teardown
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: Drop teardown kuttl test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Add chainsaw redis-sentinel teardown
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: Drop setup kuttl test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: fix typo in chainsaw redis-replication teardown
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Add cluster scaling test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: Add cluster scaling
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: test for acl user (#797 )
* test: test for acl user
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: add to ci
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* style: remove trailing space
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: fix uri scheme
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: test on all
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: fix typo
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: Add cluster scaling
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: remove kuttl test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: Add chainasw ignore annots
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: add ignore annots
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: mutiple runs
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: fix failure
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-05 01:39:18 +05:30
Shubham Gupta
45dfa17a84
test: test for acl user ( #797 )
...
* test: test for acl user
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: add to ci
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* style: remove trailing space
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: fix uri scheme
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: test on all
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: fix typo
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-04 23:21:25 +05:30
Shubham Gupta
649ebd4f3d
ci: Improve CI linting ( #791 )
...
* ci: enable more linters
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: diable few checks for temporary
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: read permission to ci
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: try removing cache
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: diable ifelse linter for temp
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* syle: run gofumpt
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* sytle: run gci
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: prevent misspell
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: run go import
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* style: fix style errors
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* style: fix trailing lines
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* remove unwanted conversion
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* remove gci from generated file
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* style: remove init check
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix: type conversion
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix: remove context
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: update configuration file
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: skip generated files
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ci: remove disabled lintesr
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-03 18:35:55 +05:30
Shubham Gupta
4e66ea217a
ci: halt failing release ( #794 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-03 03:57:38 +05:30
Shubham Gupta
1193987d4e
ci: fmt and vet covered in golang Ci linters by default ( #792 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-03 03:50:41 +05:30
Shubham Gupta
8f5969f973
add: codeowners ( #793 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-03 03:49:18 +05:30
Shubham Gupta
e97bf7d46f
ci: bump chainsaw version ( #789 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2024-03-02 23:47:15 +05:30
Shubham Gupta
30315eb5d1
Create FUNDING.yml
2024-03-02 23:44:37 +05:30
yangw
891d740293
fix: nil pointer dereference in conversion webhook ( #787 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-02-26 17:36:48 +05:30
yangw
db14d1b018
chore: enhance log every reconcile redis replication ( #780 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-02-20 14:20:32 +08:00
yangw
df2df6d4b4
feat: add field to keep pvc after cr be deleted ( #772 )
...
* feat: add field to keep pvc after cr be deleted
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix kind
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix delete name
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-02-09 15:28:13 +05:30
yangw
bb69d00c6a
test: remove redundant creating ( #771 )
...
test: remove redundant running spec
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-02-08 17:19:33 +05:30
yangw
997dc67f2a
ci: improve the PR semantics ( #770 )
...
* ci: improve the PR semantics
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* update scope
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-02-07 13:53:07 +05:30
yangw
a14300132e
chore: enhance log every reconcile redis cluster ( #767 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2024-02-01 13:56:33 +05:30
Mathieu Cesbron
3e6fcb9a5f
Remove useless comment ( #758 )
...
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
2024-01-24 01:04:42 +05:30
Mathieu Cesbron
2e1ba97645
test: add redis sentinel integration tests ( #755 )
...
* Add redis sentinel in suite test
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
* Add redis sentinel integration tests
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
---------
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
2024-01-21 10:52:44 +08:00
Mathieu Cesbron
f9938bc321
test: add redis replication integration tests ( #754 )
...
* Remove commented code
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
* Add redis replication reconciler in suite test
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
* Add redis replication integration tests
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
---------
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
2024-01-20 13:15:54 +08:00
Mathieu Cesbron
6bf05bcf1b
Add redis cluster integration tests ( #753 )
...
* Move var integration tests
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
* Add dynamic k8s client in integration tests
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
* Add Integration tests for redis cluster
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
---------
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
2024-01-19 03:41:25 +05:30
Mathieu Cesbron
629c2dfe12
fix: generate dynamic k8s client only once ( #752 )
...
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
2024-01-18 10:18:47 +08:00
Mathieu Cesbron
169194a69f
chore: fix clinet typo ( #751 )
...
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
2024-01-16 10:09:23 +08:00
Mathieu Cesbron
cd1e810c4f
test: add envtest for redis standalone ( #748 )
...
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
2024-01-15 13:35:37 +08:00
Mathieu Cesbron
7665d4aff3
feat: generate k8s client only once ( #750 )
...
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
2024-01-14 15:23:43 +08:00
Mathieu Cesbron
e57531acce
docs: add namespace creation ( #746 )
...
* Remove trailing whitespaces
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
* Add namespace creation on doc
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
---------
Signed-off-by: Mathieu Cesbron <mathieu.cesbron@protonmail.com>
2024-01-11 16:34:53 +08:00
yangw
ef99c4d600
feat: add environment to customize data pvc prefix ( #742 )
...
* support customize pvc template name
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* add test case
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* kubectl
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* wait operator ready
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix sleep
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix sleep
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* remove debug
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-01-10 14:43:42 +05:30
yangw
f07f596a61
fix: exporter no auth to redis ( #743 )
...
* fix exporter no auth
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* add e2e
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix unit test
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix test
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2024-01-10 14:42:48 +05:30
yangw
c8fd3bd33c
feat: support create redis cluster by nodeport service ( #738 )
...
* copy e2e test from setup
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* support nodeport cluster
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* setup test check cluster
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix test
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix ip
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix check string
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* enable nodeport e2e test
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* test: add nodeport service check
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* test: test with redis 6
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* test: change version && add REDIS_MAJOR_VERSION env
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* test: fix check syntax
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2023-12-28 01:16:27 +05:30
yangw
8f789aa070
fix: exporter connect to custom redis port ( #736 )
...
* fix port check
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* test redis_up
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix exporter env
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix url
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2023-12-25 12:32:49 +05:30
Shubham Gupta
8e8ded98ac
feat: Redis AUTH password ( #734 )
...
* make-codegen
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix codegen
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix naming
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix test file
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix secret issues
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-12-18 15:18:18 +05:30
Shubham Gupta
deefc14c2d
test: HA-setup ( Replication and Sentinel ) Unsecured | Partial Secured ( #732 )
...
* add empty test files
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* add replication file
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* add to CI
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix : HA setup
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix files
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* sentinel size 1
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ping cluster
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix svc name
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* try saving a key
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix-bug
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix port
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* don't save key
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix quorum
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: partial secured sentinel
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test: partial secured with redis replication
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* make max parallel
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-12-18 06:59:20 +05:30
Shubham Gupta
d8ad9f9add
test: Try ping and save key on redis replication ( #731 )
...
* test: Try ping and save key on redis replication
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* saving without password
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* try fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* try Comment
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-12-18 02:26:24 +05:30
Shubham Gupta
25d807ae24
sentinel-setup ( #733 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-12-18 01:52:22 +05:30
Shubham Gupta
0ed854fc14
test: Setting Password on Redis Cluster ( #729 )
...
* try: Setting Password on Redis Cluster
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* add to CI
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix-name
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* add Exporter
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix stdout
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-12-18 00:50:48 +05:30
Shubham Gupta
50a62d185a
test: Add replication to chainsaw setup ( #730 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-12-18 00:39:54 +05:30
yangw
62d79b87d8
feat: support exporter custom port ( #728 )
...
* support exporter custom port
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* add e2e
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2023-12-17 23:12:03 +05:30
Shubham Gupta
692c4acb3a
test: Try Saving Key ( #727 )
...
* try: saving a key
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* sleep for 5 min
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* host network
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-12-14 02:56:13 +05:30
yangw
adca06866e
feat: rediscluster support hostnetwork && custom port ( #723 )
...
* add cr filed, default port to 6379
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* replace with custom port
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* service custom port
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* make default to 6379 when reconcile old cluster
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* add e2e
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2023-12-14 00:55:21 +05:30
Shubham Gupta
48b515b19e
test: try Ping cluster ( #726 )
...
* try Ping cluster
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* use script
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* PONG
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ping cluster
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* remove
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* try spacing
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* pong
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix quote
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-12-13 13:38:03 +05:30
Shubham Gupta
1e2265831b
feat: Add Chainsaw Action in CI ( #722 )
...
* add chainsaw action
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* update
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix Ci
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* Add release
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* Ci
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* remove build
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* test version
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* try with 0.0.8
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* try with v0.0.9
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* bump
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* try with v0.0.4
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* add : Setup
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* only setup
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix name
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* increase timeout
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* more time
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* bump timeout
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* Add teardown
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix delete
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* file
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-12-12 04:55:29 +05:30
yangw
48add7ecbf
fix: specify k8s version which contain darwin arm64 ( #719 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2023-12-07 12:49:21 +05:30
yangw
76927086d2
[Fix] : returned both a non-zero result and a non-nil error ( #705 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2023-11-21 20:47:37 +05:30
yangw
a597c39328
[Fix] : cluster scaling ( #704 )
...
* add scale e2e yamls
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* temp
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix the cluster scale
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* adjust e2e
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2023-11-21 01:51:39 +05:30
yangw
6502c91c29
Merge pull request #703 from drivebyer/fix-pvc
...
[Fix] : redis data pvc not deleted
2023-11-14 23:32:08 +08:00
drivebyer
bdbe6f0a20
fix unit test
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2023-11-14 23:11:58 +08:00
drivebyer
2036996437
add case
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2023-11-14 23:00:55 +08:00
drivebyer
3c17b57cf0
add e2e
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2023-11-14 22:58:57 +08:00
drivebyer
b1e89de166
add e2e
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2023-11-14 22:55:37 +08:00
drivebyer
d38c382058
fix data pvc finalize
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2023-11-14 22:54:13 +08:00
Shubham Gupta
697538ec33
test : Add redis_test.go ( #702 )
...
* Add test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* Add TestCreateMultipleLeaderRedisCommand
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* add TestGetRedisTLSArgs
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* createRedisReplicationCommand
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* Add test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* add
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-11-11 20:02:36 +05:30
Shubham Gupta
58db9ec5a4
test: Add secret_test.go ( #701 )
...
* fix client
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* Add secret test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix lint
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* update CI
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-11-11 05:16:27 +05:30
Shubham Gupta
36591d5ba3
fix : Add client for Testing ( #700 )
...
* mock client
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* feat: add client
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* Add finalizers
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* Add Test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-11-11 01:07:54 +05:30
Shubham Gupta
defdcdfab6
Add : Mock Client ( #699 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-11-10 21:06:12 +05:30
Shubham Gupta
916779166e
test: Make Code Testable ( #697 )
...
* testing-client
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* client_test.go
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* push
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix Client
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix Dockerfile
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* try fixing lint
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix ci
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix CI
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix CI
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* ignoree
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* change location
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-11-10 20:45:57 +05:30
Shubham Gupta
56996ef25e
fix-env ( #696 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-11-08 23:29:55 +05:30
Shubham Gupta
a2e4b79314
fix ( #695 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-11-08 23:09:40 +05:30
Shubham Gupta
737dd02c31
qemu ( #694 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-11-08 22:48:36 +05:30
Shubham Gupta
88252755e3
fix ( #693 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-11-08 22:35:36 +05:30
Shubham Gupta
3531d5b00b
Fix: Release Workflow ( #692 )
...
* push image
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-11-08 22:21:27 +05:30
Shubham Gupta
d0ce0668e8
push image ( #691 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-11-08 22:10:24 +05:30
Shubham Gupta
1fd09c40a9
fix logs ( #690 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-11-08 13:53:16 +05:30
yangw
5bf8182035
adjust some log level ( #686 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2023-11-06 19:30:24 +05:30
yangw
520d3a29bd
test: add test for redisreplication/redissentinel/rediscluster ( #687 )
...
* ut for redis replication
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* ut for redis sentinel
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* ut for redis cluster
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* remove useless field
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2023-11-06 18:42:27 +05:30
Shubham Gupta
f7e6a28ade
makefile : Add Target to run e2e Test ( #685 )
...
* makefile targets for e2e
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-10-29 20:47:42 +08:00
Shubham Gupta
89c2daa647
test : Add Unit Test for redis-standalone.yaml ( #683 )
...
* standalone-unit-test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* more test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* Add test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-10-29 02:01:26 +05:30
Shubham Gupta
4a857f99e9
test : validate all the cr in the example dir ( #684 )
...
* validate-example
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* modify name
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fixes
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix err
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* crd
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix examples
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix yamls
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix yaml
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix lint
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix lint
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix lint
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix lint
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-10-29 00:19:08 +05:30
yangw
52c67ffd64
[Fix] : wait follower statefulset ready before make cluster ( #680 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2023-10-26 19:56:33 +05:30
yangw
10fd741d54
[Fix] : setup label redis_setup_type to sentinel ( #679 )
...
* fix label redis_setup_type to sentinel
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* add test
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2023-10-23 23:54:56 +05:30
yangw
5a4b6cf5e5
[Test] : add assert service to setup ( #678 )
...
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
2023-10-23 19:29:23 +05:30
yangw
5b003aeb86
[Test] : add redis replication setup case ( #677 )
...
* [Test] : add redis replication setup case
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* marking false
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix for review
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2023-10-23 17:00:50 +05:30
Shubham Gupta
42dfc93c75
feat: verify codgen in Makefile and Github workflow ( #673 )
...
* fixing workflow
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* verify
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix version in makefile
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-10-21 13:16:36 +05:30
Shubham Gupta
753438148b
add code-cov ( #675 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-10-21 13:05:15 +05:30
guangwu
a7c4452643
fix: typo ( #674 )
...
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-10-21 11:56:13 +05:30
Shubham Gupta
f7206cd021
Add missing deepcopy ( #672 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-10-21 11:10:39 +05:30
yangw
91feb40d23
[Fix] : redis exporter mismatch environment ( #670 )
...
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2023-10-16 18:52:16 +05:30
Shubham Gupta
861b8f384e
update tags ( #669 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-10-12 17:20:07 +08:00
dependabot[bot]
461cac47c5
Bump golang.org/x/net from 0.15.0 to 0.17.0 ( #668 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 10:28:05 +05:30
yangw
f5c68daf4d
[Feat] : support ignore specify annotation key in statefulset ( #666 )
...
* Support ignore specify annotation key in statefulset
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* add e2e
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* add test path
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* [DEBUG] ignore test dir
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* remove comment
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* remove assert file, which already assert in setup directory
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* add test dirs
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* remove exporter
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* add error assert
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* add more assert
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* add more assert
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2023-10-10 12:10:29 +05:30
yangw
aa02370c66
[Fix] : deploy can not set custom image:tag ( #664 )
...
* fix deploy image to latest tag
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix image name consistent with kustomization.yaml
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* alway use image locally
Co-authored-by: Shubham Gupta <69793468+shubham-cmyk@users.noreply.github.com>
* Update config/manager/kustomization.yaml
* check image
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix workflow
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: Shubham Gupta <69793468+shubham-cmyk@users.noreply.github.com>
Co-authored-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-10-07 21:02:32 +05:30
Shubham Gupta
ea26e9d9dd
[Test] : e2e Github Action Workflow ( #661 )
...
* github action
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix naming
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* install kubectl
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* install kind utility
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* name kind
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* deploy operator
* fix test dir
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix current dir
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* run without deploye
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* make deploye
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* make with version
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* upgrade kustomize
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix image
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* update pull policy
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* disable webhook for deployment
* disable webhook
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* print logs
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* logs
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* check kind images
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* wait
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* log 2
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* remove
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: drivebyer <wuyangmuc@gmail.com>
2023-10-07 14:42:02 +05:30
yangw
9ffe55a363
[Fix] - sts will never be created ( #663 )
...
* Fix err would be set nil
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* nolint for shadow
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2023-10-07 14:26:56 +05:30
yangw
aecb51c3cb
[Fix] - make deploy target not works well ( #662 )
...
* execute make manifests
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix indent
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* match operator's name && namespace
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* disable webhook related resources
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix no-group name for core api resources
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* disable manager auth by default
Signed-off-by: drivebyer <yang.wu@daocloud.io>
* fix ClusterRoleBinding
Signed-off-by: drivebyer <yang.wu@daocloud.io>
---------
Signed-off-by: drivebyer <yang.wu@daocloud.io>
2023-10-07 11:50:30 +05:30
Shubham Gupta
108c07aa39
add setup for redis standalone ( #660 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-10-06 17:01:34 +05:30
Shubham Gupta
5b14d94771
Test ( #659 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-10-06 14:36:41 +05:30
yangw
667ceae327
Fix e2e test ( #658 )
...
* fix kuttl timeout unit to second
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* fix assert rediscluster version
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
* Update readme.md
---------
Signed-off-by: drivebyer <wuyangmuc@gmail.com>
Co-authored-by: Shubham Gupta <69793468+shubham-cmyk@users.noreply.github.com>
2023-10-06 11:03:21 +05:30
Azanul Haque
ab69ce511a
Redis SDK version update ( #657 )
...
Signed-off-by: Azanul <azanulhaque@gmail.com>
2023-10-06 01:37:48 +05:30
Shubham Gupta
57883c067c
redis_test - unit test ( #655 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-10-04 22:03:55 +05:30
Azanul Haque
6bbc0b13bb
Dependencies upgrade ( #651 )
...
* Dependencies upgrade
Signed-off-by: Azanul <azanulhaque@gmail.com>
* controller runtime options upgrade
Signed-off-by: Azanul <azanulhaque@gmail.com>
* CI go version upgrade
Signed-off-by: Azanul <azanulhaque@gmail.com>
* Dockerfile go version upgrade
Signed-off-by: Azanul <azanulhaque@gmail.com>
* fix lint bool pointer
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix pointer.BoolPtr
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* fix lint exec.Stream
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Azanul <azanulhaque@gmail.com>
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-10-04 11:58:51 +05:30
dependabot[bot]
97751a2b5b
Bump postcss from 8.2.9 to 8.4.31 in /docs ( #654 )
...
Bumps [postcss](https://github.com/postcss/postcss ) from 8.2.9 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/8.2.9...8.4.31 )
---
updated-dependencies:
- dependency-name: postcss
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-04 11:33:39 +05:30
Aswath S
67acb29f54
Golang ci lint action ( #653 )
...
* Refactor. Change to golangci-lint action
Signed-off-by: titanventura <aswath7862001@gmail.com>
* Refactor. add './...' arg to golangci-lint command - gh-actions
Signed-off-by: titanventura <aswath7862001@gmail.com>
* Remove branch 'golang-ci-lint-action' from list of branches - gh-actions
Signed-off-by: titanventura <aswath7862001@gmail.com>
* Refactor. upgrade go and golangci-lint version - gh-actions
Signed-off-by: titanventura <aswath7862001@gmail.com>
* Refactor. remove 'golang-ci-lint-action' branch from list of branches and solve lint issues reported by golangci-lint v1.54.0
Signed-off-by: titanventura <aswath7862001@gmail.com>
* Refactor. run go fmt
Signed-off-by: titanventura <aswath7862001@gmail.com>
---------
Signed-off-by: titanventura <aswath7862001@gmail.com>
2023-10-04 09:43:12 +05:30
Aswath S
b5d1184db8
Refactor. redis setup type in labels to contant ( #652 )
...
* Refactor. redis setup type in labels to contant
Signed-off-by: titanventura <aswath7862001@gmail.com>
* Refactor. make setuptype and constants private
Signed-off-by: titanventura <aswath7862001@gmail.com>
---------
Signed-off-by: titanventura <aswath7862001@gmail.com>
2023-10-03 20:16:52 +05:30
Shubham Gupta
673f117352
[Refactor] : Add Test Case ( #650 )
...
* unit-test
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
* comment
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
---------
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-09-30 16:56:42 +05:30
Shubham Gupta
eb25ef7d84
update env ( #649 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-09-29 16:16:32 +05:30