Skip to content

RKE2 privateRegistriesConfig with insecureSkipVerify #766

@rokoshy

Description

@rokoshy

What happened:

Cluster provisioning fails with state pending ,.The RKE2ControlPlane configuration contains privateRegistriesConfig with tls config with only insecureSkipVerify true without any secrets information .

``

privateRegistriesConfig: 
    <private registry> : 
         tls: 
            insecureSkipVerify: true
E1031 04:22:39.518589       1 controller.go:347] "Reconciler error" err="resource name may not be empty" controller="rke2config" controllerGroup="bootstrap.cluster.x-k8s.io" controllerKind="RKE2Config" RKE2Config="tb3-mw-system/tb3-mw-rvsws" namespace="tb3-smi-blr-mw-system" name="tb3-smi-blr-mw-rvsws" reconcileID="d80bd6d0-af45-4a3f-a2fa-6142b0348fa3" 

What did you expect to happen:

Expected : Cluster provisioning is successful
How to reproduce it:

Create RKE2 cluster with RKE2ControlPlane having atleast one privateRegistriesConfig..tls.insecureSkipVerify set as true without providing any secret

Anything else you would like to add:

This workes directly with RKE2 as write_files ( i.e keeping only the insecureSkipVerify: true without tls files) but swtiching to rke2 crd approach failed as the code is expected a secret also . The requirement is to ignore the certificates as its in the same system

Environment:

  • rke provider version: v0.20.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't workingneeds-priorityIndicates an issue or PR needs a priority assigning to itneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions