Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix issue with registries required fields #357

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

alknopfler
Copy link
Contributor

What this PR does / why we need it:

The registry TLS configuration requires the 3 values ca.crt, tls.crt, tls.key when only ca.crt is required (in case the registry does not need the client certs). With the current code, you're not able to include only the ca.crt. Also, there's no way to include the insecureSkipVerify flag to remove the rest of certs (we're skipping)

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

Copy link
Member

@alexander-demicev alexander-demicev left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, only one small comment.

pkg/rke2/registries.go Outdated Show resolved Hide resolved
@alknopfler alknopfler force-pushed the fix-issue-with-registry branch 2 times, most recently from 28c2d56 to 83d3c09 Compare July 8, 2024 09:36
@alknopfler alknopfler force-pushed the fix-issue-with-registry branch 3 times, most recently from db3cb31 to 40cf740 Compare July 9, 2024 06:32
Signed-off-by: Alberto Morgante Medina <alberto.morgante@suse.com>
@alexander-demicev alexander-demicev added the kind/bug Something isn't working label Jul 9, 2024
@alexander-demicev alexander-demicev merged commit d7a687a into rancher:main Jul 10, 2024
5 of 7 checks passed
@alknopfler alknopfler deleted the fix-issue-with-registry branch July 10, 2024 09:19
@alknopfler alknopfler restored the fix-issue-with-registry branch July 10, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants