redis-operator icon indicating copy to clipboard operation
redis-operator copied to clipboard

[Feature] Probe use built-in, discarded healthcheck.sh

Open muicoder opened this issue 2 years ago • 16 comments

Description

Feature: #443

Type of change

  • 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

  • [x] Testing has been performed
  • [x] No functionality is broken
  • [ ] Documentation updated

muicoder avatar Feb 21 '23 07:02 muicoder

@shubham-cmyk Tested as expected, please check.

muicoder avatar Feb 23 '23 05:02 muicoder

@shubham-cmyk Can you merge?

muicoder avatar Apr 10 '23 06:04 muicoder

@muicoder I have to test it this would be merged in coming release

shubham-cmyk avatar Apr 12 '23 17:04 shubham-cmyk

any update @muicoder ?

genofire avatar Jun 28 '23 08:06 genofire

any update @muicoder ?

All as expected

muicoder avatar Jun 28 '23 09:06 muicoder

Ups sorry, i mean @shubham-cmyk for merging

genofire avatar Jun 28 '23 10:06 genofire

To be added in v0.15.0

shubham-cmyk avatar Jun 30 '23 09:06 shubham-cmyk

This can also be merged.

muicoder avatar Jul 04 '23 12:07 muicoder

This is not complete PR! You are only passing fewer keys and cert

if params.TLSConfig.CaKeyFile != "" {
			caCert = params.TLSConfig.CaKeyFile
		}

check here https://redis.io/docs/management/security/encryption/ :

./src/redis-cli --tls \
    --cert ./tests/tls/redis.crt \
    --key ./tests/tls/redis.key \
    --cacert ./tests/tls/ca.crt

shubham-cmyk avatar Jul 04 '23 12:07 shubham-cmyk

Configured a full TLS certificate.

muicoder avatar Jul 05 '23 02:07 muicoder

Improved loading TLS certificates in the ENV mode on the probe (tested).

muicoder avatar Jul 05 '23 04:07 muicoder

@muicoder I won't be merged in the v0.15.0 because it would also require the change in the redis image and remove the existing code that uses the health-check method. I would merge it after releasing v0.15.0 this change would be visible from v0.16.0.

This might require more testing from my side.

shubham-cmyk avatar Jul 05 '23 06:07 shubham-cmyk

any update?

genofire avatar Nov 27 '23 18:11 genofire

is there a reason, why this was closed?

does any other patch get the exporter in combination with sentinal working?

genofire avatar Dec 23 '23 15:12 genofire

is there a reason, why this was closed?

does any other patch get the exporter in combination with sentinal working?

Change probeCommand to append mode Repush later based on master branch (conflicting)

muicoder avatar Dec 25 '23 02:12 muicoder

Codecov Report

Attention: Patch coverage is 0% with 24 lines in your changes are missing coverage. Please review.

Project coverage is 36.10%. Comparing base (d121d86) to head (5204908). Report is 14 commits behind head on master.

Files Patch % Lines
k8sutils/statefulset.go 0.00% 24 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #444      +/-   ##
==========================================
+ Coverage   35.20%   36.10%   +0.90%     
==========================================
  Files          19       19              
  Lines        3213     2631     -582     
==========================================
- Hits         1131      950     -181     
+ Misses       2015     1613     -402     
- Partials       67       68       +1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Dec 26 '23 02:12 codecov[bot]

any update?

wkd-woo avatar Feb 29 '24 02:02 wkd-woo

any update?

updated

muicoder avatar Feb 29 '24 03:02 muicoder

I would get this merged in this release

shubham-cmyk avatar Mar 04 '24 15:03 shubham-cmyk

I noticed that it has been a long time since it was last updated, but I think this change is very important. I would like to raise another PR to implement it.

drivebyer avatar Apr 30 '24 02:04 drivebyer

I noticed that it has been a long time since it was last updated, but I think this change is very important. I would like to raise another PR to implement it.

Welcome 👍🏻 😀 👍🏼 👍🏽

muicoder avatar Apr 30 '24 03:04 muicoder

It's been done by https://github.com/OT-CONTAINER-KIT/redis-operator/pull/907, thanks @muicoder

drivebyer avatar May 06 '24 06:05 drivebyer