Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat(controller): Support cluster-preferred-endpoint-type valkey application configuration option #199

Merged

Conversation

kurtmc
Copy link
Contributor

@kurtmc kurtmc commented Feb 13, 2025

No description provided.

@dmolik
Copy link
Member

dmolik commented Feb 14, 2025

LGTM!

@kurtmc kurtmc force-pushed the feature/cluster-preferred-endpoint-type branch from 1ff2244 to 21b6d68 Compare February 14, 2025 19:16
@kurtmc
Copy link
Contributor Author

kurtmc commented Feb 14, 2025

@dmolik I noticed that in your zero-downtime-upgrades branch you are hardcoding this parameter to ip, see: https://github.com/hyperspike/valkey-operator/blob/zero-downtime-upgrades/internal/controller/scripts/valkey.conf#L1750

When I was doing some testing on our platform I noticed that the hostname option wasn't working, that's why I made this a parameter, I've used +kubebuilder:default:="hostname" to set the default value to hostname for backwards compatibility but perhaps we should set the default value to ip, what are your thoughts?

@kurtmc kurtmc force-pushed the feature/cluster-preferred-endpoint-type branch from 21b6d68 to befc5f8 Compare February 14, 2025 19:21
@dmolik
Copy link
Member

dmolik commented Feb 14, 2025

hmmmm, yeah that seems reasonable. When the operator was still using the bitnami container, I had to flip it to hostname to get it to work with TLS, however I haven't seen the behavior return since switching to a more generic container, IE the Cluster Init changed significantly.

So two things then, yes let's go ahead and go with your suggestion of setting the default to ip

Can you add enum constraints to the field definition as well? Similar to here:

// +kubebuilder:validation:Enum=ClusterIssuer;Issuer

@kurtmc kurtmc force-pushed the feature/cluster-preferred-endpoint-type branch from befc5f8 to 1f4ed48 Compare February 14, 2025 19:34
@dmolik dmolik merged commit 6a02fb1 into hyperspike:main Feb 14, 2025
9 checks passed
@kurtmc kurtmc deleted the feature/cluster-preferred-endpoint-type branch February 14, 2025 19:39
@dmolik
Copy link
Member

dmolik commented Feb 14, 2025

Thanks for this one!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants