Skip to content

Change ProviderCfg into a non-pointer field #101

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

Merged
merged 1 commit into from
Mar 20, 2025
Merged

Conversation

ahrtr
Copy link
Member

@ahrtr ahrtr commented Mar 17, 2025

As long as EtcdClusterSpec.TLS isn't nil, then one of the certificate providers (either AutoCfg or CertManagerCfg for now) must be provided.

Previously users need to check both EtcdClusterSpec.TLS and EtcdClusterSpec.TLS.ProviderCfg, now users only need to check whether EtcdClusterSpec.TLS is nil or not.

cc @ArkaSaha30 @ivanvc @jmhbnz @hakman

@ivanvc
Copy link
Member

ivanvc commented Mar 19, 2025

This looks good. I checked, though, and in #9, there's no such check. Should we have tested TLSConfig against nil, too?

@ahrtr
Copy link
Member Author

ahrtr commented Mar 19, 2025

I checked, though, and in #9, there's no such check. Should we have tested TLSConfig against nil, too?

The PR #9 already covered the nil check on TLS. Anyway, I think it can be discussed and addressed separately.

@ivanvc
Copy link
Member

ivanvc commented Mar 20, 2025

The PR #9 already covered the nil check on TLS. Anyway, I think it can be discussed and addressed separately.

Sounds good. Let's get this merged, then.

Copy link
Member

@ivanvc ivanvc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, Benjamin.

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, ivanvc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ahrtr ahrtr merged commit 844fc4e into main Mar 20, 2025
6 checks passed
@ahrtr ahrtr deleted the cert_cfg_20250317 branch March 20, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants